I have an android app which runs mediaplayer.It works fine my problem is that when i come or lock the screen the songs gets stopped is there a way to make the media player run in background
You need to make it run as a Service instead of an activity.