Android Can Applicaton Detect How it is being Launched?
问题 Is there a way for Android application to detect how it is being launched? whether by a BOOT or by user launching the application from the application list? When my application is launched on boot I don't want any activity to show at all. When the user specifically launches it from the application list, then and only then would I want the main activity to show. If I could detect whether the launch was a user launch or system boot launch I might be able to control this. 回答1: What you're