Skip to content Skip to sidebar Skip to footer

Android Start Service Of An App From Another Android App

I have two applications installed on the device: from one app I want to start a service as follows: Intent i = new Intent(); i.setComponent(new ComponentName('com.app.service',

Solution 1:

Just to be clear, the second app is the Notifications one right?

If so, what I would try is loading both apps individually first, and then creating a method in your second one to access the information from the first one.

I had a similar scenario, let me just find the solution (somewhere on my laptop) and get back to you more specifically.


Solution 2:

Not exactly a great solution but I have fixed my problem by removing the NotificationService file from the com.app.service directory, and adding it to the com.app directory. This fixed the issue for me, meaning that I managed to start the service of the second application from the first application.


Post a Comment for "Android Start Service Of An App From Another Android App"