Reputation: 603
i m finding solution. my queston is
for each startActivity(intent), does android OS creates new instance of Activity or brings up an old activity which has been pushed into the Activity stack.
Upvotes: 1
Views: 441
Reputation: 7031
If what you want is to bring up the old activity, why don't you use PendingIntent.getActivity() it will get it and create it if it doesn't exist (unless you set the flag FLAG_NO_CREATE) you can check about it here http://developer.android.com/reference/android/app/PendingIntent.html
Upvotes: 0
Reputation: 23873
It depends on the Flags that you set on the Intent, see: public Intent setFlags (int flags)
Upvotes: 3