How do I avoid onCreate() being called when starting an Activity?

后端 未结 5 365
难免孤独
难免孤独 2021-01-13 14:27

I want to reload an activity from stack.

I use startActivity() to start new activities. When I\'m on Activity D I want to reload Activity A

5条回答
  •  别那么骄傲
    2021-01-13 14:46

    there is tag called launchMode for activity in the manifest. checkout this link. and this will not call onCreate but it will call onNewIntent, where you can reinitialize you stuff.

提交回复
热议问题