when open my apps gallery is running and set current gallery image to imageview and playing one audio file through media player if i come out of my aps even it is running
i tried to give mp.stop() and mp.release() in destroy method bu开发者_StackOverflow中文版t it wont work for me please suggest me
Thanks in Advance
aSwan
i have updated my answer! to avoid the "-1´s" =P
if (mp != null) {
mp.stop(); // Stop play
mp.release();
mp = null; // set Media Player to null
}
精彩评论