Does anyone know what a status 64 is in MediaPlayer
My App crashed and the crash report shows
It is trying to load a file
and I am sure the file is included
What is status=64 and how to code for this error
BobVal
[/code]
My App crashed and the crash report shows
B4X:
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
~i:** Service (starter) Create **
~e:cgenfuncs_initialize (java line: 445)
~e:java.io.IOException: Prepare failed.: status=64
~e: at android.media.MediaPlayer.prepare(Native Method)
~e: at anywheresoftware.b4a.objects.MediaPlayerWrapper.loadAfterReset(MediaPlayerWrapper.java:98)
~e: at anywheresoftware.b4a.objects.MediaPlayerWrapper.Load(MediaPlayerWrapper.java:63)
~e: at com.BOBs.BBS.cgenfuncs._initialize(cgenfuncs.java:445)
~e: at com.BOBs.BBS.starter._service_create(starter.java:894)
~e: at java.lang.reflect.Method.invokeNative(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:525)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
~e: at com.BOBs.BBS.starter.onCreate(starter.java:57)
~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2577)
~e: at android.app.ActivityThread.access$1600(ActivityThread.java:141)
~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1338)
~e: at android.os.Handler.dispatchMessage(Handler.java:99)
~e: at android.os.Looper.loop(Looper.java:137)
~e: at android.app.ActivityThread.main(ActivityThread.java:5103)
~e: at java.lang.reflect.Method.invokeNative(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:525)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
~e: at dalvik.system.NativeStart.main(Native Method)
~e:java.lang.RuntimeException: Unable to create service com.BOBs.BBS.starter: java.lang.RuntimeException: java.io.IOException: Prepare failed.: status=64
~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2587)
~e: at android.app.ActivityThread.access$1600(ActivityThread.java:141)
~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1338)
~e: at android.os.Handler.dispatchMessage(Handler.java:99)
~e: at android.os.Looper.loop(Looper.java:137)
~e: at android.app.ActivityThread.main(ActivityThread.java:5103)
~e: at java.lang.reflect.Method.invokeNative(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:525)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
~e: at dalvik.system.NativeStart.main(Native Method)
~e:Caused by: java.lang.RuntimeException: java.io.IOException: Prepare failed.: status=64
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:206)
~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
~e: at com.BOBs.BBS.starter.onCreate(starter.java:57)
~e: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2577)
~e: ... 10 more
~e:Caused by: java.io.IOException: Prepare failed.: status=64
~e: at android.media.MediaPlayer.prepare(Native Method)
~e: at anywheresoftware.b4a.objects.MediaPlayerWrapper.loadAfterReset(MediaPlayerWrapper.java:98)
~e: at anywheresoftware.b4a.objects.MediaPlayerWrapper.Load(MediaPlayerWrapper.java:63)
~e: at com.BOBs.BBS.cgenfuncs._initialize(cgenfuncs.java:445)
~e: at com.BOBs.BBS.starter._service_create(starter.java:894)
~e: at java.lang.reflect.Method.invokeNative(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:525)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
~e: ... 13 more
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~e:starter_service_start (java line: 945) ~e:java.lang.NullPointerException
~e: at anywheresoftware.b4a.objects.IbHelper.startSetup(IbHelper.java:269)
~e: at anywheresoftware.b4a.inappbilling3.BillingManager3.Initialize(BillingManager3.java:44)
~e: at com.BOBs.BBS.starter._service_start(starter.java:945)
~e: at java.lang.reflect.Method.invokeNative(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:525)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
~e: at com.BOBs.BBS.starter.handleStart(starter.java:104)
~e: at com.BOBs.BBS.starter.onStartCommand(starter.java:72)
~e: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704)
~e: at android.app.ActivityThread.access$1900(ActivityThread.java:141)
~e: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353)
~e: at android.os.Handler.dispatchMessage(Handler.java:99)
~e: at android.os.Looper.loop(Looper.java:137)
~e: at android.app.ActivityThread.main(ActivityThread.java:5103)
~e: at java.lang.reflect.Method.invokeNative(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:525)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
~e: at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
at anywheresoftware.b4a.objects.IbHelper.startSetup(IbHelper.java:269)
at anywheresoftware.b4a.inappbilling3.BillingManager3.Initialize(BillingManager3.java:44)
at com.BOBs.BBS.starter._service_start(starter.java:945)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at com.BOBs.BBS.starter.handleStart(starter.java:104)
at com.BOBs.BBS.starter.onStartCommand(starter.java:72)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704)
at android.app.ActivityThread.access$1900(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
It is trying to load a file
B4X:
NotifySound.Initialize
NotifySound.Load(File.DirAssets, "sound-notify.mp3")
and I am sure the file is included
What is status=64 and how to code for this error
BobVal
[/code]