Android: Sorry this video can not be played in videoview
<p>I know there are many questions and answer on this, but I went through all, but I could not find any solution, and its almost two months I am again and again encountering this issue of "Sorry this video can not be played".</p>

<p>Here is my xml file</p>

<pre><code>&lt;RelativeLayout 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/booksanimation"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>Here is my code..</p>

<pre><code>    getWindow().setFormat(PixelFormat.TRANSLUCENT);
    videoview = (VideoView) findViewById(R.id.booksanimation);
    videoview.setVideoURI(Uri.parse("android.resource://com.d4sys.sabaq/" + R.raw.booksanimation));
    videoview.setMediaController(new MediaController(this));
    videoview.requestFocus();
    videoview.start();
</code></pre>

<p>I do not know what are the problems, sometimes when i place another video with different resolution, that video is played but not all videos are played..
If some video is playing on Tablet, it does not play on small devices,,
what are the issues?</p>
