i'm getting crazy with this thing...
I've installed all, compiled all, retried a lot of time, followed various guides....
At the end i cam up with the project in eclipse without error (finally).
But... hey! it crash with this logcat!
01-13 15:36:26.123: D/dalvikvm(17992): WAIT_FOR_CONCURRENT_GC blocked 0ms
01-13 15:36:26.208: D/dalvikvm(17992): GC_FOR_ALLOC freed 113K, 13% free 9552K/10951K, paused 19ms, total 20ms
01-13 15:36:26.208: I/dalvikvm-heap(17992): Grow heap (frag case) to 13.295MB for 2908176-byte allocation
01-13 15:36:26.233: D/dalvikvm(17992): GC_CONCURRENT freed <1K, 11% free 12391K/13831K, paused 2ms+2ms, total 21ms
01-13 15:36:26.303: D/dalvikvm(17992): GC_FOR_ALLOC freed 0K, 11% free 12391K/13831K, paused 16ms, total 16ms
01-13 15:36:26.308: I/dalvikvm-heap(17992): Grow heap (frag case) to 14.854MB for 1635856-byte allocation
01-13 15:36:26.333: D/dalvikvm(17992): GC_CONCURRENT freed 0K, 10% free 13988K/15431K, paused 2ms+2ms, total 24ms
01-13 15:36:26.363: I/Linphone(17992): ==== Phone information dump ====
01-13 15:36:26.363: I/Linphone(17992): DEVICE=GT-I9100
01-13 15:36:26.363: I/Linphone(17992): MODEL=GT-I9100
01-13 15:36:26.363: I/Linphone(17992): SDK=16
01-13 15:36:26.363: I/Linphone(17992): Linphone version is null (2211)
01-13 15:36:26.373: W/Unable to load optional library lib(17992): avutil-linphone-arm
01-13 15:36:26.373: W/Unable to load optional library lib(17992): swscale-linphone-arm
01-13 15:36:26.373: W/Unable to load optional library lib(17992): avcodec-linphone-arm
01-13 15:36:26.378: W/Unable to load optional library lib(17992): crypto-linphone-armeabi-v7a
01-13 15:36:26.378: W/Unable to load optional library lib(17992): ssl-linphone-armeabi-v7a
01-13 15:36:26.378: W/Unable to load optional library lib(17992): srtp-armeabi-v7a
01-13 15:36:26.378: W/Unable to load optional library lib(17992): zrtpcpp-armeabi-v7a
01-13 15:36:26.378: W/dalvikvm(17992): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/linphone/core/LinphoneCoreFactoryImpl;
01-13 15:36:26.378: D/AndroidRuntime(17992): Shutting down VM
01-13 15:36:26.378: W/dalvikvm(17992): threadid=1: thread exiting with uncaught exception (group=0x410c42a0)
01-13 15:36:26.378: E/AndroidRuntime(17992): FATAL EXCEPTION: main
01-13 15:36:26.378: E/AndroidRuntime(17992): java.lang.ExceptionInInitializerError
01-13 15:36:26.378: E/AndroidRuntime(17992): at java.lang.Class.classForName(Native Method)
01-13 15:36:26.378: E/AndroidRuntime(17992): at java.lang.Class.forName(Class.java:217)
01-13 15:36:26.378: E/AndroidRuntime(17992): at java.lang.Class.forName(Class.java:172)
01-13 15:36:26.378: E/AndroidRuntime(17992): at org.linphone.core.LinphoneCoreFactory.instance(LinphoneCoreFactory.java:43)
01-13 15:36:26.378: E/AndroidRuntime(17992): at org.linphone.LinphoneManager.startLibLinphone(LinphoneManager.java:550)
01-13 15:36:26.378: E/AndroidRuntime(17992): at org.linphone.LinphoneManager.createAndStart(LinphoneManager.java:344)
01-13 15:36:26.378: E/AndroidRuntime(17992): at org.linphone.LinphoneService.onCreate(LinphoneService.java:157)
01-13 15:36:26.378: E/AndroidRuntime(17992): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
01-13 15:36:26.378: E/AndroidRuntime(17992): at android.app.ActivityThread.access$1700(ActivityThread.java:140)
01-13 15:36:26.378: E/AndroidRuntime(17992): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1319)
01-13 15:36:26.378: E/AndroidRuntime(17992): at android.os.Handler.dispatchMessage(Handler.java:99)
01-13 15:36:26.378: E/AndroidRuntime(17992): at android.os.Looper.loop(Looper.java:137)
01-13 15:36:26.378: E/AndroidRuntime(17992): at android.app.ActivityThread.main(ActivityThread.java:4921)
01-13 15:36:26.378: E/AndroidRuntime(17992): at java.lang.reflect.Method.invokeNative(Native Method)
01-13 15:36:26.378: E/AndroidRuntime(17992): at java.lang.reflect.Method.invoke(Method.java:511)
01-13 15:36:26.378: E/AndroidRuntime(17992): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
01-13 15:36:26.378: E/AndroidRuntime(17992): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
01-13 15:36:26.378: E/AndroidRuntime(17992): at dalvik.system.NativeStart.main(Native Method)
01-13 15:36:26.378: E/AndroidRuntime(17992): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load linphone-armeabi-v7a: findLibrary returned null
01-13 15:36:26.378: E/AndroidRuntime(17992): at java.lang.Runtime.loadLibrary(Runtime.java:365)
01-13 15:36:26.378: E/AndroidRuntime(17992): at java.lang.System.loadLibrary(System.java:535)
01-13 15:36:26.378: E/AndroidRuntime(17992): at org.linphone.core.LinphoneCoreFactoryImpl.<clinit>(LinphoneCoreFactoryImpl.java:69)
01-13 15:36:26.378: E/AndroidRuntime(17992): ... 18 more
I think the problem is this: Caused by: java.lang.UnsatisfiedLinkError: Couldn't load linphone-armeabi-v7a: findLibrary returned null
But (because i've done all) i don't know why something is missing and where i can take this.
Can someone help me? I really don't know how to do, i have no more idea.
Thanks
I had a problem like this. After many searches and many tries I finally fixed it.
I changed prepare.py in this line:
Preparator.__init__(self,targets,default_targets=['armv7','arm64','x86','x86_64'], virtual_targets=android_virtual_targets)
I resolved it and ran ./prepare.py again and I found x86 and x86-x64 dirs and *.so files in the lib directory. I can run linphone android app on all android devices.
I hope I helped you to solve your problem.
Related
I created an app using Android Studio
It work fine with lot of phones, but just with few Samsung mobiles it show force close when open App
Below is logcat log:
01-13 21:20:28.170: D/Brazil(3462): Index:162,Values:[Ljava.lang.String;#4312c1c0
01-13 21:20:28.170: D/Brazil(3462): Index:163,Values:[Ljava.lang.String;#4312c668
01-13 21:20:28.220: D/AndroidRuntime(3462): Shutting down VM
01-13 21:20:28.220: W/dalvikvm(3462): threadid=1: thread exiting with uncaught exception (group=0x41f9d2e8)
01-13 21:20:28.230: E/AndroidRuntime(3462): FATAL EXCEPTION: main
01-13 21:20:28.230: E/AndroidRuntime(3462): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.iran.sunni.time/com.iran.sunni.time.PrayerTimeActivity}: java.lang.IllegalArgumentException
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2118)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2143)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.app.ActivityThread.access$700(ActivityThread.java:140)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.os.Handler.dispatchMessage(Handler.java:99)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.os.Looper.loop(Looper.java:174)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.app.ActivityThread.main(ActivityThread.java:4952)
01-13 21:20:28.230: E/AndroidRuntime(3462): at java.lang.reflect.Method.invokeNative(Native Method)
01-13 21:20:28.230: E/AndroidRuntime(3462): at java.lang.reflect.Method.invoke(Method.java:511)
01-13 21:20:28.230: E/AndroidRuntime(3462): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
01-13 21:20:28.230: E/AndroidRuntime(3462): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
01-13 21:20:28.230: E/AndroidRuntime(3462): at dalvik.system.NativeStart.main(Native Method)
01-13 21:20:28.230: E/AndroidRuntime(3462): Caused by: java.lang.IllegalArgumentException
01-13 21:20:28.230: E/AndroidRuntime(3462): at java.util.Date.parse(Date.java:409)
01-13 21:20:28.230: E/AndroidRuntime(3462): at java.util.Date.<init>(Date.java:149)
01-13 21:20:28.230: E/AndroidRuntime(3462): at com.iran.sunni.time.PrayerTimeActivity.getTimeDiff(PrayerTimeActivity.java:799)
01-13 21:20:28.230: E/AndroidRuntime(3462): at com.iran.sunni.time.PrayerTimeActivity.calculateParyerTime(PrayerTimeActivity.java:461)
01-13 21:20:28.230: E/AndroidRuntime(3462): at com.iran.sunni.time.PrayerTimeActivity.onCreate(PrayerTimeActivity.java:323)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.app.Activity.performCreate(Activity.java:5188)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
01-13 21:20:28.230: E/AndroidRuntime(3462): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2082)
01-13 21:20:28.230: E/AndroidRuntime(3462): ... 11 more
01-13 21:20:28.240: I/power(406): *** release_dvfs_lock : lockType : 1
01-13 21:20:28.240: E/power(406): release_dvfs_lock : g_error_dvfs : 13
01-13 21:20:28.240: D/PowerManagerService(406): releaseDVFSLockLocked : all DVFS_MIN_LIMIT are released
01-13 21:20:28.240: W/ActivityManager(406): mDVFSLock.release()
01-13 21:20:28.240: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:28.290: E/android.os.Debug(406): !#Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
01-13 21:20:28.310: I/dumpstate(3485): begin
01-13 21:20:28.390: D/MotionEngine(406): [### Motion Engine ###] GetMotionScenarioId -1.522712 4.606444 8.130709 0.000000 0.000000 0.000000 51 20
01-13 21:20:28.610: D/MotionEngine(406): [MotionEngine] -> PR_MOVE -> Move Recognition Lv(2)
01-13 21:20:28.610: D/MotionEngine(406): [### Motion Engine ###] Event num 71 Occured
01-13 21:20:28.610: I/MotionRecognitionService(406): send 71=FLAT ~~
01-13 21:20:29.430: D/MotionEngine(406): [### Motion Engine ###] GetMotionScenarioId -1.503559 4.721366 8.111555 0.000000 0.000000 0.000000 51 20
01-13 21:20:30.040: E/SMD(108): DrReadUsbStatus File Open failed
01-13 21:20:30.470: D/MotionEngine(406): [### Motion Engine ###] GetMotionScenarioId -1.541866 5.018247 8.303091 0.000000 0.000000 0.000000 51 20
01-13 21:20:30.600: E/(99): RIL_onMultiClientUnsolicitedResponse:
01-13 21:20:30.600: E/(99): unsupported multiclient unsolicited response code 1009
01-13 21:20:30.600: D/SPRDENG(163): eng_atauto_thread: At Auto Report
01-13 21:20:30.600: D/SPRDENG(163): eng_atauto_thread: j=-1
01-13 21:20:30.600: D/SPRDENG(163): eng_atauto_thread: CONFIGURED
01-13 21:20:30.600: D/SPRDENG(163): eng_atauto_thread: usb_status=1
01-13 21:20:30.600: D/SPRDENG(163): eng_atauto_thread: write at auto report to PC
01-13 21:20:31.500: D/BatteryService(406): update start
01-13 21:20:31.500: D/BatteryService(406): level:100 scale:100 status:5 health:2 present:true voltage: 4250 temperature: 337 technology: Li-ion AC powered:false USB powered:true icon:17303345 invalid charger:0 online:1 charge type:0 current avg:0
01-13 21:20:31.520: D/MotionEngine(406): [### Motion Engine ###] GetMotionScenarioId -1.388637 4.730943 8.188169 0.000000 0.000000 0.000000 51 20
01-13 21:20:32.040: E/SMD(108): DrReadUsbStatus File Open failed
01-13 21:20:32.560: D/MotionEngine(406): [### Motion Engine ###] GetMotionScenarioId -1.465251 4.797980 8.293514 0.000000 0.000000 0.000000 51 20
01-13 21:20:33.100: E/(99): RIL_onMultiClientUnsolicitedResponse:
01-13 21:20:33.100: E/(99): unsupported multiclient unsolicited response code 1009
01-13 21:20:33.110: D/SPRDENG(163): eng_atauto_thread: At Auto Report
01-13 21:20:33.110: D/SPRDENG(163): eng_atauto_thread: j=-1
01-13 21:20:33.110: D/SPRDENG(163): eng_atauto_thread: CONFIGURED
01-13 21:20:33.110: D/SPRDENG(163): eng_atauto_thread: usb_status=1
01-13 21:20:33.110: D/SPRDENG(163): eng_atauto_thread: write at auto report to PC
01-13 21:20:33.250: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:33.250: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:33.250: D/MotionEngine(406): [MotionEngine] -> PR_MOVE -> Move Recognition Lv(1)
01-13 21:20:33.250: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:33.250: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:33.250: V/WindowManager(406): rotationForOrientationLw(orient=-1, last=0); user=0 USER_ROTATION_LOCKED mLidState=-1 mCoverState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false sensorRotation=-1
01-13 21:20:33.250: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:33.260: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:33.260: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:33.280: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:33.280: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:33.280: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:33.280: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:33.650: D/MotionEngine(406): [### Motion Engine ###] GetMotionScenarioId -1.369483 4.596867 8.264784 0.000000 0.000000 0.000000 51 20
01-13 21:20:34.040: E/SMD(108): DrReadUsbStatus File Open failed
01-13 21:20:34.130: D/VoldCmdListener(81): asec list
01-13 21:20:34.750: D/MotionEngine(406): [### Motion Engine ###] GetMotionScenarioId -1.331176 4.730943 8.197746 0.000000 0.000000 0.000000 51 20
01-13 21:20:34.850: I/dumpstate(3485): done
01-13 21:20:34.880: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:34.880: V/WindowManager(406): rotationForOrientationLw(orient=5, last=0); user=0 USER_ROTATION_LOCKED mLidState=-1 mCoverState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false sensorRotation=-1
01-13 21:20:34.890: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:34.890: D/WindowManager(406): mInputFocus is not null.
01-13 21:20:34.910: D/WindowManager(406): PhoneWindowManager: focusChangedLw
01-13 21:20:34.910: D/WindowManager(406): updateReadingMode
01-13 21:20:34.910: D/STATUSBAR-StatusBarManagerService(406): setSystemUiVisibility(0x0)
01-13 21:20:34.910: D/STATUSBAR-StatusBarManagerService(406): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
01-13 21:20:34.920: D/Launcher(616): onRestart, Launcher: 1117400296
01-13 21:20:34.920: D/Launcher(616): onStart, Launcher: 1117400296
01-13 21:20:34.920: D/Launcher.HomeFragment(616): onStart
01-13 21:20:34.920: D/Launcher(616): onResume, Launcher: 1117400296
01-13 21:20:34.920: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:34.940: E/Launcher(616): Error finding setting, default accessibility to not found: accessibility_enabled
01-13 21:20:34.940: D/Launcher.HomeFragment(616): onResume
01-13 21:20:34.940: D/MenuAppsGridFragment(616): onResume
01-13 21:20:34.950: D/PhoneStatusBar(495): hiding the MENU button
01-13 21:20:34.960: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:34.970: I/[Gralloc](88): PERFORM_CREATE hnd=0x4194b1b0,fd=38,offset=0x0,size=1536000,base=0x43e4f000,phys_addr=0x8f2ce000
01-13 21:20:34.970: I/(88): ================allocat ion memory for rgba xres*yres = 480*800 fd = 38:4
01-13 21:20:34.980: I/(616): ION_IOC_IMPORT success dd3b1680,phy addr = 8f2ce000
01-13 21:20:35.000: E/Watchdog(406): !#Sync 310
01-13 21:20:35.060: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.060: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.070: I/[Gralloc](88): PERFORM_CREATE hnd=0x416a9c00,fd=42,offset=0x0,size=1536000,base=0x441c2000,phys_addr=0x8f445000
01-13 21:20:35.080: I/(88): ================allocat ion memory for rgba xres*yres = 480*800 fd = 42:5
01-13 21:20:35.080: I/(616): ION_IOC_IMPORT success d56a6b80,phy addr = 8f445000
01-13 21:20:35.100: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.100: D/BatteryStatsImpl(406): ++++++xy WakeLock stop : pid=406, name=, type=0, tid=621, pid=406, pName=null
01-13 21:20:35.120: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.120: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.140: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.160: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.170: D/KeyguardUpdateMonitor(406): received broadcast android.intent.action.BATTERY_CHANGED
01-13 21:20:35.170: D/KeyguardUpdateMonitor(406): handleBatteryUpdate
01-13 21:20:35.170: D/STATUSBAR-BatteryController(495): onReceive() - ACTION_BATTERY_CHANGED
01-13 21:20:35.170: D/STATUSBAR-BatteryController(495): onReceive() - level:100
01-13 21:20:35.170: D/STATUSBAR-BatteryController(495): onReceive() - plugged:2
01-13 21:20:35.170: D/STATUSBAR-BatteryController(495): onReceive() - BATTERY_STATUS_FULL:
01-13 21:20:35.240: D/Launcher(616): onTrimMemory. Level: 5
01-13 21:20:35.250: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.280: D/dalvikvm(2924): GC_CONCURRENT freed 341K, 13% free 9499K/10823K, paused 18ms+2ms, total 73ms
01-13 21:20:35.360: D/STATUSBAR-PhoneStatusBar(495): ACTION_BATTERY_CHANGED
01-13 21:20:35.360: D/STATUSBAR-PhoneStatusBar(495): NORMAL_BATTERY
01-13 21:20:35.370: I/MemoryTrimmer(2779): Trimming objects from memory, since app is in the background.
01-13 21:20:35.370: I/Finsky(2506): [1] com.google.android.finsky.utils.df.onTrimMemory(25): Memory trim requested to level 5
01-13 21:20:35.480: D/dalvikvm(2779): GC_CONCURRENT freed 389K, 12% free 10796K/12167K, paused 62ms+2ms, total 194ms
01-13 21:20:35.540: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.540: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:35.550: D/MotionEngine(406): [MotionEngine] -> PR_MOVE -> Move Recognition Lv(1)
01-13 21:20:35.600: E/(99): RIL_onMultiClientUnsolicitedResponse:
01-13 21:20:35.600: E/(99): unsupported multiclient unsolicited response code 1009
01-13 21:20:35.600: D/SPRDENG(163): eng_atauto_thread: At Auto Report
01-13 21:20:35.600: D/SPRDENG(163): eng_atauto_thread: j=-1
01-13 21:20:35.600: D/SPRDENG(163): eng_atauto_thread: CONFIGURED
01-13 21:20:35.600: D/SPRDENG(163): eng_atauto_thread: usb_status=1
01-13 21:20:35.600: D/SPRDENG(163): eng_atauto_thread: write at auto report to PC
01-13 21:20:35.730: D/MotionEngine(406): [### Motion Engine ###] GetMotionScenarioId -1.340753 4.673482 8.283937 0.000000 0.000000 0.000000 51 20
01-13 21:20:35.770: D/KeyguardViewMediator(406): setHidden false
01-13 21:20:36.040: E/SMD(108): DrReadUsbStatus File Open failed
: E/(): Device disconnected: 1
: E/(): Device disconnected
Below is Code of PrayerTimeActivity.java Code
http://pastebin.com/x94eGH9b
i found Solution finally
i put all code cause force close to try catch and now app work fine.
thanks.
I'm trying to use paypal payment in my cordova application.
For that I used this Paypal cordova plugin. I followed all the instructions mentioned there, but I get these errors:
01-13 05:18:06.650: E/PluginManager(2112): Uncaught exception from plugin
01-13 05:18:06.650: E/PluginManager(2112): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.hello/com.paypal.android.sdk.payments.PaymentActivity}; have you declared this activity in your AndroidManifest.xml?
01-13 05:18:06.650: E/PluginManager(2112): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628)
01-13 05:18:06.650: E/PluginManager(2112): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
01-13 05:18:06.650: E/PluginManager(2112): at android.app.Activity.startActivityForResult(Activity.java:3424)
01-13 05:18:06.650: E/PluginManager(2112): at android.app.Activity.startActivityForResult(Activity.java:3385)
01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:748)
01-13 05:18:06.650: E/PluginManager(2112): at com.paypal.cordova.sdk.PayPalMobileCordovaPlugin.renderSinglePaymentUI(PayPalMobileCordovaPlugin.java:226)
01-13 05:18:06.650: E/PluginManager(2112): at com.paypal.cordova.sdk.PayPalMobileCordovaPlugin.execute(PayPalMobileCordovaPlugin.java:54)
01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:84)
01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.PluginManager.exec(PluginManager.java:147)
01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:40)
01-13 05:18:06.650: E/PluginManager(2112): at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
01-13 05:18:06.650: E/PluginManager(2112): at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:27)
01-13 05:18:06.650: E/PluginManager(2112): at android.os.Handler.dispatchMessage(Handler.java:102)
01-13 05:18:06.650: E/PluginManager(2112): at android.os.Looper.loop(Looper.java:136)
01-13 05:18:06.650: E/PluginManager(2112): at android.os.HandlerThread.run(HandlerThread.java:61)
Can any one help me to figure out this problem?
I resolved the problem.
In the process of installation of the plugin there was a problem.
So that I referenced the file cdv-plugin-paypal-mobile-sdk.js in the paymnt.html page and it works now.
When I close my app, I get a dialog box saying "Unfortunately, MyApp has stopped." and an OK button. By closing, I mean pressing the back button from the first screen. The app does close fine, but then this dialog appears a few seconds later.
I'm using PhoneGap 3.2.0. It didn't happen prior to updating to 3.x.x. I'm not sure exactly which version after this is the culprit.
The LogCat in Eclipse puts out this when it happens:
01-13 15:20:42.764: D/CordovaActivity(32367): onMessage(exit,null)
01-13 15:20:42.829: D/CordovaActivity(32367): Paused the application!
01-13 15:20:42.839: W/PluginManager(32367): THREAD WARNING: exec() call to App.exitApp blocked the main thread for 74ms. Plugin should use CordovaInterface.getThreadPool().
01-13 15:20:43.219: W/IInputConnectionWrapper(32367): showStatusIcon on inactive InputConnection
01-13 15:20:43.254: D/CordovaActivity(32367): CordovaActivity.onDestroy()
01-13 15:20:43.259: D/CordovaWebView(32367): >>> loadUrlNow()
01-13 15:20:43.284: D/AndroidRuntime(32367): Shutting down VM
01-13 15:20:43.284: W/dalvikvm(32367): threadid=1: thread exiting with uncaught exception (group=0x417752a0)
01-13 09:56:40.404: E/AndroidRuntime(13858): java.lang.RuntimeException: Unable to destroy activity {MyAppName}: java.lang.IllegalArgumentException: Receiver not registered: null
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3314)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3332)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.ActivityThread.access$1200(ActivityThread.java:140)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.os.Handler.dispatchMessage(Handler.java:99)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.os.Looper.loop(Looper.java:137)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.ActivityThread.main(ActivityThread.java:4898)
01-13 09:56:40.404: E/AndroidRuntime(13858): at java.lang.reflect.Method.invokeNative(Native Method)
01-13 09:56:40.404: E/AndroidRuntime(13858): at java.lang.reflect.Method.invoke(Method.java:511)
01-13 09:56:40.404: E/AndroidRuntime(13858): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
01-13 09:56:40.404: E/AndroidRuntime(13858): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
01-13 09:56:40.404: E/AndroidRuntime(13858): at dalvik.system.NativeStart.main(Native Method)
01-13 09:56:40.404: E/AndroidRuntime(13858): Caused by: java.lang.IllegalArgumentException: Receiver not registered: null
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:654)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1277)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:385)
01-13 09:56:40.404: E/AndroidRuntime(13858): at org.apache.cordova.device.Device.onDestroy(Device.java:98)
01-13 09:56:40.404: E/AndroidRuntime(13858): at org.apache.cordova.PluginManager.onDestroy(PluginManager.java:332)
01-13 09:56:40.404: E/AndroidRuntime(13858): at org.apache.cordova.CordovaWebView.handleDestroy(CordovaWebView.java:833)
01-13 09:56:40.404: E/AndroidRuntime(13858): at org.apache.cordova.CordovaActivity.onDestroy(CordovaActivity.java:774)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.Activity.performDestroy(Activity.java:5370)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1113)
01-13 09:56:40.404: E/AndroidRuntime(13858): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3301)
01-13 09:56:40.404: E/AndroidRuntime(13858): ... 11 more
Any ideas?
Until now, I've always been using the line
navigator.app.exitApp();
to close the app if I detect that I'm on the index.html page when the back button is pressed.
I tried instead to remove the backbutton listener and restore the default behaviour when the back button was pressed. It still results in the same problem.
Here's some shortened code snippets:
$(document).ready(function ()
{
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady()
{
document.addEventListener("backbutton", backButton, false);
});
function backButton()
{
var currentLocation = window.location.href.substr(window.location.href.lastIndexOf("/")+1);
switch (currentLocation) {
case 'index.html':
navigator.app.exitApp();
break;
}
Update 2014/01/13 16:00:
Not sure if it is any help, but I've noticed that it doesn't give any errors if I comment out the script src="cordova.js" from index.html.
In the file Device.java replace the content of OnDestroy with this
if( this.telephonyReceiver != null )
this.cordova.getActivity().unregisterReceiver(this.telephonyReceiver);
Warning: This is hiding the original problem where the BroadcastReceiver isn't being registered properly from what I got from the logcat. Adding the permission to the AndroidManifest.xml like suprnova said should've worked.
But if you don't need to know the phone state, ie, if you're getting a call, or something like that, and you need a quick fix.
Warning 2: When the next phonegap version comes out, this may get overridden.
Judging by your LogCat, the problem lies in the Device.java file, and looking at the source here, the class registers a BroadcastReceiver to check the phone state.
Make sure you have added:
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
to your AndroidManifest.xml.
Ok below here is what my log generates when I try to run my application . The application fails unexpectedly and does not even start
09-02 04:28:51.856: D/dalvikvm(781): GC_FOR_ALLOC freed 66K, 7% free 2542K/2728K, paused 51ms, total 66ms
09-02 04:28:51.866: I/dalvikvm-heap(781): Grow heap (frag case) to 3.181MB for 614500-byte allocation
09-02 04:28:51.936: D/dalvikvm(781): GC_FOR_ALLOC freed <1K, 6% free 3142K/3332K, paused 67ms, total 67ms
09-02 04:28:52.406: W/SoundPool(781): sample 1 not READY
09-02 04:28:53.116: D/gralloc_goldfish(781): Emulator without GPU emulation detected.
09-02 04:28:53.376: I/Choreographer(781): Skipped 33 frames! The application may be doing too much work on its main thread.
09-02 04:29:22.606: E/AudioTrack(781): Could not get audio output for stream type 3
09-02 04:29:22.606: E/SoundPool(781): Error creating AudioTrack
09-02 04:29:22.756: D/dalvikvm(781): GC_FOR_ALLOC freed 30K, 5% free 3523K/3672K, paused 19ms, total 21ms
09-02 04:29:22.756: I/dalvikvm-heap(781): Grow heap (frag case) to 4.159MB for 635812-byte allocation
09-02 04:29:22.856: D/dalvikvm(781): GC_FOR_ALLOC freed 1K, 4% free 4143K/4296K, paused 97ms, total 97ms
09-02 04:29:22.966: I/Choreographer(781): Skipped 91 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.206: I/Choreographer(781): Skipped 55 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.375: I/Choreographer(781): Skipped 35 frames! The application may be doing too much work on its main thread.
09-02 04:29:23.776: I/Choreographer(781): Skipped 79 frames! The application may be doing too much work on its main thread.
09-02 04:29:28.016: D/dalvikvm(781): GC_FOR_ALLOC freed 108K, 5% free 4436K/4664K, paused 111ms, total 133ms
09-02 04:29:28.045: I/dalvikvm-heap(781): Grow heap (frag case) to 5.030MB for 614500-byte allocation
09-02 04:29:28.096: D/dalvikvm(781): GC_FOR_ALLOC freed 1K, 5% free 5034K/5268K, paused 55ms, total 56ms
09-02 04:29:28.235: W/SoundPool(781): sample 1 not READY
09-02 04:29:28.785: I/Choreographer(781): Skipped 50 frames! The application may be doing too much work on its main thread.
09-02 04:29:31.626: E/AudioTrack(781): Could not get audio output for stream type 3
09-02 04:29:31.626: E/SoundPool(781): Error creating AudioTrack
09-02 04:29:31.746: E/SlaveBlueTooth(781): +++ ON CREATE +++
09-02 04:29:31.766: W/System.err(781): java.io.IOException: open failed: EROFS (Read-only file system)
09-02 04:29:31.776: W/System.err(781): at java.io.File.createNewFile(File.java:948)
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
09-02 04:29:31.796: W/System.err(781): at android.app.Activity.performCreate(Activity.java:5133)
09-02 04:29:31.796: W/System.err(781): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-02 04:29:31.796: W/System.err(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-02 04:29:31.816: W/System.err(781): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-02 04:29:31.826: W/System.err(781): at android.os.Handler.dispatchMessage(Handler.java:99)
09-02 04:29:31.826: W/System.err(781): at android.os.Looper.loop(Looper.java:137)
09-02 04:29:31.826: W/System.err(781): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-02 04:29:31.836: W/System.err(781): at java.lang.reflect.Method.invokeNative(Native Method)
09-02 04:29:31.836: W/System.err(781): at java.lang.reflect.Method.invoke(Method.java:525)
09-02 04:29:31.846: W/System.err(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-02 04:29:31.846: W/System.err(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-02 04:29:31.856: W/System.err(781): at dalvik.system.NativeStart.main(Native Method)
09-02 04:29:31.856: W/System.err(781): Caused by: libcore.io.ErrnoException: open failed: EROFS (Read-only file system)
09-02 04:29:31.876: W/System.err(781): at libcore.io.Posix.open(Native Method)
09-02 04:29:31.886: W/System.err(781): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
09-02 04:29:31.886: W/System.err(781): at java.io.File.createNewFile(File.java:941)
09-02 04:29:31.896: W/System.err(781): ... 15 more
09-02 04:29:32.016: D/AndroidRuntime(781): Shutting down VM
09-02 04:29:32.016: W/dalvikvm(781): threadid=1: thread exiting with uncaught exception (group=0x41465700)
09-02 04:29:32.066: E/AndroidRuntime(781): FATAL EXCEPTION: main
09-02 04:29:32.066: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to start activity ComponentInfo{hellog.diwesh.NugaBest/helog.diwesh.NugaBest.BTSmartSlavemodule}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.os.Handler.dispatchMessage(Handler.java:99)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.os.Looper.loop(Looper.java:137)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-02 04:29:32.066: E/AndroidRuntime(781): at java.lang.reflect.Method.invokeNative(Native Method)
09-02 04:29:32.066: E/AndroidRuntime(781): at java.lang.reflect.Method.invoke(Method.java:525)
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-02 04:29:32.066: E/AndroidRuntime(781): at dalvik.system.NativeStart.main(Native Method)
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:226)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.requestWindowFeature(Activity.java:3264)
09-02 04:29:32.066: E/AndroidRuntime(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:141)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.performCreate(Activity.java:5133)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
09-02 04:29:32.066: E/AndroidRuntime(781): ... 11 more
This is the error from your LogCat :
FATAL EXCEPTION: main
09-02 04:29:32.066: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to start activity ComponentInfo{hellog.diwesh.NugaBest/helog.diwesh.NugaBest.BTSmartSlavemodule}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
Multiple issues here:
09-02 04:29:31.766: W/System.err(781): java.io.IOException: open failed: EROFS (Read-only file system)
09-02 04:29:31.776: W/System.err(781): at java.io.File.createNewFile(File.java:948)
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
In BTSmartSlavemodule.java line 118 you're trying to create a new file on a read-only file system.
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
09-02 04:29:32.066: E/AndroidRuntime(781): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:226)
09-02 04:29:32.066: E/AndroidRuntime(781): at android.app.Activity.requestWindowFeature(Activity.java:3264)
09-02 04:29:32.066: E/AndroidRuntime(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:141)
On line 141 of the same file you're trying to call requestWindowFeature() after calling setContentView(). You need to set window features before setContentView().
You call requestFeature() not in right place... try to call this method before setContentView(R.layout.activity)
The cause of this error is :
09-02 04:29:32.066: E/AndroidRuntime(781): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
And this cause happened at :
09-02 04:29:31.785: W/System.err(781): at helog.diwesh.NugaBest.BTSmartSlavemodule.onCreate(BTSmartSlavemodule.java:118)
Where you put code .requestWindowFeature(). To avoid this cause you must put this code before setContentView(R.layout.your_layout);
I think you are trying to create file on sdcard but you don't have specified permission to write external storage in manifest file
Add this line to manifest.xml file
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
I'm designing an application that allows the user to retrieve his data from the server, I'm furnishing this using two different activities, the first one receives the username as a text input and the second one displays the user's data based on the username. I'm using JSON schema for storing and retrieving the data. The app works fine for the first time but when I logout from the second screen using finish() and try to re-enter a new username in the first screen "the app force closes". This has been giving me sleepless nights, want to be overwhelmed with your support.
12-04 16:28:35.289: D/dalvikvm(553): GC_FOR_ALLOC freed 64K, 4% free 6893K/7171K, paused 64ms
12-04 16:28:35.299: I/dalvikvm-heap(553): Grow heap (frag case) to 7.757MB for 1000016-byte allocation
12-04 16:28:35.399: D/dalvikvm(553): GC_CONCURRENT freed 1K, 5% free 7868K/8199K, paused 16ms+3ms
12-04 16:28:35.529: D/dalvikvm(553): GC_FOR_ALLOC freed <1K, 5% free 7869K/8199K, paused 31ms
12-04 16:28:35.539: I/dalvikvm-heap(553): Grow heap (frag case) to 8.180MB for 443572-byte allocation
12-04 16:28:35.589: D/dalvikvm(553): GC_CONCURRENT freed 0K, 4% free 8302K/8647K, paused 3ms+5ms
12-04 16:28:35.889: D/gralloc_goldfish(553): Emulator without GPU emulation detected.
12-04 16:29:16.819: D/dalvikvm(553): GC_FOR_ALLOC freed 1079K, 14% free 7509K/8711K, paused 221ms
12-04 16:29:16.829: I/dalvikvm-heap(553): Grow heap (frag case) to 8.360MB for 1000016-byte allocation
12-04 16:29:16.889: D/dalvikvm(553): GC_CONCURRENT freed 2K, 3% free 8483K/8711K, paused 4ms+4ms
12-04 16:29:17.229: D/dalvikvm(553): GC_CONCURRENT freed 1016K, 13% free 7979K/9159K, paused 3ms+11ms
12-04 16:29:18.149: E/log_tag(553): Error parsing data org.json.JSONException: No value for Alert
12-04 16:29:20.949: D/dalvikvm(553): GC_CONCURRENT freed 274K, 12% free 8090K/9159K, paused 6ms+5ms
12-04 16:29:26.259: E/log_tag(553): Error parsing data org.json.JSONException: No value for Alert
12-04 16:29:26.859: D/AndroidRuntime(553): Shutting down VM
12-04 16:29:26.859: W/dalvikvm(553): threadid=1: thread exiting with uncaught exception (group=0x409951f8)
12-04 16:29:26.929: E/AndroidRuntime(553): FATAL EXCEPTION: main
12-04 16:29:26.929: E/AndroidRuntime(553): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bombil.kustomizer/com.bombil.kustomizer.Menus}: java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
12-04 16:29:26.929: E/AndroidRuntime(553): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.app.ActivityThread.access$600(ActivityThread.java:122)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.os.Handler.dispatchMessage(Handler.java:99)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.os.Looper.loop(Looper.java:137)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.app.ActivityThread.main(ActivityThread.java:4340)
12-04 16:29:26.929: E/AndroidRuntime(553): at java.lang.reflect.Method.invokeNative(Native Method)
12-04 16:29:26.929: E/AndroidRuntime(553): at java.lang.reflect.Method.invoke(Method.java:511)
12-04 16:29:26.929: E/AndroidRuntime(553): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
12-04 16:29:26.929: E/AndroidRuntime(553): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
12-04 16:29:26.929: E/AndroidRuntime(553): at dalvik.system.NativeStart.main(Native Method)
12-04 16:29:26.929: E/AndroidRuntime(553): Caused by: java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
12-04 16:29:26.929: E/AndroidRuntime(553): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
12-04 16:29:26.929: E/AndroidRuntime(553): at java.util.ArrayList.get(ArrayList.java:304)
12-04 16:29:26.929: E/AndroidRuntime(553): at com.bombil.kustomizer.Menus.AddEditText(Menus.java:309)
12-04 16:29:26.929: E/AndroidRuntime(553): at com.bombil.kustomizer.Menus.AddInsertView(Menus.java:121)
12-04 16:29:26.929: E/AndroidRuntime(553): at com.bombil.kustomizer.Menus.onCreate(Menus.java:88)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.app.Activity.performCreate(Activity.java:4465)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
12-04 16:29:26.929: E/AndroidRuntime(553): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919)
12-04 16:29:26.929: E/AndroidRuntime(553): ... 11 more
12-04 16:29:27.009: D/dalvikvm(553): GC_CONCURRENT freed 273K, 10% free 8248K/9159K, paused 4ms+6ms
12-04 16:32:56.799: I/Process(553): Sending signal. PID: 553 SIG: 9
Apparently, you're trying to access an object in an ArrayList at in your Menus.java file at line 309. You're trying to access the object with the index of 2, but the total ArrayList size is only 2, meaning the highest index would be 1. This causes an IndexOutOfBounds exception as shown here:
ComponentInfo{com.bombil.kustomizer/com.bombil.kustomizer.Menus}:
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
E/AndroidRuntime(553): at com.bombil.kustomizer.Menus.AddEditText(Menus.java:309)
Do you have any objects that are being used by both activities? I know I saw this issue once with a project. One of the activities was messing up the HTTPClient object for the other activity. If you are getting a null exception being thrown try and find the variable. If it is a shared resource for both activities then just make sure to deal with it in a clean way when you exit the second activity.