title: Android Application Not Showing Anything
body: <p>I'm trying to create a basic audio player with Play/Pause and a slider based on this tutorial: <a href="http://mrbool.com/how-to-play-audio-files-in-android-with-a-seekbar-feature-and-mediaplayer-class/28243" rel="nofollow">http://mrbool.com/how-to-play-audio-files-in-android-with-a-seekbar-feature-and-mediaplayer-class/28243</a></p>
  
  <p>Everything compiles properly however nothing shows up in the activity on either emulator or device. Device api level 18 and AVD api level 19</p>
  
  <p>MainActivity.java</p>
  
  <pre><code>package com.ex.highline;
  
  import android.app.Activity;
  import android.media.MediaPlayer;
  import android.os.Bundle;
  import android.os.Handler;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  import android.widget.SeekBar;
  import android.widget.TextView;
  
  
  public class MainActivity extends Activity implements OnClickListener {
      SeekBar seek_bar;
      Button play_button, pause_button;
      MediaPlayer player;
      TextView text_shown;
      Handler seekHandler = new Handler();
  
  public void onClick(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      seekUpdate();
  
      /* Initialize all views */
      seek_bar = (SeekBar) findViewById(R.id.seek_bar);
  
      play_button = (Button) findViewById(R.id.play_button);
  
      pause_button = (Button) findViewById(R.id.pause_button);
  
      text_shown = (TextView) findViewById(R.id.text_shown);
  
      play_button.setOnClickListener((android.view.View.OnClickListener) this);
      pause_button.setOnClickListener((android.view.View.OnClickListener) this);
  
      player = MediaPlayer.create(this, R.raw.money);
  
      seek_bar.setMax(player.getDuration());
  
  }
  
  Runnable run = new Runnable() {
  
      @Override
      public void run(){
  
          seekUpdate();
      }
  };
  
  
  public void seekUpdate() {
  
      seek_bar.setProgress(player.getCurrentPosition());
      seekHandler.postDelayed(run, 1000);
  }
  
  public void onClick(View view){
      switch (view.getId()){
      case R.id.play_button:
          text_shown.setText("Playing...");
          player.start();
          break;
      case R.id.pause_button:
          player.pause();
          text_shown.setText("Paused...");
      }
  }
  
  
  
  }
  </code></pre>
  
  <p>activity_main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" &gt;
  
  &lt;TextView
      android:id="@+id/text_shown"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="120dp"
      android:text=""
      android:textSize="42sp" /&gt;
  
  &lt;SeekBar
      android:id="@+id/seek_bar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_centerInParent="true" /&gt;
  
  &lt;Button
      android:id="@+id/pause_button"
      android:layout_width="120dp"
      android:layout_height="60dp"
      android:layout_alignBaseline="@+id/play_button"
      android:layout_alignBottom="@+id/play_button"
      android:layout_toRightOf="@+id/text_shown"
      android:text="@string/pause" /&gt;
  
  &lt;Button
      android:id="@+id/play_button"
      android:layout_width="120dp"
      android:layout_height="60dp"
      android:layout_alignRight="@+id/text_shown"
      android:layout_below="@+id/seek_bar"
      android:layout_marginTop="44dp"
      android:gravity="center"
      android:text="@string/play" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>