title: Still can't play the video on my android phone using video view
body: <p>I am trying to write a very very very basic videoview to play the video in my phone
  I searched a lot of posts and try to copy their code but it all fails.
  It always says can't play this video.
  There are just a few lines of code but it still won't work, kind of frustrated.
  I found the code on youtube</p>
  
  <p>The video is in .3gp format
  I tried to export the apk package to my phone (signed)
  I created a raw folder under res to store the testVideo that is going to be played.
  I tried to comment and comment this two lines, both are not working.
  //videoView.setMediaController(new MediaController(this))
  //videoView.requestFocus()</p>
  
  <pre><code>package com.example.mymediaplayer;
  
  import java.io.IOException;
  import android.app.Activity;
  import android.media.MediaPlayer;
  import android.net.Uri;
  import android.os.Bundle;
  import android.util.Log;
  import android.widget.MediaController;
  import android.widget.VideoView;
  
  public class VideoViewActivity extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.videoviewer);
  
          VideoView videoView = (VideoView)findViewById(R.id.videoView);
  
          String urlpath = "android:resource://"+ getPackageName() + "/" + R.raw.test;
  
          videoView.setVideoURI(Uri.parse(urlpath));
          // videoView.setMediaController(new MediaController(this));
          // videoView.requestFocus();
  
          videoView.start();
      }
  }
  </code></pre>
  
  <p>Here is the layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;VideoView
          android:id="@+id/videoView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
  &lt;/LinearLayout&gt; 
  </code></pre>