Okey, this is my problem. I have one service class where Ive managed to create media player to play music in background all time. Here is code:
package com.t
AsyncTasks are good just for very short clips, but if it is a music file you will face problems like:
Here is few line from Android developers page about AsyncTasks
AsyncTasks should ideally be used for short operations (a few seconds at the most.) If you need to keep threads running for long periods of time, it is highly recommended you use the various APIs provided by the java.util.concurrent package such as Executor, ThreadPoolExecutor and FutureTask.
So currently I am looking in to other options and update the answer once I find the solution.