How to play a local video from resources folder
<p>I've been looking for this for more than a week, and I haven't been able to do it yet.</p>

<p>I just want to play a 2 second-duration video as a splash intro to my app, so SD card and URL streaming solutions are not possible. I would like to place the mp4 video file in the /res/raw folder (for example) and play it, full-screen, no media controllers... it shouldn't be so hard!!!</p>

<p>I've already encoded my video following Android's recommendations (I've tried even several) in <a href="http://developer.android.com/guide/appendix/media-formats.html#core" rel="nofollow">http://developer.android.com/guide/appendix/media-formats.html#core</a></p>

<p>I've tried lots of different solutions, such as the following one, that should work:</p>

<pre><code>    VideoView videoHolder = (VideoView) this.findViewById(R.id.videoView1);
    videoHolder.setMediaController(new MediaController(this));
    Uri uri = Uri.parse("android.resource://mysite/raw/" + R.raw.intro__video);
    videoHolder.setVideoURI(uri);
    videoHolder.start();
</code></pre>

<p>I've tried several URI addresses, I think that the problem is not there.
I've tried emulators 1.6, 2.1 and 2.33. I've tried in three different real devices.</p>

<p>I don't know what to try now. There are a lot of similar questions in StackOverflow, but very few answers. The answers use to be about placing the video in the SD card (not situable for me), but most of the threads are unanswered by the author, so we don't know if he finally managed to do it.</p>

<p>Thank you very much in advance. Maybe this time we could answer this question once and for all:-)</p>

<p>EDIT
Most of the times the device simply keeps black, the video is not playing.
For some of the encodings tried, the device shows an error dialog saying "this video can't be played".
If the video file itself would be the problem (I don't think so, because I've tried a lot of different formats, resolutions and encodings), please send me a proved video file so I would be able to check if the problem is just that...</p>
