How to launch an android app as a Service on bootup and then launch an Activity(the UI), when the icon is clicked.

66 views Asked by At

I have an android app that needs to run in the background at all times, However on receving some kind of user action, I need to launch a new Activity and bring it to front.

Now I have a service 'A', that needs to keep running from when the device boots, and an Activity 'B' that has to be launched when a particular user action is received(Havent decided what yet). How do I go about it?

I will provide an intent-filter for 'B' to specify when it should be launched. But do I have to start it explicitly from the Service as well?

0

There are 0 answers