Error When Playing Audio

All your problems with Audio, Video and Images.

Error When Playing Audio

Postby arberb » Tue Apr 27, 2010 12:13 pm

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. D/AndroidRuntime(  633): Shutting down VM
  2.  
  3. D/dalvikvm(  633): DestroyJavaVM waiting for non-daemon threads to exit
  4.  
  5. D/dalvikvm(  633): DestroyJavaVM shutting VM down
  6.  
  7. D/dalvikvm(  633): HeapWorker thread shutting down
  8.  
  9. D/dalvikvm(  633): HeapWorker thread has shut down
  10.  
  11. D/jdwp    (  633): JDWP shutting down net...
  12.  
  13. I/dalvikvm(  633): Debugger has detached; object registry had 1 entries
  14.  
  15. D/dalvikvm(  633): VM cleaning up
  16.  
  17. E/AndroidRuntime(  633): ERROR: thread attach failed
  18.  
  19. D/ActivityManager(   54): Uninstalling process org.me.
  20.  
  21. D/dalvikvm(  633): LinearAlloc 0x0 used 623012 of 5242880 (11%)
  22.  
  23. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  24.  
  25. 700e5
  26.  
  27. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  28.  
  29. 20031
  30.  
  31. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  32.  
  33. 20030
  34.  
  35. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  36.  
  37. 50000
  38.  
  39. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  40.  
  41. 60000
  42.  
  43. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  44.  
  45. 60001
  46.  
  47. D/dalvikvm(   54): GC freed 6783 objects / 501032 bytes in 187ms
  48.  
  49. D/dalvikvm(   54): GC freed 288 objects / 15560 bytes in 186ms
  50.  
  51. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  52.  
  53. 700e5
  54.  
  55. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  56.  
  57. 20031
  58.  
  59. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  60.  
  61. 20030
  62.  
  63. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  64.  
  65. 50000
  66.  
  67. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  68.  
  69. 60000
  70.  
  71. W/ResourceType(   54): Resources don't contain package for resource number 0x7f0
  72.  
  73. 60001
  74.  
  75. D/AndroidRuntime(  644):
  76.  
  77. D/AndroidRuntime(  644): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
  78.  
  79. D/AndroidRuntime(  644): CheckJNI is ON
  80.  
  81. D/AndroidRuntime(  644): --- registering native functions ---
  82.  
  83. D/ddm-heap(  644): Got feature list request
  84.  
  85. I/ActivityManager(   54): Starting activity: Intent { flg=0x10000000 cmp=org.me.
  86.  
  87. /.MainActivity }
  88.  
  89. D/AndroidRuntime(  644): Shutting down VM
  90.  
  91. D/dalvikvm(  644): DestroyJavaVM waiting for non-daemon threads to exit
  92.  
  93. D/dalvikvm(  644): DestroyJavaVM shutting VM down
  94.  
  95. D/dalvikvm(  644): HeapWorker thread shutting down
  96.  
  97. D/dalvikvm(  644): HeapWorker thread has shut down
  98.  
  99. D/jdwp    (  644): JDWP shutting down net...
  100.  
  101. I/dalvikvm(  644): Debugger has detached; object registry had 1 entries
  102.  
  103. D/dalvikvm(  644): VM cleaning up
  104.  
  105. E/AndroidRuntime(  644): ERROR: thread attach failed
  106.  
  107. I/ActivityManager(   54): Start proc org.me.for activity org.me.
  108.  
  109. /.MainActivity: pid=651 uid=10026 gids={1015}
  110.  
  111. D/dalvikvm(  644): LinearAlloc 0x0 used 638596 of 5242880 (12%)
  112.  
  113. D/ddm-heap(  651): Got feature list request
  114.  
  115. I/ActivityManager(   54): Displayed activity org.me./.MainActivity:
  116.  
  117. 623 ms (total 623 ms)
  118.  
  119. W/InputManagerService(   54): Starting input on non-focused client com.android.i
  120.  
  121. nternal.view.IInputMethodClient$Stub$Proxy@43d19f00 (uid=10014 pid=235)
  122.  
  123. W/System.err(  651): android.content.res.Resources$NotFoundException: File res/r
  124.  
  125. aw/duhhello.ogg from drawable resource ID #0x7f030000
  126.  
  127. W/System.err(  651):    at android.content.res.Resources.openRawResourceFd(Resou
  128.  
  129. rces.java:859)
  130.  
  131. W/System.err(  651):    at android.media.MediaPlayer.create(MediaPlayer.java:638
  132.  
  133. )
  134.  
  135. W/System.err(  651):    at org.me..MainActivity$1.onClick(MainActivi
  136.  
  137. ty.java:25)
  138.  
  139. W/System.err(  651):    at android.view.View.performClick(View.java:2364)
  140.  
  141. W/System.err(  651):    at android.view.View.onTouchEvent(View.java:4179)
  142.  
  143. W/System.err(  651):    at android.widget.TextView.onTouchEvent(TextView.java:65
  144.  
  145. 40)
  146.  
  147. W/System.err(  651):    at android.view.View.dispatchTouchEvent(View.java:3709)
  148.  
  149. W/System.err(  651):    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
  150.  
  151. ava:884)
  152.  
  153. W/System.err(  651):    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
  154.  
  155. ava:884)
  156.  
  157. W/System.err(  651):    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
  158.  
  159. ava:884)
  160.  
  161. W/System.err(  651):    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
  162.  
  163. ava:884)
  164.  
  165. W/System.err(  651):    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
  166.  
  167. ava:884)
  168.  
  169. W/System.err(  651):    at com.android.internal.policy.impl.PhoneWindow$DecorVie
  170.  
  171. w.superDispatchTouchEvent(PhoneWindow.java:1659)
  172.  
  173. W/System.err(  651):    at com.android.internal.policy.impl.PhoneWindow.superDis
  174.  
  175. patchTouchEvent(PhoneWindow.java:1107)
  176.  
  177. W/System.err(  651):    at android.app.Activity.dispatchTouchEvent(Activity.java
  178.  
  179. :2061)
  180.  
  181. W/System.err(  651):    at com.android.internal.policy.impl.PhoneWindow$DecorVie
  182.  
  183. w.dispatchTouchEvent(PhoneWindow.java:1643)
  184.  
  185. W/System.err(  651):    at android.view.ViewRoot.handleMessage(ViewRoot.java:169
  186.  
  187. 1)
  188.  
  189. W/System.err(  651):    at android.os.Handler.dispatchMessage(Handler.java:99)
  190.  
  191. W/System.err(  651):    at android.os.Looper.loop(Looper.java:123)
  192.  
  193. W/System.err(  651):    at android.app.ActivityThread.main(ActivityThread.java:4
  194.  
  195. 363)
  196.  
  197. W/System.err(  651):    at java.lang.reflect.Method.invokeNative(Native Method)
  198.  
  199. W/System.err(  651):    at java.lang.reflect.Method.invoke(Method.java:521)
  200.  
  201. W/System.err(  651):    at com.android.internal.os.ZygoteInit$MethodAndArgsCalle
  202.  
  203. r.run(ZygoteInit.java:860)
  204.  
  205. W/System.err(  651):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.ja
  206.  
  207. va:618)
  208.  
  209. W/System.err(  651):    at dalvik.system.NativeStart.main(Native Method)
  210.  
  211. W/System.err(  651): Caused by: java.io.FileNotFoundException: This file can not
  212.  
  213.  be opened as a file descriptor; it is probably compressed
  214.  
  215. W/System.err(  651):    at android.content.res.AssetManager.openNonAssetFdNative
  216.  
  217. (Native Method)
  218.  
  219. W/System.err(  651):    at android.content.res.AssetManager.openNonAssetFd(Asset
  220.  
  221. Manager.java:410)
  222.  
  223. W/System.err(  651):    at android.content.res.Resources.openRawResourceFd(Resou
  224.  
  225. rces.java:856)
  226.  
  227. W/System.err(  651):    ... 24 more
  228.  
  229. W/KeyCharacterMap(  651): No keyboard for id 0
  230.  
  231. W/KeyCharacterMap(  651): Using default keymap: /system/usr/keychars/qwerty.kcm.
  232.  
  233. bin
  234.  
  235.  
Parsed in 0.052 seconds, using GeSHi 1.0.8.4


My Main Activity:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public class MainActivity extends Activity {
  2.  
  3.     Button myButton;
  4.  
  5.     private static MediaPlayer mp;
  6.  
  7.  
  8.  
  9.     @Override
  10.  
  11.     public void onCreate(Bundle icicle) {
  12.  
  13.         super.onCreate(icicle);
  14.  
  15.         this.setContentView(R.layout.main);
  16.  
  17.  
  18.  
  19.         myButton = (Button)this.findViewById(R.id.my_button);
  20.  
  21.         mp = new MediaPlayer();
  22.  
  23.         myButton.setOnClickListener(new OnClickListener() {
  24.  
  25.                 @Override
  26.  
  27.                 public void onClick(View v) {
  28.  
  29.                     try {
  30.  
  31.                         mp = MediaPlayer.create(getBaseContext(), R.raw.duhhello);
  32.  
  33.                         mp.prepare();
  34.  
  35.                         mp.start();
  36.  
  37.                     } catch (Exception e) {
  38.  
  39.                         e.printStackTrace();
  40.  
  41.                     }
  42.  
  43.             }
  44.  
  45.         });
  46.  
  47.  
  48.  
  49.     }
  50.  
  51. }
  52.  
  53.  
Parsed in 0.034 seconds, using GeSHi 1.0.8.4


The ogg file is in my raw folder....
arberb
Junior Developer
Junior Developer
 
Posts: 12
Joined: Mon Apr 19, 2010 12:08 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests