Does it work if you uninstall your application and click the eclipse launch button? If yes, this is probably the reason that the android stores some data in memory, even if you close the application, especially for static members or links that are not freed by GC. As part of debugging, you get a new instance of your application, and it works when you remove / install it. When you click the eclipse launch button, the application may not be installed again, and some data will be reused. You must carefully manage your application data. Read this article first
ackio source share