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
Post a Comment