Sunday, January 19, 2014
Please be familiar with android friends look at this issue
I started serviec
in activeprotected void onDestroy () {
/ / Release resources
. AppConnect.getInstance (this) close ();
soundPool.release ();
super.onDestroy ();
}
1: I press the return key to exit into the issue frequently came up a little memory growth. .
2: If I put super.onDestroy (); notes or remove the serviec stopped. . Non-bind service.
Reply:
What is super?
Reply:
Parent ah. Destruction method is to call the parent class
Reply:
Actually, the key is to solve the first problem. Why back into memory for each increases.
Reply:
Reply:
This is obviously no recovery after your activity quit this for many reasons, such as when the activity recovered in time to destroy the activity inside something running, static variables, such as references to other places, to be specific analysis
Reply:
Some thread resource not released?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment