开发者

In the oncreate() of my activity can I tell what intent launches my activity?

Android will call onCreate() of my activity whenever it is launched.

In the onC开发者_C百科reate() of my activity can I tell what intent launches my activity?

Thank you.


Simple - use getIntent(). You'll also want to override onNewIntent(Intent intent). I usually write a method called HandleIntent(Intent intent) and call it from both onCreate() and onNewIntent().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜