android中如何播放SD卡中的视频文件呢?在网上查了下,照着网上的操作结果报错了,
   
    错误1、
[2011-07-18 12:47:03 - Video] Failed to install Video.apk on device 'emulator-5554': No space left on device
[2011-07-18 12:47:03 - Video] com.android.ddmlib.SyncException: No space left on device
[2011-07-18 12:47:03 - Video] Launch canceled!
   错误2、
07-18 04:48:57.260: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
07-18 04:50:00.712: DEBUG/ThrottleService(59): onPollAlarm - roaming =false, read =0, written =0, new total =0
   另外求关于流媒体播放器的案例啊!!!!谢谢   

解决方案 »

  1.   

     No space left on device:
     模拟器空间不够
      

  2.   

    在模拟器所在的tools目录下执行./emulator -partition-size 1024 -avd AvdName
      

  3.   

    AndroidManifest.xml 中加入以下代码<uses-permission android:name=”android.permission.INTERNET”></uses-permission>
      

  4.   

    还是不得行,照样是上面的错误,现在我改用surfaceView 结果它停在开始的位置不播放,通过logcat发现
    他一直回报这个警告:
    07-18 07:34:34.068: WARN/AudioFlinger(34): write blocked for 83 msecs, 10822 delayed writes, thread 0xb3f0
      

  5.   

    还有这个错误:
    07-18 07:37:28.356: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
      

  6.   

    空间不够用-partition-size 1024参数,例外请参考SeeJoePlayer的代码