You can use AsyncTask to continue playing audio even if user switches or move to another screen.
That's not a good idea, as AsyncTask's are part of the Activity, and thus eligible for termination whenever Android feels like it. Services are better suited for longer-running tasks.