Is there any way to force to clear all the used resources in an application? I thought in cleaning the cache in the onDestroy function but I don't really know if it is enough.
I'm having troubles freeing resources after closing the application, as I'm opening a lot of images, sounds, and so on in the application. If I open quickly the application for the second time, there are a lot of times in which it can't open certain resource because it is still opened...
Any tips please? Thanks
onDestroy()is called and when it's not? What do you mean "closing the application"? Do you understand scope and visibility and the difference between the Activity life cycle and the Application life cycle?