android - activity in running app list after alarm -


i started developing android , ran problem.

i made basic application in wich can set timer between 5 , 60 seconds. after button press intent starts pendingintent wich register alarm in android alarmmanager.

i can set alarm 30 seconds, close application, remove running application list , wait. eventhough application totally shut down, after 30 seconds custom made activity simple view pops-up , can stop alarm.

the problem: though removed application running app list after did set alarm, after goes of , pressed stop alarm button activity closed see activity in running app list..... can click on , basic custom made acticity pops-up again.

in stop button onclick() call finish() in onstop() call super.onstop()....

how show custom alarm activity stop alarm button , after stopping or snoozing not show in running app list?

thanks!

you can use android:excludefromrecents="true" attribute activity <activity /> tag in manifest file.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -