开发者

Android application doesn't close

I've written an application for Android, but it doesn't close and it also starts automatically with the system开发者_Go百科. I don't know why, but it can't be closed, even through the Task Manager. So I would like to know why it doesn't close.


I'm sure you have read how Android apps aren't really supposed to close. That aside, I also needed my app to terminate when no longer visible. First I tried

System.exit();

That worked just fine but it isn't the proper way to do it, the best way is to call

finish();

I'm sorry if you had already tried/were aware of those solutions; it wasn't clear from your question.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜