android - release and unload methods of the SoundPool -


do have use release or unload methods of soundpool object after using it. mean, there memory leakage problem when close application if don't use release or unload methods?

yes, must!

i create separate sound class (sort of utils), has play, load, unload etc methods. access these of activities in static fashion i.e. unload sound onstop() or onpause() , load sound in onresume(). make sure use application context load sounds lest end leaking memory (if use activity context)


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -