audio - Why won't my android program close when I close it? -
i made android app plays mario sound when jump. works fine (sort of), when close it, still works. tried using ondestroy method, dosen't seem delete objects created or something...
here code. http://pastebin.com/gckrbkv9
try putting code stop playing inside onpause()
instead of ondestroy()
so:
@override public void onpause() { super.onpause(); sp.stop(jump); sp.release(); }
it's quite possible activity not yet destroyed , sent background, ondestroy()
not yet called if "close" app.
Comments
Post a Comment