title: how to play .3GP video file in android
body: <p>HI 
  i want to play a .3GP video file in android phone. i tried below code but it shows cant play video.so please tell me what i will do</p>
  
  <p>This is my code</p>
  
  <pre><code> public class VideoPlay extends Activity {
  
  private String path ;
  private VideoView mVideoView;
  
  @Override
  public void onCreate(Bundle icicle) {
      super.onCreate(icicle);
      setContentView(R.layout.videoplay);
      path="http://www.boodang.com/api/videobb/101009_Pure.3gp";
      mVideoView = (VideoView) findViewById(R.id.video);
  
      if (path == "") {
          // Tell the user to provide a media file URL/path.
          Toast.makeText(
                  VideoPlay.this,
                  "Please edit VideoViewDemo Activity, and set path"
                          + " variable to your media file URL/path",
                  Toast.LENGTH_LONG).show();
  
      } else {
  
          /*
           * Alternatively,for streaming media you can use
           * mVideoView.setVideoURI(Uri.parse(URLstring));
           */
          mVideoView.setVideoPath(path);
          mVideoView.setMediaController(new MediaController(this));
          mVideoView.requestFocus();
  
      }
  }
  }
  </code></pre>
  
  <p>The XML layout is</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;FrameLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"&gt;
    &lt;VideoView
    android:id="@+id/video"
     android:layout_width="320px"
     android:layout_height="240px"&gt;
     &lt;/VideoView&gt;
     &lt;/FrameLayout&gt;
  </code></pre>