how to disable a call to onCreate when someone is pressing on my app from
the task mgr
I'm launching an activity form a broadcast receiver using the
Intent.FLAG_ACTIVITY_NEW_TASK flag.
My activity launches a CountDownTimer in its onCreate method. Pressing a
key kills my app (I'm calling finish()) but my app appears in the task
mgr.
If I'll open the task mgr and click on my app, the onCreate method is
being called again and another instance of my timer is being called.
How can I prevent this behavior?
Thanks, Avi
No comments:
Post a Comment