开发者

Android activities can execute when not in foreground

Android activities can execute when not in foreground. In one开发者_JS百科 page am having chronometer means can i run that with out pause..No means wt i do to run with out pause.. give me any idea.. thank you,


Activities can't be executed when not in foreground.

But, if you have a Service working for the activity, it will, and then when your activity come back to foreground it will get the updates the service did.

once you start a service, it can be stoped only by the system (in case of low device resources) or if the user want to stop it.

So, I think, that for your problem you should implement a Service, to work in background for your activity.

Read this, just in case. http://bit.ly/gP0EI8


No you cant, onPause() is in the lifecycle of the activity... you cant skip it,

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜