Question: I've been trying to run a youtube video with an iframe, and everytime i reload the page i get the following error on the console:

```
 GET www.youtube.com/embed/9kkjr4qcrkE?rel=0&controls=0&showinfo=0;autoplay=1;:1

file://www.youtube.com/embed/9kkjr4qcrkE?rel=0&controls=0&showinfo=0;autoplay=1; net::ERR_FILE_NOT_FOUND

```

I dont have any mistakes in my html so i'm really mad about this and cant seem to find the solution:

```
<div id="content">
    <iframe width="853" height="480" src="//www.youtube.com/embed/9kkjr4qcrkE?rel=0&amp;controls=0&amp;showinfo=0;autoplay=1;" frameborder="0" frameborder="0" allowfullscreen=""></iframe>
</div>

```

Thanks in advance for looking over, if you need more code just ask!

Answer: 
You should use a service to solve this: [Services](https://developer.android.com/training/run-background-service/create-service.html)

Other method that is called when you press some of three soft button is onUserLeaveHint, but it can't solve your problem, by the way you can use it in future sure:

```
    protected void onUserLeaveHint() {
        super.onUserLeaveHint();
    }

```
OK ! So, after getting mad all the day with this problem, I finally found the (very easy) solution :

In the edit of my initial question I started working with Services, but I had a very weird behavior of the service. My problem came from the fact that in my IntentService class I used the Timer() and Task() method from libgdx package.

I just replaced these two classes with there equivalent Timer() and TimerTask() method from java.util package, and eveything works smoothly !

So now, my IntentServiceTimer looks like that :

```
import java.util.Timer;
import java.util.TimerTask;
import android.app.IntentService;
import android.content.Intent;
import android.util.Log;

public class IntentServiceTimer extends IntentService{
private final static String TAG = "IntentServiceExample";
int a;

public IntentServiceTimer(){
    super(TAG);
}

@Override
protected void onHandleIntent(final Intent intent) {
    Log.d(TAG, "When the game went on pause, the number of remaining seconds was : " + intent.getIntExtra(AndroidLauncher.TIMER, -1));

    a = intent.getIntExtra(AndroidLauncher.TIMER, -1);
    Timer timer = new Timer();
    timer.schedule(new TimerTask(){
        public void run() {
           a--;
           Log.d(TAG, "Seconds remaining : " + a);
        }
    }, 1,1);        
}
}

```