Hi to all! Is there a way to know when application goes in background? I want to stop mediaplayer when app goes in pause (i know i can put a check in each activity, but i want only one sub to manage all).
Yes but this means that i need to add a sub in each activity. If i have 200 activities, i need 200 sub in activity.pause. I think this is not the best practice to achieve what i want
Guys thanks for all answers, but the problem is not to waste time to write a sub for each activity. Main problem is that i think is unbelievable that there is not a way to create a single event (so a single exit/entry point) to see the status of the app