Error (1,-2147483648)
Java.io.IOException:Prepare failed.: status=0x1
At Android.media.MediaPlayer.prepare (Native method)
At Com.android.MainActivity.onClick (mainactivity.java:56)
At Android.view.View.performClick (view.java:2486)
At Android.view.view$performclick.run (view.java:9122)
At Android.os.Handler.handleCallback (handler.java:587)
At Android.os.Handler.dispatchMessage (handler.java:92)
At Android.os.Looper.loop (looper.java:130)
At Android.app.ActivityThread.main (activitythread.java:3694)
At Java.lang.reflect.Method.invokeNative (Native method)
At Java.lang.reflect.Method.invoke (method.java:507)
At Com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:841)
At Com.android.internal.os.ZygoteInit.main (zygoteinit.java:599)
At Dalvik.system.NativeStart.main (Native method)
Setdatasource called in State 8
Solutions to these problems:
File File = new file (strpath);
FileInputStream fis = new FileInputStream (file);
Mediaplayer.setdatasource (FIS.GETFD ());
Mp.prepare ();