Hi, i'm sorry to disturb...but i encounter some problems in running
the sample code.

I run the same code MediaPlayerDemo_Audio.java. But it has stop
unexpectedly.
here is the output of the logcat. Can anyone help me to fix the
problem? Please....

11-07 13:49:49.394: DEBUG/AndroidRuntime(871): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
11-07 13:49:49.394: DEBUG/AndroidRuntime(871): CheckJNI is ON
11-07 13:49:49.634: DEBUG/AndroidRuntime(871): --- registering native
functions ---
11-07 13:49:49.644: INFO/jdwp(871): received file descriptor 20 from
ADB
11-07 13:49:50.343: INFO/ActivityManager(567): Starting activity:
Intent { flags=0x10000000 comp={com.example.testing/
com.example.testing.testing} }
11-07 13:49:50.493: DEBUG/dalvikvm(567): GC freed 13119 objects /
686624 bytes in 140ms
11-07 13:49:50.513: DEBUG/AndroidRuntime(871): Shutting down VM
11-07 13:49:50.513: DEBUG/dalvikvm(871): DestroyJavaVM waiting for non-
daemon threads to exit
11-07 13:49:50.523: DEBUG/dalvikvm(871): DestroyJavaVM shutting VM
down
11-07 13:49:50.523: DEBUG/dalvikvm(871): HeapWorker thread shutting
down
11-07 13:49:50.523: DEBUG/dalvikvm(871): HeapWorker thread has shut
down
11-07 13:49:50.523: DEBUG/jdwp(871): JDWP shutting down net...
11-07 13:49:50.523: DEBUG/jdwp(871): +++ peer disconnected
11-07 13:49:50.523: INFO/dalvikvm(871): Debugger has detached; object
registry had 1 entries
11-07 13:49:50.534: DEBUG/dalvikvm(871): VM cleaning up
11-07 13:49:50.654: DEBUG/dalvikvm(871): LinearAlloc 0x0 used 639228
of 4194304 (15%)
11-07 13:49:50.723: INFO/ActivityManager(567): Start proc
com.example.testing for activity com.example.testing/.testing: pid=878
uid=10027 gids={}
11-07 13:49:50.863: INFO/jdwp(878): received file descriptor 10 from
ADB
11-07 13:49:51.163: DEBUG/AndroidRuntime(878): Shutting down VM
11-07 13:49:51.163: WARN/dalvikvm(878): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
11-07 13:49:51.173: ERROR/AndroidRuntime(878): Uncaught handler:
thread main exiting due to uncaught exception
11-07 13:49:51.193: ERROR/AndroidRuntime(878):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{com.example.testing/com.example.testing.testing}:
java.lang.NullPointerException
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.os.Handler.dispatchMessage(Handler.java:99)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.os.Looper.loop(Looper.java:123)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
java.lang.reflect.Method.invokeNative(Native Method)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
java.lang.reflect.Method.invoke(Method.java:521)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
dalvik.system.NativeStart.main(Native Method)
11-07 13:49:51.193: ERROR/AndroidRuntime(878): Caused by:
java.lang.NullPointerException
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
com.example.testing.testing.onCreate(testing.java:33)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
11-07 13:49:51.193: ERROR/AndroidRuntime(878):     ... 11 more
11-07 13:49:51.213: INFO/Process(567): Sending signal. PID: 878 SIG: 3
11-07 13:49:51.213: INFO/dalvikvm(878): threadid=7: reacting to signal
3
11-07 13:49:51.254: INFO/dalvikvm(878): Wrote stack trace to '/data/
anr/traces.txt'
11-07 13:50:00.504: WARN/ActivityManager(567): Launch timeout has
expired, giving up wake lock!
11-07 13:50:00.988: WARN/ActivityManager(567): Activity idle timeout
for HistoryRecord{4378d3f0 {com.example.testing/
com.example.testing.testing}}
11-07 13:50:06.072: DEBUG/dalvikvm(609): GC freed 374 objects / 18384
bytes in 76ms
11-07 13:50:15.963: INFO/Process(878): Sending signal. PID: 878 SIG: 9
11-07 13:50:15.983: INFO/ActivityManager(567): Process
com.example.testing (pid 878) has died.
11-07 13:50:16.153: WARN/InputManagerService(567): Window already
focused, ignoring focus gain of:
com.android.internal.view.iinputmethodclient$stub$pr...@43652140

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to