开发者

android: How can I send an activity to background & call her from there

开发者 https://www.devze.com 2023-01-12 17:02 出处:网络
I am in process ofcreating some test application \"Time Tracker\" app like stopwatch so I start app go to Activity where I start time counter andnowI need some functionalityto send my activityto backg

I am in process of creating some test application "Time Tracker" app like stopwatch so I start app go to Activity where I start time counter and now I need some functionality to send my activity to background or minimize or hide and after some period to call this activity again and stop her counter to get passed time period .

How can I send Activity to back and call her t开发者_如何学编程o front but not to stop timer counter ??


Using a Service would be the best way I guess. You can than call finish() on your Activity and the Service can start your application when a specific time was reached.

0

精彩评论

暂无评论...
验证码 换一张
取 消