back soft

مطالب مرتبط با «how to create a resume» در back soft | نویسنده: استخدام کار

How to prevent onCreate when application is resumed?

Vote count: 0 I've made a music player usim MediaPlayer. When I close the app the song keeps playing but when I resume, onCreate is called everything starts again and previous song also keeps playing. So if now I start new song, both the songs play even though there's only one MediaPlayer variable. Why is onCreate called when app is reopened. What is the way to prevent it? asked 56 secs agoSwapnil Sharma Let's block ads! بخوانید...

ادامه مطلب