Note that there are some explanatory texts on larger screens.

plurals
  1. POVideo in Android doesn't start (in res/raw folder) with VideoView or MediaPlayer
    text
    copied!<p>First of all I have tried everything I could find on the web, but without success.</p> <p>I'm trying to reproduce a video on AVD emulator (version 2.3.3). I've used both VideoView and MediaPlayer. The main problem is the following:</p> <p>If I put some video file (mp4 format) on the directory res/raw and I try to run something (also an avoid program with only an Hello World TextView) in the console the running process blocks it on this line</p> <pre><code>Uploading Test.apk onto device 'emulator-5554' </code></pre> <p>I think that is a space problem (the video is 139MB) but also with a small wmv format (about 6MB) I've had the same issue.</p> <p>I also have used <a href="https://stackoverflow.com/questions/2239330/how-to-increase-storage-for-android-emulator-install-failed-insufficient-stora">this solution</a> but it works only with mp3 file (even if only once).</p> <p>Finally I've upgrade the RAM device up to 1024MB. Still nothing.</p> <p>The code use in the onCreate method is</p> <pre><code>MediaPlayer mPlayer = MediaPlayer.create(this, R.raw.video_file); mPlayer.start(); </code></pre> <p>I use eclipse IDE in Windows 7 x64.</p> <p>Thanks for your attention.</p> <p>P.s. The <a href="http://baduel.altervista.org/stackoverflow/logcat_03112011.txt" rel="nofollow noreferrer">logcat</a> (only warns and errors)</p> <p>Edit: After 23 minutes the application is started but i listen only the audio but i don't see the video.</p> <pre><code>[2011-10-20 18:29:10 - TestActiveQoE] Uploading TestActiveQoE.apk onto device 'emulator-5554' [2011-10-20 18:53:08 - TestActiveQoE] Installing TestActiveQoE.apk... [2011-10-20 18:53:59 - TestActiveQoE] Success! [2011-10-20 18:54:00 - TestActiveQoE] Starting activity qoe.test.TestActiveQoEActivity on device emulator-5554 [2011-10-20 18:54:01 - TestActiveQoE] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=qoe.test/.TestActiveQoEActivity } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload