Could not find method android.support.v4.content.LocalBroadcastManager.getInstance - android

I know there's lot's of these questions, and "solution" is make sure that Android Private Libraries are checked. In my case they are, any other hints? App crash at very beginning.
Here goes stack trace
08-02 00:22:58.316: E/Trace(4825): error opening trace file: No such file or directory (2)
08-02 00:22:59.035: W/dalvikvm(4825): VFY: unable to find class referenced in signature (Landroid/support/v4/app/Fragment;)
08-02 00:22:59.035: W/dalvikvm(4825): VFY: unable to find class referenced in signature (Landroid/support/v4/app/Fragment;)
08-02 00:22:59.045: I/dalvikvm(4825): Could not find method android.support.v4.content.LocalBroadcastManager.getInstance, referenced from method com.facebook.Session.postActiveSessionAction
08-02 00:22:59.045: W/dalvikvm(4825): VFY: unable to resolve static method 187: Landroid/support/v4/content/LocalBroadcastManager;.getInstance (Landroid/content/Context;)Landroid/support/v4/content/LocalBroadcastManager;
08-02 00:22:59.045: D/dalvikvm(4825): VFY: replacing opcode 0x71 at 0x0009
08-02 00:22:59.075: D/AndroidRuntime(4825): Shutting down VM
08-02 00:22:59.075: W/dalvikvm(4825): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
08-02 00:22:59.095: E/AndroidRuntime(4825): FATAL EXCEPTION: main
08-02 00:22:59.095: E/AndroidRuntime(4825): java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager
08-02 00:22:59.095: E/AndroidRuntime(4825): at com.facebook.Session.postActiveSessionAction(Session.java:1215)
08-02 00:22:59.095: E/AndroidRuntime(4825): at com.facebook.Session.setActiveSession(Session.java:765)
08-02 00:22:59.095: E/AndroidRuntime(4825): at com.facebook.Session.openActiveSession(Session.java:865)
08-02 00:22:59.095: E/AndroidRuntime(4825): at com.facebook.Session.openActiveSession(Session.java:805)
08-02 00:22:59.095: E/AndroidRuntime(4825): at com.example.firstandroidapp.MainActivity.onCreate(MainActivity.java:22)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.app.Activity.performCreate(Activity.java:5104)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.app.ActivityThread.access$600(ActivityThread.java:141)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.os.Handler.dispatchMessage(Handler.java:99)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.os.Looper.loop(Looper.java:137)
08-02 00:22:59.095: E/AndroidRuntime(4825): at android.app.ActivityThread.main(ActivityThread.java:5041)
08-02 00:22:59.095: E/AndroidRuntime(4825): at java.lang.reflect.Method.invokeNative(Native Method)
08-02 00:22:59.095: E/AndroidRuntime(4825): at java.lang.reflect.Method.invoke(Method.java:511)
08-02 00:22:59.095: E/AndroidRuntime(4825): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
08-02 00:22:59.095: E/AndroidRuntime(4825): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
08-02 00:22:59.095: E/AndroidRuntime(4825): at dalvik.system.NativeStart.main(Native Method)

Solved. From some odd reason ADT preconfigured by google attached same file in /libs directory of project. When you add facebook SDK to class path it attaches it as well. Problem is they have diffrent versions (and sha-1 hash) so eclipse had problem what to do. I just remove /libs directory and it worked. Runs app from facebook tutorial successfully.

Related

App Crashes on Android 4.2 - Out of memory because of Cordova SplashScreen plugin

My application crashes on Android 4.2 because of Cordova/Phonegap SplashScreen plugin!
My app total size is: 5mb and I'm using the default splash screens of PhoneGap!! I tested the application on an Emulator and on a device and getting the same problem, the app crashes
Cordova version:
3.5.0-0.2.6
Plugins list:
com.adobe.plugins.GAPlugin 2.3.1 "GAPlugin"
com.google.playservices 18.0.0 "Google Play Services for Android"
com.ionic.keyboard 1.0.2 "Keyboard"
com.phonegap.plugins.barcodescanner 2.0.0 "BarcodeScanner"
com.postmedia.DFPPlugin 0.0.2 "DFPPlugin"
com.pushwoosh.plugins.pushwoosh 3.2.0 "Pushwoosh"
it.mobimentum.phonegapspinnerplugin 1.1.0 "SpinnerPlugin"
nl.x-services.plugins.socialsharing 4.3.0 "SocialSharing"
org.apache.cordova.console 0.2.9 "Console"
org.apache.cordova.device 0.2.10 "Device"
org.apache.cordova.dialogs 0.2.8 "Notification"
org.apache.cordova.globalization 0.2.8 "Globalization"
org.apache.cordova.inappbrowser 0.5.0 "InAppBrowser"
org.apache.cordova.network-information 0.2.10 "Network Information"
org.apache.cordova.splashscreen 0.3.1 "Splashscreen"
org.apache.cordova.statusbar 0.1.6 "StatusBar"
org.pushandplay.cordova.apprate 0.0.23 "AppRate"
Here is the log from eclipse logcat:
08-02 12:11:57.279: D/dalvikvm(3599): GC_FOR_ALLOC freed 3K, 1% free 42575K/42744K, paused 2ms, total 2ms
08-02 12:11:57.279: I/dalvikvm-heap(3599): Forcing collection of SoftReferences for 92174412-byte allocation
08-02 12:11:57.289: D/dalvikvm(3599): GC_BEFORE_OOM freed 9K, 1% free 42566K/42744K, paused 11ms, total 11ms
08-02 12:11:57.289: E/dalvikvm-heap(3599): Out of memory on a 92174412-byte allocation.
08-02 12:11:57.289: I/dalvikvm(3599): "main" prio=5 tid=1 RUNNABLE
08-02 12:11:57.289: I/dalvikvm(3599): | group="main" sCount=0 dsCount=0 obj=0xb2d37938 self=0xb81d4e80
08-02 12:11:57.289: I/dalvikvm(3599): | sysTid=3599 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=-1208110944
08-02 12:11:57.289: I/dalvikvm(3599): | state=R schedstat=( 0 0 0 ) utm=13 stm=3 core=0
08-02 12:11:57.299: I/dalvikvm(3599): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
08-02 12:11:57.299: I/dalvikvm(3599): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502)
08-02 12:11:57.299: I/dalvikvm(3599): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355)
08-02 12:11:57.299: I/dalvikvm(3599): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785)
08-02 12:11:57.299: I/dalvikvm(3599): at android.content.res.Resources.loadDrawable(Resources.java:1965)
08-02 12:11:57.299: I/dalvikvm(3599): at android.content.res.Resources.getDrawable(Resources.java:660)
08-02 12:11:57.299: I/dalvikvm(3599): at android.view.View.setBackgroundResource(View.java:14463)
08-02 12:11:57.299: I/dalvikvm(3599): at org.apache.cordova.CordovaActivity$5.run(CordovaActivity.java:1070)
08-02 12:11:57.299: I/dalvikvm(3599): at android.app.Activity.runOnUiThread(Activity.java:4644)
08-02 12:11:57.299: I/dalvikvm(3599): at org.apache.cordova.CordovaActivity.showSplashScreen(CordovaActivity.java:1093)
08-02 12:11:57.299: I/dalvikvm(3599): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:370)
08-02 12:11:57.299: I/dalvikvm(3599): at com.bkam.Bkam.onCreate(Bkam.java:33)
08-02 12:11:57.299: I/dalvikvm(3599): at android.app.Activity.performCreate(Activity.java:5104)
08-02 12:11:57.299: I/dalvikvm(3599): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
08-02 12:11:57.299: I/dalvikvm(3599): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
08-02 12:11:57.299: I/dalvikvm(3599): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
08-02 12:11:57.299: I/dalvikvm(3599): at android.app.ActivityThread.access$600(ActivityThread.java:141)
08-02 12:11:57.299: I/dalvikvm(3599): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
08-02 12:11:57.299: I/dalvikvm(3599): at android.os.Handler.dispatchMessage(Handler.java:99)
08-02 12:11:57.299: I/dalvikvm(3599): at android.os.Looper.loop(Looper.java:137)
08-02 12:11:57.299: I/dalvikvm(3599): at android.app.ActivityThread.main(ActivityThread.java:5039)
08-02 12:11:57.299: I/dalvikvm(3599): at java.lang.reflect.Method.invokeNative(Native Method)
08-02 12:11:57.299: I/dalvikvm(3599): at java.lang.reflect.Method.invoke(Method.java:511)
08-02 12:11:57.299: I/dalvikvm(3599): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
08-02 12:11:57.299: I/dalvikvm(3599): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
08-02 12:11:57.299: I/dalvikvm(3599): at dalvik.system.NativeStart.main(Native Method)
08-02 12:11:57.299: D/skia(3599): --- allocation failed for scaled bitmap
08-02 12:11:57.299: D/AndroidRuntime(3599): Shutting down VM
08-02 12:11:57.299: W/dalvikvm(3599): threadid=1: thread exiting with uncaught exception (group=0xb2d36908)
08-02 12:11:57.309: E/AndroidRuntime(3599): FATAL EXCEPTION: main
08-02 12:11:57.309: E/AndroidRuntime(3599): java.lang.OutOfMemoryError
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.content.res.Resources.loadDrawable(Resources.java:1965)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.content.res.Resources.getDrawable(Resources.java:660)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.view.View.setBackgroundResource(View.java:14463)
08-02 12:11:57.309: E/AndroidRuntime(3599): at org.apache.cordova.CordovaActivity$5.run(CordovaActivity.java:1070)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.app.Activity.runOnUiThread(Activity.java:4644)
08-02 12:11:57.309: E/AndroidRuntime(3599): at org.apache.cordova.CordovaActivity.showSplashScreen(CordovaActivity.java:1093)
08-02 12:11:57.309: E/AndroidRuntime(3599): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:370)
08-02 12:11:57.309: E/AndroidRuntime(3599): at com.bkam.Bkam.onCreate(Bkam.java:33)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.app.Activity.performCreate(Activity.java:5104)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.app.ActivityThread.access$600(ActivityThread.java:141)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.os.Handler.dispatchMessage(Handler.java:99)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.os.Looper.loop(Looper.java:137)
08-02 12:11:57.309: E/AndroidRuntime(3599): at android.app.ActivityThread.main(ActivityThread.java:5039)
08-02 12:11:57.309: E/AndroidRuntime(3599): at java.lang.reflect.Method.invokeNative(Native Method)
08-02 12:11:57.309: E/AndroidRuntime(3599): at java.lang.reflect.Method.invoke(Method.java:511)
08-02 12:11:57.309: E/AndroidRuntime(3599): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
08-02 12:11:57.309: E/AndroidRuntime(3599): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
08-02 12:11:57.309: E/AndroidRuntime(3599): at dalvik.system.NativeStart.main(Native Method)

Could not find FragmentActivty to start

I have an activty with a button i would like to start a FragmentActivity using this button.
but my problem is my Activity is unknown. I checked My AndroidManifest all my Activities are declared . you find below the Log. In this class I am using an external lib.
08-02 10:51:49.574: E/dalvikvm(12660): Could not find class 'edu.dartmouth.cs.actiontabs.ViewPagerActivity', referenced from method edu.dartmouth.cs.actiontabs.TestActivity$1.onClick
08-02 10:51:49.714: E/SpannableStringBuilder(12660): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
08-02 10:51:52.035: E/AndroidRuntime(12660): FATAL EXCEPTION: main
08-02 10:51:52.035: E/AndroidRuntime(12660): java.lang.NoClassDefFoundError: edu.dartmouth.cs.actiontabs.ViewPagerActivity
08-02 10:51:52.035: E/AndroidRuntime(12660): at edu.dartmouth.cs.actiontabs.TestActivity$1.onClick(TestActivity.java:28)
08-02 10:51:52.035: E/AndroidRuntime(12660): at android.view.View.performClick(View.java:4222)
08-02 10:51:52.035: E/AndroidRuntime(12660): at android.view.View$PerformClick.run(View.java:17337)
08-02 10:51:52.035: E/AndroidRuntime(12660): at android.os.Handler.handleCallback(Handler.java:615)
08-02 10:51:52.035: E/AndroidRuntime(12660): at android.os.Handler.dispatchMessage(Handler.java:92)
08-02 10:51:52.035: E/AndroidRuntime(12660): at android.os.Looper.loop(Looper.java:137)
08-02 10:51:52.035: E/AndroidRuntime(12660): at android.app.ActivityThread.main(ActivityThread.java:4895)
08-02 10:51:52.035: E/AndroidRuntime(12660): at java.lang.reflect.Method.invokeNative(Native Method)
08-02 10:51:52.035: E/AndroidRuntime(12660): at java.lang.reflect.Method.invoke(Method.java:511)
08-02 10:51:52.035: E/AndroidRuntime(12660): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
08-02 10:51:52.035: E/AndroidRuntime(12660): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
08-02 10:51:52.035: E/AndroidRuntime(12660): at dalvik.system.NativeStart.main(Native Method)
the declaration of my Activity in the manifest file:
<activity android:name="edu.dartmouth.cs.actiontabs.ViewPagerActivity" >
</activity>

How to read logcat error file. How can I read and tell what my logcat below means? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
08-02 20:48:36.703: D/EditText(3575): nouy
08-02 20:48:36.793: I/Choreographer(3575): Skipped 68 frames! The application may be doing too much work on its main thread.
08-02 20:48:37.143: D/dalvikvm(3575): GC_CONCURRENT freed 1331K, 34% free 2956K/4428K, paused 4ms+59ms, total 137ms
08-02 20:48:37.353: D/AndroidRuntime(3575): Shutting down VM
08-02 20:48:37.394: W/dalvikvm(3575): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
08-02 20:48:37.443: E/AndroidRuntime(3575): FATAL EXCEPTION: main
08-02 20:48:37.443: E/AndroidRuntime(3575): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.note/com.example.note.NoteEdit}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.app.ActivityThread.access$600(ActivityThread.java:141)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.os.Handler.dispatchMessage(Handler.java:99)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.os.Looper.loop(Looper.java:137)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.app.ActivityThread.main(ActivityThread.java:5041)
08-02 20:48:37.443: E/AndroidRuntime(3575): at java.lang.reflect.Method.invokeNative(Native Method)
08-02 20:48:37.443: E/AndroidRuntime(3575): at java.lang.reflect.Method.invoke(Method.java:511)
08-02 20:48:37.443: E/AndroidRuntime(3575): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
08-02 20:48:37.443: E/AndroidRuntime(3575): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
08-02 20:48:37.443: E/AndroidRuntime(3575): at dalvik.system.NativeStart.main(Native Method)
08-02 20:48:37.443: E/AndroidRuntime(3575): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:424)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)
08-02 20:48:37.443: E/AndroidRuntime(3575): at com.example.note.NoteEdit.populateFields(NoteEdit.java:231)
08-02 20:48:37.443: E/AndroidRuntime(3575): at com.example.note.NoteEdit.onCreate(NoteEdit.java:99)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.app.Activity.performCreate(Activity.java:5104)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
The output in Logcat should be read from top(in your case, FATAL EXCEPTION: main onwards). However, you need to find how your activity contributes to the error. In most cases(and definitely not all), you will find Logcat informing you about a line of code inside the scope of your app. This is where the exception originated:
08-02 20:48:37.443: E/AndroidRuntime(3575): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:424)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
08-02 20:48:37.443: E/AndroidRuntime(3575): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)
-------->>>>>>>>> 08-02 20:48:37.443: E/AndroidRuntime(3575): at com.example.note.NoteEdit.populateFields(NoteEdit.java:231)
After this, the error propagates towards the top before reaching:
08-02 20:48:37.443: E/AndroidRuntime(3575): FATAL EXCEPTION: main
08-02 20:48:37.443: E/AndroidRuntime(3575): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.note/com.example.note.NoteEdit}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
Another thing to be careful about: exceptions don't always occur independently. You can have several exceptions stacked up. In this case, find the exception that is thrown first(lowest in the Logcat output) and work your way to the top.

thread exiting with uncaught exception

I am implementing the system andEngine multiplayer for first, then be able to adjust all imports and libraries and runs without any error in MOTODEV, but the emulator "has stopped unexpectedly".
You can see code here.
Error on emulator:
08-02 00:52:55.500: D/AndroidRuntime(330): Shutting down VM
08-02 00:52:55.500: W/dalvikvm(330): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
08-02 00:52:55.549: E/AndroidRuntime(330): FATAL EXCEPTION: main
08-02 00:52:55.549: E/AndroidRuntime(330): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.multiplayerand/com.multiplayerand.MainActivity}: java.lang.ClassNotFoundException: com.multiplayerand.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.multiplayerand-2.apk]
08-02 00:52:55.549: E/AndroidRuntime(330): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
08-02 00:52:55.549: E/AndroidRuntime(330): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
08-02 00:52:55.549: E/AndroidRuntime(330): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
08-02 00:52:55.549: E/AndroidRuntime(330): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
08-02 00:52:55.549: E/AndroidRuntime(330): at android.os.Handler.dispatchMessage(Handler.java:99)
08-02 00:52:55.549: E/AndroidRuntime(330): at android.os.Looper.loop(Looper.java:123)
08-02 00:52:55.549: E/AndroidRuntime(330): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-02 00:52:55.549: E/AndroidRuntime(330): at java.lang.reflect.Method.invokeNative(Native Method)
08-02 00:52:55.549: E/AndroidRuntime(330): at java.lang.reflect.Method.invoke(Method.java:521)
08-02 00:52:55.549: E/AndroidRuntime(330): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-02 00:52:55.549: E/AndroidRuntime(330): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-02 00:52:55.549: E/AndroidRuntime(330): at dalvik.system.NativeStart.main(Native Method)
08-02 00:52:55.549: E/AndroidRuntime(330): Caused by: java.lang.ClassNotFoundException: com.multiplayerand.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.multiplayerand-2.apk]
08-02 00:52:55.549: E/AndroidRuntime(330): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
08-02 00:52:55.549: E/AndroidRuntime(330): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-02 00:52:55.549: E/AndroidRuntime(330): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
08-02 00:52:55.549: E/AndroidRuntime(330): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
08-02 00:52:55.549: E/AndroidRuntime(330): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
08-02 00:52:55.549: E/AndroidRuntime(330): ... 11 more
Pay attention to this line from your log:
Unable to instantiate activity ComponentInfo{com.multiplayerand/com.multiplayerand.MainActivity}: java.lang.ClassNotFoundException: com.multiplayerand.MainActivity in loader dalvik.system.PathClassLoader
That line says,you tried to instantiate activity that it's name is MainActivity and it would be in com.multiplayerand pakage,but system could not find any Activity with this Component-info,and so java.lang.ClassNotFoundException has been occurred.
I guess you can solve problem if you:
Check that your Activity name be MainActivity.
Check that MainActivity be in package with name com.multiplayerand.
Check that you registered MainActivity in manifest of your project.

My android app crashes after getting killed by task manager , How to resolve that?

my problem: if my app is going to be destroyed by a task manager on the phone, after restart the app it show me Force close . in my app in calling WebServices in BackGround, when i Kill my app using Task Killer and i Start my app again it shows me Force Close .
Actually i want when app is killed by Task Killer i want to show loing Screen ,can any buddy tell me any solution for that .
Thanks in advance
04-03 17:40:55.801: E/AndroidRuntime(4825): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.palewar.coinop/com.palewar.coinop.NewTransaction}: java.lang.NullPointerException
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.os.Handler.dispatchMessage(Handler.java:99)
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.os.Looper.loop(Looper.java:130)
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.app.ActivityThread.main(ActivityThread.java:3683)
04-03 17:40:55.801: E/AndroidRuntime(4825): at java.lang.reflect.Method.invokeNative(Native Method)
04-03 17:40:55.801: E/AndroidRuntime(4825): at java.lang.reflect.Method.invoke(Method.java:507)
04-03 17:40:55.801: E/AndroidRuntime(4825): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
04-03 17:40:55.801: E/AndroidRuntime(4825): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
04-03 17:40:55.801: E/AndroidRuntime(4825): at dalvik.system.NativeStart.main(Native Method)
04-03 17:40:55.801: E/AndroidRuntime(4825): Caused by: java.lang.NullPointerException
04-03 17:40:55.801: E/AndroidRuntime(4825): at com.palewar.coinop.NewTransaction.onCreate(NewTransaction.java:855)
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-03 17:40:55.801: E/AndroidRuntime(4825): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
Line number 855 of NewTransaction.java is trying to access something that no longer exists.
You should check whatever object you are using is not null and re-create it if it is.

Categories

Resources