I have updated my android sdk from r21 to r22. I also updated the adt. Before the updates, my application work perfectly without error and force close. But now, all of my apps are force close when run via avd or real phone. I don't know the problem, but, it seems that the compiler didn't found my MainActivity class. I have already checked it many times, and I'm sure that my MainActivity doesn't have any error and compile properly.
Here's the logcat error:
05-25 01:11:02.931: E/AndroidRuntime(7724): FATAL EXCEPTION: main
05-25 01:11:02.931: E/AndroidRuntime(7724): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ca.slim.social/ca.slim.social.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "ca.slim.social.MainActivity" on path: /data/app/ca.slim.social-2.apk
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2223)
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2357)
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.app.ActivityThread.access$600(ActivityThread.java:153)
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.os.Handler.dispatchMessage(Handler.java:99)
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.os.Looper.loop(Looper.java:137)
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.app.ActivityThread.main(ActivityThread.java:5224)
05-25 01:11:02.931: E/AndroidRuntime(7724): at java.lang.reflect.Method.invokeNative(Native Method)
05-25 01:11:02.931: E/AndroidRuntime(7724): at java.lang.reflect.Method.invoke(Method.java:511)
05-25 01:11:02.931: E/AndroidRuntime(7724): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
05-25 01:11:02.931: E/AndroidRuntime(7724): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:561)
05-25 01:11:02.931: E/AndroidRuntime(7724): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:106)
05-25 01:11:02.931: E/AndroidRuntime(7724): at dalvik.system.NativeStart.main(Native Method)
[tpb]05-25 01:11:02.931: E/AndroidRuntime(7724): Caused by: java.lang.ClassNotFoundException: Didn't find class "ca.slim.social.MainActivity" on path: /data/app/ca.slim.social-2.apk[/tpb]
05-25 01:11:02.931: E/AndroidRuntime(7724): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
05-25 01:11:02.931: E/AndroidRuntime(7724): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-25 01:11:02.931: E/AndroidRuntime(7724): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
05-25 01:11:02.931: E/AndroidRuntime(7724): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2214)
05-25 01:11:02.931: E/AndroidRuntime(7724): ... 12 more
NB: I'm using actionbarsherlock, slidingmenu, and viewpagerindicator.
Thank You
Lots of people are having this issue!
Try these solutions:
ClassNotFoundException after ADT update
Try going to Project -> Properties -> Java Build Path -> Order & Export and ensure Android Private Libraries are checked for your project and for all other library projects you are using. Clean all projects afterwards and see what happens.
Eclipse giving error, missing R.java file after recent update
After updating to SDK Tools to rev. 22 for the first time, you may need to relaunch Android SDK Manager again and install a new item: Android SDK Build-tools.
Which version of java you are using? Try to update your JDK to 1.7 and let us know if that helps. You could also try the suggestions in this link to help troubleshoot your problem.
Related
I am importing Tensorflow example to run it in Android 5 simulator on Windows, but I am getting this error. Do you know why that happens?
05-25 17:14:31.340: E/AndroidRuntime(1189): FATAL EXCEPTION: main
05-25 17:14:31.340: E/AndroidRuntime(1189): Process:
org.tensorflow.demo, PID: 1189 05-25 17:14:31.340:
E/AndroidRuntime(1189): java.lang.UnsatisfiedLinkError:
dalvik.system.PathClassLoader[DexPathList[[zip file
"/data/app/org.tensorflow.demo-2/base.apk"],nativeLibraryDirectories=[/vendor/lib,
/system/lib]]] couldn't find "libtensorflow_demo.so" 05-25
17:14:31.340: E/AndroidRuntime(1189): at
java.lang.Runtime.loadLibrary(Runtime.java:366) 05-25 17:14:31.340:
E/AndroidRuntime(1189): at
java.lang.System.loadLibrary(System.java:989) 05-25 17:14:31.340:
E/AndroidRuntime(1189): at
org.tensorflow.demo.TensorflowClassifier.(TensorflowClassifier.java:47)
05-25 17:14:31.340: E/AndroidRuntime(1189): at
org.tensorflow.demo.TensorflowImageListener.(TensorflowImageListener.java:55)
05-25 17:14:31.340: E/AndroidRuntime(1189): at
org.tensorflow.demo.CameraConnectionFragment.(CameraConnectionFragment.java:452)
05-25 17:14:31.340: E/AndroidRuntime(1189): at
org.tensorflow.demo.CameraConnectionFragment.newInstance(CameraConnectionFragment.java:271)
05-25 17:14:31.340: E/AndroidRuntime(1189): at
org.tensorflow.demo.CameraActivity.onCreate(CameraActivity.java:33)
05-25 17:14:31.340: E/AndroidRuntime(1189): at
android.app.Activity.performCreate(Activity.java:5937) 05-25
17:14:31.340: E/AndroidRuntime(1189): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
Below my AVD settings --
I am developing an offline routing app in a team with Cartotype.
We’ve implemented the MapView successfully, and it is working when we test it on a real Android device.
But when i use the Genymotion Emu for testing it, the activity is crashing when called with the following error message in the log cat.
05-25 16:37:19.468: E/AndroidRuntime(1050): FATAL EXCEPTION: main
05-25 16:37:19.468: E/AndroidRuntime(1050): java.lang.ExceptionInInitializerError
05-25 16:37:19.468: E/AndroidRuntime(1050): at de.hshn.tourwest.classes.CMapView.init(CMapView.java:109)
05-25 16:37:19.468: E/AndroidRuntime(1050): at de.hshn.tourwest.classes.CMapView.onDraw(CMapView.java:245)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.draw(View.java:13458)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.getDisplayList(View.java:12409)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.getDisplayList(View.java:12453)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.draw(View.java:13182)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.getDisplayList(View.java:12407)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.getDisplayList(View.java:12453)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.draw(View.java:13182)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.getDisplayList(View.java:12407)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.getDisplayList(View.java:12453)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.draw(View.java:13182)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.draw(View.java:13461)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.widget.FrameLayout.draw(FrameLayout.java:467)
05-25 16:37:19.468: E/AndroidRuntime(1050): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2183)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.getDisplayList(View.java:12409)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.View.getDisplayList(View.java:12453)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1144)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2147)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2019)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1830)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.Choreographer.doCallbacks(Choreographer.java:555)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.Choreographer.doFrame(Choreographer.java:525)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.os.Handler.handleCallback(Handler.java:615)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.os.Handler.dispatchMessage(Handler.java:92)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.os.Looper.loop(Looper.java:137)
05-25 16:37:19.468: E/AndroidRuntime(1050): at android.app.ActivityThread.main(ActivityThread.java:4745)
05-25 16:37:19.468: E/AndroidRuntime(1050): at java.lang.reflect.Method.invokeNative(Native Method)
05-25 16:37:19.468: E/AndroidRuntime(1050): at java.lang.reflect.Method.invoke(Method.java:511)
05-25 16:37:19.468: E/AndroidRuntime(1050): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
05-25 16:37:19.468: E/AndroidRuntime(1050): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-25 16:37:19.468: E/AndroidRuntime(1050): at dalvik.system.NativeStart.main(Native Method)
05-25 16:37:19.468: E/AndroidRuntime(1050): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load cartotype: findLibrary returned null
05-25 16:37:19.468: E/AndroidRuntime(1050): at java.lang.Runtime.loadLibrary(Runtime.java:365)
05-25 16:37:19.468: E/AndroidRuntime(1050): at java.lang.System.loadLibrary(System.java:535)
05-25 16:37:19.468: E/AndroidRuntime(1050): at com.cartotype.Framework.<clinit>(Framework.java:944)
05-25 16:37:19.468: E/AndroidRuntime(1050): ... 42 more
i have no android device around me, so that i need to use an emulator.
The libs are correct added:
<project>\libs\cartotype.jar
<project>\libs\armeabi\libcartotype.so
Genymotion runs on x86 architecture.
When the loadLibrary method is executed, the Runtime will try to find the library (.so) inside the folder app_data/libs/x86/
To run your app on this emulator Cartotype needs to support it.
When a library supports x86, the libs directory should look like:
<project>\libs\myLib.jar
<project>\libs\armeabi\myLib.so
<project>\libs\x86\myLib.so
It seems Cartotype does not support x86. So, you should ask to Cartotype to support this architecture as a growing number of devices are using x86 CPUs, including Genymotion.
Or you can try to find another offline maps library that supports x86.
Instead of using Genymotion, use the standard Android emulator in the SDK. Because that emulates an ARM CPU, rather than trying to run x86 code directly, it should cope with your library only being provided in ARM form.
Yes, I know this will be slower, but slower is better than not working at all in this case.
I have built a demo application which works perfectly, and looks like the following:
Then after a few runs, Genymotion suddenly stops working, and a screen like the following appears:
.
The Logcat keeps recording the following lines:
05-25 13:58:24.326: E/eglCodecCommon(2163): writeFully: failed: Broken pipe
05-25 13:58:24.418: E/EGL_genymotion(2163): tid 2163: eglChooseConfig(544): error 0x3001 (EGL_NOT_INITIALIZED)
05-25 13:58:24.422: E/AndroidRuntime(2163): FATAL EXCEPTION: main
05-25 13:58:24.422: E/AndroidRuntime(2163): Process: com.nextgenintl.aimassistant, PID: 2163
05-25 13:58:24.422: E/AndroidRuntime(2163): java.lang.IllegalArgumentException: eglChooseConfig failed EGL_NOT_INITIALIZED
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.HardwareRenderer$GlRenderer.chooseEglConfig(HardwareRenderer.java:1173)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.HardwareRenderer$GlRenderer.loadEglConfig(HardwareRenderer.java:1135)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.HardwareRenderer$GlRenderer.initializeEgl(HardwareRenderer.java:1117)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.HardwareRenderer$GlRenderer.initialize(HardwareRenderer.java:1057)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1550)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.Choreographer.doFrame(Choreographer.java:544)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.os.Handler.handleCallback(Handler.java:733)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.os.Handler.dispatchMessage(Handler.java:95)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.os.Looper.loop(Looper.java:136)
05-25 13:58:24.422: E/AndroidRuntime(2163): at android.app.ActivityThread.main(ActivityThread.java:5017)
05-25 13:58:24.422: E/AndroidRuntime(2163): at java.lang.reflect.Method.invokeNative(Native Method)
05-25 13:58:24.422: E/AndroidRuntime(2163): at java.lang.reflect.Method.invoke(Method.java:515)
05-25 13:58:24.422: E/AndroidRuntime(2163): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
05-25 13:58:24.422: E/AndroidRuntime(2163): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
05-25 13:58:24.422: E/AndroidRuntime(2163): at dalvik.system.NativeStart.main(Native Method)
If I shut down Genymotion and relaunch it, it works fine again.
What is the cause of this problem, and is anyone experiencing it too?
It's not really caused by your application, so don't worry.
It often happens when you computer goes in sleep mode and when you come back Genymotion will throw this exception (it happens to me very often).
In your specific case sounds like the device goes in sleep mode so a way to fix it is simply to enable "Always stay awake" in developers options.
Another way to fix it is just to turn off your emulator and relaunch. (as you already do)
The broken pipe error means there is a problem with the connection between emulator and host computer.
To fix it you can restart the emulator (or follow the advice from the other answer).
I had the same problem and fixed it choosing the same resolution of my virtual device. It says "Custom Tablet - 6.0.0 - API 23 - 2560x1600" and the resolution was lower than this. When I put the same, the device doesn't crash anymore
My application works in the emulator and recognizes the session, but in the phone gives this error "com.facebook.http.protocol.ApiException: Invalid application 523937644333547"
this is the logcat
*05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): Exception during service
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): com.facebook.http.protocol.ApiException: Invalid application 523937644333547
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.http.protocol.ApiResponseChecker.b(ApiResponseChecker.java:74)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.http.protocol.ApiResponseChecker.a(ApiResponseChecker.java:103)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.http.protocol.ApiResponse.h(ApiResponse.java:208)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:266)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.katana.server.protocol.AuthorizeAppMethod.a(AuthorizeAppMethod.java:27)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.http.protocol.SingleMethodRunnerImpl.a(SingleMethodRunnerImpl.java:141)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.http.protocol.AbstractSingleMethodRunner.a(AbstractSingleMethodRunner.java:16)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.katana.server.handler.PlatformOperationHandler.c(PlatformOperationHandler.java:284)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.katana.server.handler.PlatformOperationHandler.a(PlatformOperationHandler.java:185)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.fbservice.service.BlueServiceQueue.d(BlueServiceQueue.java:245)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.fbservice.service.BlueServiceQueue.d(BlueServiceQueue.java:51)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.fbservice.service.BlueServiceQueue$3.run(BlueServiceQueue.java:191)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:444)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at com.facebook.common.executors.HandlerExecutorServiceImpl$ListenableScheduledFuture.run(HandlerExecutorServiceImpl.java:268)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at android.os.Handler.handleCallback(Handler.java:587)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at android.os.Handler.dispatchMessage(Handler.java:92)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at android.os.Looper.loop(Looper.java:130)
05-25 01:06:53.027: W/fb4a(:<default>):BlueServiceQueue(31631): at android.os.HandlerThread.run(HandlerThread.java:60)
05-25 01:06:53.117: W/kernel(130): [522168.671081] select 31563 (n.customization), adj 8, size 3363, to kill
05-25 01:06:53.117: W/kernel(130): [522168.671112] select 32156 (android.vending), adj 9, size 4828, to kill
05-25 01:06:53.117: W/kernel(130): [522168.671142] send sigkill to 32156 (android.vending), adj 9, size 4828
05-25 01:06:53.477: D/dalvikvm(31631): GC_CONCURRENT freed 1871K, 33% free 8741K/12999K, external 2082K/2133K, paused 4ms+6ms
05-25 01:06:54.027: W/kernel(130): [522169.579986] select 31563 (n.customization), adj 8, size 3361, to kill
05-25 01:06:54.027: W/kernel(130): [522169.580047] select 32215 (d.process.media), adj 9, size 4146, to kill
05-25 01:06:54.027: W/kernel(130): [522169.580108] send sigkill to 32215 (d.process.media), adj 9, size 4146*
can anyone help me?
thanks
I'm trying to populate my own SQLite db into the android listview for viewing but have a problem, the code runs but will generate an "unexpected quitting".
I've checked my DDMS and the emulator has my SQLite file within the database which was copied from the assets file.
I'm not sure what went wrong here, can anyone can give me some pointers where i should start looking from? Or is there anything even wrong with the code I've provided below ? Any where i can check for potential kinks in the code ?
Thank you !!!
private void fillData() {
Cursor drugsCursor = mDbHelper.fetchAllDrugs();
startManagingCursor(drugsCursor);
//Creating an array to specify the fields we want
String[] from = new String[] {DrugsDbAdapter.KEY_ROWID};
//and an array of the fields we want to bind in the view
int[] to = new int[] {R.id.text1};
//To Create the simple cursor adapter and set it to display
SimpleCursorAdapter drugs = new SimpleCursorAdapter(this, R.layout.drug_row, drugsCursor, from, to);
setListAdapter(drugs);
}
and the DrugsDbAdapter.java handling the Cursor is here
public Cursor fetchAllDrugs() {
return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_DRUG, KEY_CONTENT, KEY_INDICATION, KEY_DOSAGE, KEY_SPECIALPRECAUTION} , null, null, null, null, null);
}
The output of my LogCat (the red color portion of the output- should i be posting the whole log?) is:
05-25 18:12:22.338: WARN/dalvikvm(27763): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): FATAL EXCEPTION: main
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.paad.medboxsd/com.paad.medboxsd.medboxsd}: java.lang.NullPointerException
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.os.Handler.dispatchMessage(Handler.java:99)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.os.Looper.loop(Looper.java:123)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.app.ActivityThread.main(ActivityThread.java:4627)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at java.lang.reflect.Method.invokeNative(Native Method)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at java.lang.reflect.Method.invoke(Method.java:521)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at dalvik.system.NativeStart.main(Native Method)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): Caused by: java.lang.NullPointerException
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at com.paad.medboxsd.medboxsd.fillData(medboxsd.java:67)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at com.paad.medboxsd.medboxsd.onCreate(medboxsd.java:56)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
05-25 18:12:22.434: ERROR/AndroidRuntime(27763): ... 11 more
05-25 18:12:22.514: WARN/ActivityManager(59): Force finishing activity com.paad.medboxsd/.medboxsd
05-25 18:12:23.034: WARN/ActivityManager(59): Activity pause timeout for HistoryRecord{450fc298 com.paad.medboxsd/.medboxsd}
I suspect the problem is that you're not providing a column named '_id' to your Cursor. See my answer to Android: column '_id' does not exist problem