How to close any app via timer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to close any app via timer?

I want to close my Android app via timer but I don't use main activity. I want close my app from any activity.

19th Oct 2017, 7:13 AM
Roni Maikab (Yo Yo Roni Maikab)
Roni Maikab (Yo Yo Roni Maikab) - avatar
1 Answer
+ 1
System.exit(0) quits the app from anywhere. The disadvantage is that there is no exit-animation.
28th Oct 2017, 12:22 PM
JustAnUser