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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论