Are starting an Activity and Launching an Application the same?
What I want ask is, assume I'm in some BroadCastReciever
's onRecieve()
method and I use context to start an Activity
which is a Launcher Activity of a differen开发者_如何学Got Application. Will it work? Are both this way and Application launching by just clicking on icon the same?
Thanks in advance.
The answer is NO.
You can launch the launcher activity of the app of which
BroadCastReciever
'sonRecieve()
method you are getting the call not the other app's launcher activity.You can launch another application thru its package name from anywhere of your app.
Are both this way and Application launching by just clicking on icon the same?
Yes as you are getting the application launched.
精彩评论