title: How to play video from raw folder with Android device?
body: <p>Please help, 
  How to play videos in android device from raw folder for offline mode?</p>
  
  <p>Successful example1: I can play the video from SDcard used the below code. </p>
  
  <pre><code> Intent intent = new Intent(Intent.ACTION_VIEW);
   String type = "video/mp4";
   Uri uri = Uri.parse("file:///sdcard/test.mp4");
   intent.setDataAndType(uri, type);
   startActivity(intent); 
  </code></pre>
  
  <p>Failed example2:
  Question: May I put the test.mp4 to res/raw folder? </p>
  
  <pre><code> Intent intent = new Intent(Intent.ACTION_VIEW);
   String type = "video/mp4";
   Uri uri = Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.taipei);
   intent.setDataAndType(uri, type);
   startActivity(intent); 
  </code></pre>
  
  <p>Have anyone can help me? Please. </p>