Android Question How to detect if the application is launched by onstart or by the application icon.

Josefc

Member
I need to know how an application is launched (by code, of course), to give different answers, depending on the case

In other words:

-"start at boot" of the application
- or through the application icon.

Thanks in advance

Greetings
 

JohnC

Expert
Licensed User
Longtime User
StartingIntent will help you determine how your app/service was started:

 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Here is some more specific info:

 
Last edited:
Upvote 0
Top