It seems that every android app has a unique app ID. I've found a couple of "modified" apps that share the same ID, and one of the problems is that the desktop icons can't stick in the desktop position you put them, because this ID is used to identify the app shorcut.
I found this error reported by the homescreen app and the log is stored in a text file in the default android folder for errors (I can't remeber the name). So I know for sure that the problem is the ID. Where is this app ID stored and how can i modify it?
Thank you!
Please! :'(
Apps are usually identified by their package name. Which is a reverse of the domain name of the developer and the app name -- example:
com.alostpacket.bluemuze
This is unique for apps on the Android Market. If you're having collisions (names that are the same) my first thought is that maybe you're getting apps from a 3rd party who is changing the package name to their own?
If that's not the case then there may be some bug in whatever launcher you are using. Perhaps check the issues list for the Android Open Source Project and see if your bug is listed there.
http://code.google.com/p/android/issues/list
The icon of this app does not stick if I install another app from the same developer. Log files:
Code:
[email protected]_APP
crashtime:1301393312
processname:com.slovoed.merriam_webster.english_english_unabridged
misclog:java.lang.NullPointerException
at com.slovoed.merriam_webster.english_english_unabridged.Start.loadSettings(Start.java:2038)
at com.slovoed.merriam_webster.english_english_unabridged.Start.initialisation(Start.java:343)
at com.slovoed.merriam_webster.english_english_unabridged.Start.access$200(Start.java:58)
at com.slovoed.merriam_webster.english_english_unabridged.Start$4.handleMessage(Start.java:547)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4370)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
:end
apk.path:/data/app/com.slovoed.merriam_webster.english_english_unabridged.apk
adb.connected:0
crashlog:DALVIK THREADS:
"main" prio=5 tid=3 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x40026240 self=0xbda8
| sysTid=2870 nice=0 sched=0/0 cgrp=unknown handle=-1344001376
at android.os.BinderProxy.transact(Native Method)
at android.app.ActivityManagerProxy.handleApplicationError(ActivityManagerNative.java:2358)
at com.android.internal.os.RuntimeInit.crash(RuntimeInit.java:348)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:82)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884)
at dalvik.system.NativeStart.main(Native Method)
"CookieSyncManager" prio=5 tid=17 TIMED_WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x45ab65e8 self=0x36c3f0
| sysTid=2880 nice=10 sched=0/0 cgrp=unknown handle=3575240
at java.lang.Object.wait(Native Method)
- waiting on <0x45ab6d00> (a android.os.MessageQueue)
at java.lang.Object.wait(Object.java:326)
at android.os.MessageQueue.next(MessageQueue.java:144)
at android.os.Looper.loop(Looper.java:110)
at android.webkit.WebSyncManager.run(WebSyncManager.java:90)
at java.lang.Thread.run(Thread.java:1096)
"WebViewCoreThread" prio=5 tid=15 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x45aad288 self=0x2f6d78
| sysTid=2877 nice=0 sched=0/0 cgrp=unknown handle=3108496
at java.lang.Object.wait(Native Method)
- waiting on <0x45aad5a0> (a android.os.MessageQueue)
at java.lang.Object.wait(Object.java:288)
at android.os.MessageQueue.next(MessageQueue.java:148)
at android.os.Looper.loop(Looper.java:110)
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:611)
at java.lang.Thread.run(Thread.java:1096)
"Binder Thread #3" prio=5 tid=13 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x45966820 self=0x146f60
| sysTid=2875 nice=0 sched=0/0 cgrp=unknown handle=1339048
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #2" prio=5 tid=11 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x45962288 self=0x14ca28
| sysTid=2874 nice=0 sched=0/0 cgrp=unknown handle=1365384
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #1" prio=5 tid=9 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x459613a8 self=0x1431c8
| sysTid=2873 nice=0 sched=0/0 cgrp=unknown handle=1323400
at dalvik.system.NativeStart.run(Native Method)
"Signal Catcher" daemon prio=5 tid=7 RUNNABLE
| group="system" sCount=0 dsCount=0 s=N obj=0x459601e8 self=0x13c6b0
| sysTid=2872 nice=0 sched=0/0 cgrp=unknown handle=1186504
at dalvik.system.NativeStart.run(Native Method)
"HeapWorker" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x443a4b50 self=0x1383f8
| sysTid=2871 nice=0 sched=0/0 cgrp=unknown handle=1186248
at dalvik.system.NativeStart.run(Native Method)
Code:
[email protected]_APP
crashtime:1301330087
processname:com.android.vending
misclog:android.database.sqlite.SQLiteException: unable to open database file
at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1698)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:739)
at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:761)
at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:754)
at android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:477)
at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:193)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:98)
at com.android.vending.api.LocalAssetDatabase.<init>(LocalAssetDatabase.java:135)
at com.android.vending.ServiceLocator.getLocalAssetDatabase(ServiceLocator.java:101)
at com.android.vending.model.Asset.getLocalInfoForAll(Asset.java:1223)
at com.android.vending.model.LocalAssetCache.buildCache(LocalAssetCache.java:139)
at com.android.vending.model.LocalAssetCache.access$000(LocalAssetCache.java:25)
at com.android.vending.model.LocalAssetCache$1.run(LocalAssetCache.java:75)
at java.lang.Thread.run(Thread.java:1096)
:end
Related
hey
today i started to build my first ever android nand build, and what i did is the follwoing:
1- i get an existed build and extracted the system.img using unyaffs2(under windows)
2- i made some changs on the applicatoins, i only removed some applicatoins.
3- repacked the system.img again using the (mkfs.yaffs2.x86) under unix - i am using ubuntu 10.10)
4- now i atried to install on my phone it via magldr and it worked, but the build did not started (hehe)
i used droidexplorer to debug and i got the following:
logcat
# --------- beginning of /dev/log/main
logwrapper( 125): executing /system/xbin/busybox failed: Permission denied
logwrapper( 120): /system/xbin/busybox terminated by exit(255)
AndroidRuntime( 131):
AndroidRuntime( 131): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
AndroidRuntime( 131): CheckJNI is OFF
dalvikvm( 131): creating instr width table
AndroidRuntime( 131): --- registering native functions ---
ServiceManager( 131): error in getService
ServiceManager( 131): android.os.DeadObjectException
ServiceManager( 131): at android.os.BinderProxy.transact(Native Method)
ServiceManager( 131): at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:120)
ServiceManager( 131): at android.os.ServiceManager.getService(ServiceManager.java:55)
ServiceManager( 131): at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:78)
ServiceManager( 131): at com.android.commands.am.Am.run(Am.java:81)
ServiceManager( 131): at com.android.commands.am.Am.main(Am.java:65)
ServiceManager( 131): at com.android.internal.os.RuntimeInit.finishInit(Native Method)
ServiceManager( 131): at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
ServiceManager( 131): at dalvik.system.NativeStart.main(Native Method)
AndroidRuntime( 131): AndroidRuntime onExit calling exit(1)
AndroidRuntime( 143):
AndroidRuntime( 143): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
AndroidRuntime( 143): CheckJNI is OFF
dalvikvm( 143): creating instr width table
AndroidRuntime( 143): --- registering native functions ---
ServiceManager( 143): error in getService
ServiceManager( 143): android.os.DeadObjectException
ServiceManager( 143): at android.os.BinderProxy.transact(Native Method)
ServiceManager( 143): at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:120)
ServiceManager( 143): at android.os.ServiceManager.getService(ServiceManager.java:55)
ServiceManager( 143): at com.android.commands.pm.Pm.run(Pm.java:73)
ServiceManager( 143): at com.android.commands.pm.Pm.main(Pm.java:63)
ServiceManager( 143): at com.android.internal.os.RuntimeInit.finishInit(Native Method)
ServiceManager( 143): at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
ServiceManager( 143): at dalvik.system.NativeStart.main(Native Method)
AndroidRuntime( 143): Shutting down VM
jdwp ( 143): adbd disconnected
AndroidRuntime( 154):
AndroidRuntime( 154): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
AndroidRuntime( 154): CheckJNI is OFF
dalvikvm( 154): creating instr width table
AndroidRuntime( 154): --- registering native functions ---
ServiceManager( 154): error in getService
ServiceManager( 154): android.os.DeadObjectException
ServiceManager( 154): at android.os.BinderProxy.transact(Native Method)
ServiceManager( 154): at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:120)
ServiceManager( 154): at android.os.ServiceManager.getService(ServiceManager.java:55)
ServiceManager( 154): at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:78)
ServiceManager( 154): at com.android.commands.am.Am.run(Am.java:81)
ServiceManager( 154): at com.android.commands.am.Am.main(Am.java:65)
ServiceManager( 154): at com.android.internal.os.RuntimeInit.finishInit(Native Method)
ServiceManager( 154): at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
ServiceManager( 154): at dalvik.system.NativeStart.main(Native Method)
AndroidRuntime( 154): AndroidRuntime onExit calling exit(1)
-End of debug-
can some one please help me in this issue, what i did wrong, or i am missing somthing?
Unfortunately, i donot have an Android device on hand. I was trying to run the sample Geofencing app provided on Android Developer.
However, the app crashes as soon as it is initiated. The emulator details are (PLATFORM = Android 4.4.2, API = 19, CPU = ARM)
I get this LogCat error:
Code:
05-29 09:28:08.633: E/AndroidRuntime(1375): FATAL EXCEPTION: main
05-29 09:28:08.633: E/AndroidRuntime(1375): Process: com.example.android.geofence, PID: 1375
05-29 09:28:08.633: E/AndroidRuntime(1375): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.geofence/com.example.android.geofence.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.android.geofence.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.android.geofence-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.android.geofence-1, /system/lib]]
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.access$800(ActivityThread.java:135)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.os.Handler.dispatchMessage(Handler.java:102)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.os.Looper.loop(Looper.java:136)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.main(ActivityThread.java:5017)
05-29 09:28:08.633: E/AndroidRuntime(1375): at java.lang.reflect.Method.invokeNative(Native Method)
05-29 09:28:08.633: E/AndroidRuntime(1375): at java.lang.reflect.Method.invoke(Method.java:515)
05-29 09:28:08.633: E/AndroidRuntime(1375): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
05-29 09:28:08.633: E/AndroidRuntime(1375): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
05-29 09:28:08.633: E/AndroidRuntime(1375): at dalvik.system.NativeStart.main(Native Method)
05-29 09:28:08.633: E/AndroidRuntime(1375): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.android.geofence.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.android.geofence-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.android.geofence-1, /system/lib]]
05-29 09:28:08.633: E/AndroidRuntime(1375): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-29 09:28:08.633: E/AndroidRuntime(1375): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
05-29 09:28:08.633: E/AndroidRuntime(1375): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
05-29 09:28:08.633: E/AndroidRuntime(1375): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
05-29 09:28:08.633: E/AndroidRuntime(1375): ... 11 more
05-29 09:28:12.323: I/Process(1375): Sending signal. PID: 1375 SIG: 9
I'm trying to make QuickMemo work on CM... So far it's not going anywhere as I'm kinda noob with Android... And I'm hoping someone with more knowledge can help me!
I copied LGQMemo.apk to /system/priv-app and was able to run it through Secure settings Launch activity and here is what I got in return:
06-11 11:54:48.412 I/ActivityManager( 826): START u0 {flg=0x10000000 cmp=com.lge.QuickClip/.QuickClipActivity} from pid 8370
06-11 11:54:48.422 I/SecureSettings.ActionService( 8370): onHandleIntent::Action Success
06-11 11:54:48.422 V/Zygote ( 8527): Switching descriptor 42 to /dev/null
06-11 11:54:48.422 V/Zygote ( 8527): Switching descriptor 9 to /dev/null
06-11 11:54:48.422 I/ActivityManager( 826): Start proc com.lge.QuickClip for activity com.lge.QuickClip/.QuickClipActivity: pid=8527 uid=10149 gids={50149, 1028, 1015}
06-11 11:54:48.462 I/dalvikvm( 8527): DexOpt: mismatch dep name: '/data/dalvik-cache/[email protected]@[email protected]' vs. '/system/framework/core.odex'
06-11 11:54:48.462 E/dalvikvm( 8527): /system/priv-app/LGQMemo.apk odex has stale dependencies
06-11 11:54:48.462 D/ActivityThread( 8527): handleBindApplication:com.lge.QuickClip
06-11 11:54:48.462 D/ActivityThread( 8527): setTargetHeapUtilization:0.75
06-11 11:54:48.462 D/ActivityThread( 8527): setTargetHeapMinFree:2097152
06-11 11:54:48.462 W/dalvikvm( 8527): Unable to resolve superclass of Lcom/lge/QuickClip/QuickClipActivity; (270)
06-11 11:54:48.462 W/dalvikvm( 8527): Link of class 'Lcom/lge/QuickClip/QuickClipActivity;' failed
06-11 11:54:48.462 D/AndroidRuntime( 8527): Shutting down VM
06-11 11:54:48.462 W/dalvikvm( 8527): threadid=1: thread exiting with uncaught exception (group=0x419b2ce0)
06-11 11:54:48.472 E/AndroidRuntime( 8527): FATAL EXCEPTION: main
06-11 11:54:48.472 E/AndroidRuntime( 8527): Process: com.lge.QuickClip, PID: 8527
06-11 11:54:48.472 E/AndroidRuntime( 8527): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.lge.QuickClip/com.lge.QuickClip.QuickClipActivity}: java.lang.ClassNotFoundException: Didn't find class "com.lge.QuickClip.QuickClipActivity" on path: DexPathList[[zip file "/system/priv-app/LGQMemo.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2120)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2253)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.access$800(ActivityThread.java:145)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.os.Handler.dispatchMessage(Handler.java:102)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.os.Looper.loop(Looper.java:136)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.main(ActivityThread.java:5128)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at java.lang.reflect.Method.invokeNative(Native Method)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at java.lang.reflect.Method.invoke(Method.java:515)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at dalvik.system.NativeStart.main(Native Method)
06-11 11:54:48.472 E/AndroidRuntime( 8527): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.lge.QuickClip.QuickClipActivity" on path: DexPathList[[zip file "/system/priv-app/LGQMemo.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
06-11 11:54:48.472 E/AndroidRuntime( 8527): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
06-11 11:54:48.472 E/AndroidRuntime( 8527): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2111)
06-11 11:54:48.472 E/AndroidRuntime( 8527): ... 12 more
06-11 11:54:48.472 W/ActivityManager( 826): Force finishing activity com.lge.QuickClip/.QuickClipActivity
06-11 11:54:48.472 W/InputMethodManagerService( 826): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
06-11 11:54:48.972 W/ActivityManager( 826): Activity pause timeout for ActivityRecord{424ae208 u0 com.lge.QuickClip/.QuickClipActivity t15 f}
06-11 11:54:49.022 I/Timeline( 1458): Timeline: Activity_idle id: [email protected] time:413509
06-11 11:54:49.482 D/qcom_sensors_hal( 826): hal_sensor1_data_cb: msg_type 2
06-11 11:54:49.922 I/Process ( 8527): Sending signal. PID: 8527 SIG: 9
06-11 11:54:49.932 D/PhoneStatusBar( 1239): disable: < expand icons alerts ticker system_info back home recent CLOCK* search >
06-11 11:54:49.932 W/InputMethodManagerService( 826): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$S[email protected] attribute=null, token = [email protected]
06-11 11:54:49.932 I/ActivityManager( 826): Process com.lge.QuickClip (pid 8527) has died.
Click to expand...
Click to collapse
Since I cannot install it directly, I was wondering why can the Secure Settings find the application and it's main activity but in the logcat it says it cannot be found?
Thanks in advance! (QMemo and QMemo.odex taken from latest CloudyFlex 2.4)
You may want to look for his people got the remote working. Pretty sure it looks for the eula being agreed to before it works
Sent from my LG-VS980 using Tapatalk
Hummm... But wouldn't it need to be shown on the EULA when you first start the system? As I recall, only the remote and VuTalk where shown...
I tried copying some files the the system/framework folder and got a reboot AND system format for free! Had to reinstall CM! Damn! (as I said I'm not a android/linux expert hehehe)
xposed log is eating all the space available.
Code:
java.lang.NoSuchFieldError: com.android.systemui.statusbar.policy.ClockCenter#mExpandedHeader
at de.robv.android.xposed.XposedHelpers.findField(XposedHelpers.java:69)
at de.robv.android.xposed.XposedHelpers.getBooleanField(XposedHelpers.java:628)
at ma.wanam.xposed.XSysUIStatusBarClockPackage$1.afterHookedMethod(Unknown Source)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:645)
at com.android.systemui.statusbar.policy.Clock.updateClock(Native Method)
at com.android.systemui.statusbar.policy.Clock$2$1.run(Clock.java:362)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5335)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
can any body know how to fix this?
bump
toinktoink said:
xposed log is eating all the space available.
Code:
java.lang.NoSuchFieldError: com.android.systemui.statusbar.policy.ClockCenter#mExpandedHeader
at de.robv.android.xposed.XposedHelpers.findField(XposedHelpers.java:69)
at de.robv.android.xposed.XposedHelpers.getBooleanField(XposedHelpers.java:628)
at ma.wanam.xposed.XSysUIStatusBarClockPackage$1.afterHookedMethod(Unknown Source)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:645)
at com.android.systemui.statusbar.policy.Clock.updateClock(Native Method)
at com.android.systemui.statusbar.policy.Clock$2$1.run(Clock.java:362)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5335)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
can any body know how to fix this?
Click to expand...
Click to collapse
Can you upload your SystemUI.apk on my main thread?
Hey guys,
I'm having a problem figuring out a way to store the geofences that my app creates, in order to load them when I run the app again. The purpose is to show a list of geofences created by the user.
I tried to serialize them using Java's Serialization and I also tried to use Gson to convert them into a Json string. The problem with Gson it's when I try to load them, it gives me an error message saying that Geofence is not a class. (which is true, it's an interface).
logcat:
Code:
09-09 21:37:16.148 18137-18137/? D/dalvikvm﹕ Late-enabling CheckJNI
09-09 21:37:17.515 18137-18137/? I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
09-09 21:37:17.515 18137-18137/? W/dalvikvm﹕ VFY: unable to resolve virtual method 614: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
09-09 21:37:17.515 18137-18137/? D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
09-09 21:37:17.515 18137-18137/? I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
09-09 21:37:17.515 18137-18137/? W/dalvikvm﹕ VFY: unable to resolve virtual method 636: Landroid/content/res/TypedArray;.getType (I)I
09-09 21:37:17.515 18137-18137/? D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
09-09 21:37:18.133 18137-18137/? D/GoogleAPIMsg﹕ Construcao do Client Google
09-09 21:37:18.164 18137-18137/? D/Manager﹕ Loading Geofences...
09-09 21:37:18.203 18137-18137/? D/AndroidRuntime﹕ Shutting down VM
09-09 21:37:18.203 18137-18137/? W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x419307c0)
09-09 21:37:18.234 18137-18137/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.smartlocation.wilcocsjrxxlxpto/com.smartlocation.wilcocsjrxxlxpto.HomeScreen}: java.lang.RuntimeException: Unable to invoke no-args constructor for interface com.google.android.gms.location.Geofence. Register an InstanceCreator with Gson for this type may fix this problem.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
at android.app.ActivityThread.access$600(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5289)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Unable to invoke no-args constructor for interface com.google.android.gms.location.Geofence. Register an InstanceCreator with Gson for this type may fix this problem.
at com.google.gson.internal.ConstructorConstructor$12.construct(ConstructorConstructor.java:210)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:186)
at com.google.gson.Gson.fromJson(Gson.java:810)
at com.google.gson.Gson.fromJson(Gson.java:775)
at com.google.gson.Gson.fromJson(Gson.java:724)
at com.google.gson.Gson.fromJson(Gson.java:696)
at com.smartlocation.wilcocsjrxxlxpto.core.Manager.loadGeofences(Manager.java:203)
at com.smartlocation.wilcocsjrxxlxpto.HomeScreen.load(HomeScreen.java:252)
at com.smartlocation.wilcocsjrxxlxpto.HomeScreen.onCreate(HomeScreen.java:66)
at android.app.Activity.performCreate(Activity.java:5133)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2293)
************at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
************at android.app.ActivityThread.access$600(ActivityThread.java:153)
************at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
************at android.os.Handler.dispatchMessage(Handler.java:99)
************at android.os.Looper.loop(Looper.java:137)
************at android.app.ActivityThread.main(ActivityThread.java:5289)
************at java.lang.reflect.Method.invokeNative(Native Method)
************at java.lang.reflect.Method.invoke(Method.java:525)
************at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
************at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
************at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.google.gson.internal.UnsafeAllocator$1.newInstance(UnsafeAllocator.java:48)
at com.google.gson.internal.ConstructorConstructor$12.construct(ConstructorConstructor.java:207)
************at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:186)
************at com.google.gson.Gson.fromJson(Gson.java:810)
************at com.google.gson.Gson.fromJson(Gson.java:775)
************at com.google.gson.Gson.fromJson(Gson.java:724)
************at com.google.gson.Gson.fromJson(Gson.java:696)
************at com.smartlocation.wilcocsjrxxlxpto.core.Manager.loadGeofences(Manager.java:203)
************at com.smartlocation.wilcocsjrxxlxpto.HomeScreen.load(HomeScreen.java:252)
************at com.smartlocation.wilcocsjrxxlxpto.HomeScreen.onCreate(HomeScreen.java:66)
************at android.app.Activity.performCreate(Activity.java:5133)
************at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
************at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2293)
************at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
************at android.app.ActivityThread.access$600(ActivityThread.java:153)
************at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
************at android.os.Handler.dispatchMessage(Handler.java:99)
************at android.os.Looper.loop(Looper.java:137)
************at android.app.ActivityThread.main(ActivityThread.java:5289)
************at java.lang.reflect.Method.invokeNative(Native Method)
************at java.lang.reflect.Method.invoke(Method.java:525)
************at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
************at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
************at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.InstantiationException: can't instantiate class com.google.android.gms.location.Geofence; abstract class or interface
at sun.misc.Unsafe.allocateInstance(Native Method)
************at java.lang.reflect.Method.invokeNative(Native Method)
************at java.lang.reflect.Method.invoke(Method.java:525)
************at com.google.gson.internal.UnsafeAllocator$1.newInstance(UnsafeAllocator.java:48)
************at com.google.gson.internal.ConstructorConstructor$12.construct(ConstructorConstructor.java:207)
************at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:186)
************at com.google.gson.Gson.fromJson(Gson.java:810)
************at com.google.gson.Gson.fromJson(Gson.java:775)
************at com.google.gson.Gson.fromJson(Gson.java:724)
************at com.google.gson.Gson.fromJson(Gson.java:696)
************at com.smartlocation.wilcocsjrxxlxpto.core.Manager.loadGeofences(Manager.java:203)
************at com.smartlocation.wilcocsjrxxlxpto.HomeScreen.load(HomeScreen.java:252)
************at com.smartlocation.wilcocsjrxxlxpto.HomeScreen.onCreate(HomeScreen.java:66)
************at android.app.Activity.performCreate(Activity.java:5133)
************at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
************at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2293)
************at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
************at android.app.ActivityThread.access$600(ActivityThread.java:153)
************at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
************at android.os.Handler.dispatchMessage(Handler.java:99)
************at android.os.Looper.loop(Looper.java:137)
************at android.app.ActivityThread.main(ActivityThread.java:5289)
************at java.lang.reflect.Method.invokeNative(Native Method)
************at java.lang.reflect.Method.invoke(Method.java:525)
************at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
************at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
************at dalvik.system.NativeStart.main(Native Method)
09-09 21:37:18.648 18137-18137/? I/Process﹕ Sending signal. PID: 18137 SIG: 9
code:
Code:
public class Manager implements ResultCallback<Status>, LocationListener {
// Tag para fazer debug
protected static final String MAN = "Manager";
protected static final String SMS = "eventSMS";
protected static final String RING = "eventRing";
private Context mAppContext;
private GoogleApiClient mGoogleApiClient;
private LocationRequest mLocationRequest;
// Listas de Geofences
private TreeMap<String, Geofence> mGeofences;
private TreeMap<String, Event> mEvents;
private int mCounterActiveGeofences;
private PendingIntent mGeofencePendingIntent;
private Intent updateLocIntent;
/* Save */
private Gson gson;
private SharedPreferences prefs;
public Manager(Context context, GoogleApiClient googleApiClient){
mGeofences = new TreeMap<String, Geofence>();
mEvents = new TreeMap<String, Event>();
mGeofencePendingIntent = null;
mAppContext = context;
mGoogleApiClient = googleApiClient;
mCounterActiveGeofences = 0;
prefs = context.getSharedPreferences(Constants.Geofences, Context.MODE_PRIVATE);
gson = new Gson();
}
...
public void saveGeofences(){
String json;
Geofence geofence;
SharedPreferences.Editor editor = prefs.edit();
Log.d(MAN, "Saving Geofences...");
for (Map.Entry<String, Geofence> entry : mGeofences.entrySet()) {
geofence = mGeofences.get(entry.getKey());
json = gson.toJson(geofence);
editor.putString(geofence.getRequestId(), json);
Log.d(MAN, geofence.getRequestId() + " json: " + json);
}
editor.apply();
}
public void loadGeofences(){
Map<String, ?> keys = prefs.getAll();
Log.d(MAN, "Loading Geofences...");
for (Map.Entry<String, ?> entry : keys.entrySet()) {
String jsonString = prefs.getString(entry.getKey(), null);
Geofence geofence = gson.fromJson(jsonString, Geofence.class);
Log.d(MAN, geofence.getRequestId());
mGeofences.put(geofence.getRequestId(), geofence);
}
}
}
Thank you in advance.
wilcocsjr said:
Hey guys,
I'm having a problem figuring out a way to store the geofences that my app creates, in order to load them when I run the app again. The purpose is to show a list of geofences created by the user.
I tried to serialize them using Java's Serialization and I also tried to use Gson to convert them into a Json string. The problem with Gson it's when I try to load them, it gives me an error message saying that Geofence is not a class. (which is true, it's an interface).
Thank you in advance.
Click to expand...
Click to collapse
Could you show your code and show logcat read sticky thread how to post development questions
Sent from my SM-G530H using XDA Free mobile app
AndroidFire said:
Could you show your code and show logcat read sticky thread how to post development questions
Sent from my SM-G530H using XDA Free mobile app
Click to expand...
Click to collapse
Just edited the original post, sorry about that