title: Runnable not running at all inside fragment
body: <p>I'm trying to connect a SeekBar to MediaPlayer  in a fragment but the runnable isn't running at all. I put a log.i in it to see if it runs but nothing happens at all.</p>
  
  <p>I declare Handler as a global variable:</p>
  
  <pre><code>Handler seekHandler;
  SeekBar sBar;
  </code></pre>
  
  <p>And then in <em>onCreateView</em>:</p>
  
  <pre><code>seekHandler = new Handler();
  sBar = (SeekBar) v.findViewById(R.id.seekBar1);
  </code></pre>
  
  <p>Runnable:</p>
  
  <pre><code>Runnable run = new Runnable() {
  
      @Override
      public void run() {
          sBar.setMax(mp.getDuration());
          sBar.setProgress(mp.getCurrentPosition());
          Log.i("TAG", "I'm running");
          seekHandler.postDelayed(this, 25);
      }
  };
  </code></pre>
  
  <p><strong>mp</strong> variable is a MediaPlayer. The problem is that the Runnable doesn't exexute even once. I am using the <strong>exact</strong> same code in my similar application in <strong>activity</strong> and it's working completely fine. Is this because runnables act differently in a Fragment? Also I'm using TabLayout with ViewPager and 2 Fragments, if that affects any of this.</p>