For some reason when I try to run my app, it crashes and the following error occurs:
Code:
11-28 22:47:11.722: E/AndroidRuntime(8246): java.lang.IllegalArgumentException: DrawerLayout must be measured with MeasureSpec.EXACTLY.
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:737)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.View.measure(View.java:17594)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5398)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.View.measure(View.java:17594)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5398)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.View.measure(View.java:17594)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5398)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.View.measure(View.java:17594)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5398)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.View.measure(View.java:17594)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5398)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.View.measure(View.java:17594)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5398)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
11-28 22:47:11.722: E/AndroidRuntime(8246): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2588)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.View.measure(View.java:17594)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2308)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1384)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1610)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1267)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6640)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:813)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.Choreographer.doCallbacks(Choreographer.java:613)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.Choreographer.doFrame(Choreographer.java:583)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:799)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.os.Handler.handleCallback(Handler.java:733)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.os.Handler.dispatchMessage(Handler.java:95)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.os.Looper.loop(Looper.java:146)
11-28 22:47:11.722: E/AndroidRuntime(8246): at android.app.ActivityThread.main(ActivityThread.java:5635)
11-28 22:47:11.722: E/AndroidRuntime(8246): at java.lang.reflect.Method.invokeNative(Native Method)
11-28 22:47:11.722: E/AndroidRuntime(8246): at java.lang.reflect.Method.invoke(Method.java:515)
11-28 22:47:11.722: E/AndroidRuntime(8246): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
11-28 22:47:11.722: E/AndroidRuntime(8246): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
11-28 22:47:11.722: E/AndroidRuntime(8246): at dalvik.system.NativeStart.main(Native Method)
11-28 22:47:13.583: E/OpenGLRenderer(5509): SFEffectCache:clear(), mSize = 0
The kicker is that nowhere in my app is there a reference to the DrawerLayout.onMeasure() method. I am so confused, what can I do?
Did you use wrap_content on either layout_width or layout_height? Drawer layout doesn't allow this
The onMeasuer function is called by the system itself, not by your app
--------------------
Phone: Nexus 4
OS: rooted Lollipop LRX21T
Bootloader: unlocked
stock Recovery
Related
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
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
I start porting SailfishOS to Tiny210v2 S5PV210 ARM Cortex-A8 Board
And i have error when SurfaceFlinger is start:
Code:
I/SurfaceFlinger( 212): SurfaceFlinger is starting
I/SurfaceFlinger( 212): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 212): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL ( 212): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL ( 212): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
W/libEGL ( 212): eglInitialize(0x1) failed (EGL_BAD_ALLOC)
I/hwcomposer( 212): int hwc_device_open(const hw_module_t*, const char*, hw_device_t**)::win-0 add[0] 3c330000
I/hwcomposer( 212): int hwc_device_open(const hw_module_t*, const char*, hw_device_t**)::win-0 add[1] 3c4a7000
I/hwcomposer( 212): int hwc_device_open(const hw_module_t*, const char*, hw_device_t**)::win-0 add[2] 3c61e000
E/hwcomposer( 212): int createFimc(s5p_fimc_t*)::Post processor open error (13)
E/hwcomposer( 212): int hwc_device_open(const hw_module_t*, const char*, hw_device_t**)::creatFimc() fail
E/SurfaceFlinger( 212): composer device failed to initialize (Invalid argument)
E/SurfaceFlinger( 212): ERROR: failed to open framebuffer (Not a typewriter), aborting
F/libc ( 212): Fatal signal 6 (SIGABRT) at 0x000000d4 (code=-6), thread 212 (surfaceflinger)
who can ask me - what is wrong ?
new error
Code:
I/SurfaceFlinger( 73): SurfaceFlinger is starting
I/SurfaceFlinger( 73): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 73): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL ( 73): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL ( 73): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
I/auditd ( 165): Starting up
E/auditd ( 165): Failed on audit_set_pid with error: Protocol not supported
I/auditd ( 165): Exiting
E/keystore( 166): chdir: /data/misc/keystore: No such file or directory
I/hwcomposer( 73): int hwc_device_open(const hw_module_t*, const char*, hw_device_t**)::win-0 add[0] 3c330000
I/hwcomposer( 73): int hwc_device_open(const hw_module_t*, const char*, hw_device_t**)::win-0 add[1] 3c4a7000
I/hwcomposer( 73): int hwc_device_open(const hw_module_t*, const char*, hw_device_t**)::win-0 add[2] 3c61e000
E/hwcomposer( 73): int createFimc(s5p_fimc_t*)::Post processor open error (13)
E/hwcomposer( 73): int hwc_device_open(const hw_module_t*, const char*, hw_device_t**)::creatFimc() fail
E/SurfaceFlinger( 73): composer device failed to initialize (Invalid argument)
I/SurfaceFlinger( 73): Using composer version 1.0
W/SurfaceFlinger( 73): getting VSYNC period from fb HAL: 14705882
W/SurfaceFlinger( 73): no suitable EGLConfig found, trying a simpler query
I/SurfaceFlinger( 73): EGL informations:
I/SurfaceFlinger( 73): vendor : Android
I/SurfaceFlinger( 73): version : 1.4 Android META-EGL
I/SurfaceFlinger( 73): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable
I/SurfaceFlinger( 73): Client API: OpenGL_ES
I/SurfaceFlinger( 73): EGLSurface: 8-8-8-8, config=0x2
I/SurfaceFlinger( 73): OpenGL ES informations:
I/SurfaceFlinger( 73): vendor : Imagination Technologies
I/SurfaceFlinger( 73): renderer : PowerVR SGX 540
I/SurfaceFlinger( 73): version : OpenGL ES-CM 1.1
I/SurfaceFlinger( 73): extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_OES_egl_sync GL_IMG_vertex_array_object
I/SurfaceFlinger( 73): GL_MAX_TEXTURE_SIZE = 2048
I/SurfaceFlinger( 73): GL_MAX_VIEWPORT_DIMS = 2048
E/cutils-trace( 73): Error opening trace file: No such file or directory (2)
E/libEGL ( 73): eglQuerySurface:599 error 300d (EGL_BAD_SURFACE)
E/libEGL ( 73): eglQuerySurface:599 error 300d (EGL_BAD_SURFACE)
E/libEGL ( 73): call to OpenGL ES API with no current context (logged once per thread)
D/SurfaceFlinger( 73): Screen acquired, type=0 flinger=0x41e85450
E/SurfaceFlinger( 73): eventControl(0, 1) failed Bad file number
D/libEGL ( 189): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL ( 189): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL ( 189): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
E/cutils-trace( 189): Error opening trace file: No such file or directory (2)
E/libEGL ( 189): eglQuerySurface:599 error 300d (EGL_BAD_SURFACE)
E/libEGL ( 189): eglQuerySurface:599 error 300d (EGL_BAD_SURFACE)
E/libEGL ( 189): eglMakeCurrent:784 error 3009 (EGL_BAD_MATCH)
Does anyone know the URL of the latest Fossil Gen 6 OTA image file?
What is the code name of fossil gen 6?
I believe the Gen 6's codename is hoki. At least, that's what ro.product.device is set to.
Toys Samurai said:
I believe the Gen 6's codename is hoki. At least, that's what ro.product.device is set to.
Click to expand...
Click to collapse
I am unable to find the kernel source for this device. Seems they didn't uploaded yet.
Too bad. Thanks for your help anyway. Guess I just have to wait for the next update to capture.
Not available for now
OTA URL for Fossil HOKI (gen6) https://r5---sn-25glen7r.gvt1.com/p...25glen7r&ms=au&mt=1650816540&mv=m&mvi=5&pl=44
hope this will help, i'm trying to root the watch but with no success there's no ramdisk in boot so we need recovery.img and ota update doesnt include it
maassi0076 said:
OTA URL for Fossil HOKI (gen6) https://r5---sn-25glen7r.gvt1.com/p...25glen7r&ms=au&mt=1650816540&mv=m&mvi=5&pl=44
hope this will help, i'm trying to root the watch but with no success there's no ramdisk in boot so we need recovery.img and ota update doesnt include it
Click to expand...
Click to collapse
https://forum.xda-developers.com/t/twrp-twrp-for-fossil-gen-6-aka-hoki.4474863 I managed to build the TWRP recovery. Still some bugs, but you can install magisk
I have two more OTA urls:
- https://android.googleapis.com/packages/ota-api/package/aa51cebed7932ebf5ad1717595e13c609bb4a71b.zip (PFHD.211201.010 -> PFHD.211201.019)
- https://android.googleapis.com/packages/ota-api/package/a569fe07dfdcb4edea85f9535d592b9af4621cd1.zip (PFHD.211201.019 -> RFHC.220929.012)
These were taken from a brand new Fossil Gen 6 (hoki)
The previously shared link from @maassi0076 appears to be broken.
https://android.googleapis.com/packages/ota-api/package/230d380c72f87f94cbd4e43b944afd70700d6ffd.zip (PFHD.211201.017) seems to be identical and works fine on my end.
MagneFire said:
I have two more OTA urls:
- https://android.googleapis.com/packages/ota-api/package/aa51cebed7932ebf5ad1717595e13c609bb4a71b.zip (PFHD.211201.010 -> PFHD.211201.019)
- https://android.googleapis.com/packages/ota-api/package/a569fe07dfdcb4edea85f9535d592b9af4621cd1.zip (PFHD.211201.019 -> RFHC.220929.012)
These were taken from a brand new Fossil Gen 6 (hoki)
The previously shared link from @maassi0076 appears to be broken.
https://android.googleapis.com/packages/ota-api/package/230d380c72f87f94cbd4e43b944afd70700d6ffd.zip (PFHD.211201.017) seems to be identical and works fine on my end.
Click to expand...
Click to collapse
Any chance I could get some guidance on how to flash these? I haven't been able to successfully flash anything over fastboot or from TWRP and am a bit lost now.
Another user and I are both interested over in this thread: https://forum.xda-developers.com/t/fossil-gen-6-flashing-wear-os-2-instead-of-wear-os-3.4509785/
How are you able to get those URLs? I couldnt without rooting my watch. @MagneFire
At any chance, do you guys know how to convert system.new.dat / system.patch.dat / system.transfer.list from the OTA ? I need system.img to fastboot it (watch bricked)
@Arkbird1000 @MagneFire @maassi0076 @Malvik
Arkbird1000 said:
Any chance I could get some guidance on how to flash these? I haven't been able to successfully flash anything over fastboot or from TWRP and am a bit lost now.
Another user and I are both interested over in this thread: https://forum.xda-developers.com/t/fossil-gen-6-flashing-wear-os-2-instead-of-wear-os-3.4509785/
Click to expand...
Click to collapse
I don't think you can flash these directly, unless your base system matches the expected signature of the OTA image. Remember that the links I posted only consists of delta's/binary diffs.
Standalone they might not be that useful.
Malvik said:
How are you able to get those URLs? I couldnt without rooting my watch. @MagneFire
Click to expand...
Click to collapse
Without updating I did a factory reset and enabled USB debugging during the setup (before it has a network connection).
Then it's just a matter of gathering a complete adb logcat. The OTA url is listed in there.
Here is an example:
Code:
11-28 23:25:14.919 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:14.921 1450 1949 I chatty : uid=10036(com.android.vending) bgExecutor #0 identical 1 line
11-28 23:25:14.923 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:14.928 1062 2455 I NetworkScheduler.Stats: Task com.google.android.gms/com.google.android.gms.stats.PlatformStatsCollectorService finished executing. cause:5 result: 1 elapsed_millis: 246 uptime_millis: 246 exec_start_el
apsed_seconds: 134 [CONTEXT service_id=218 ]
11-28 23:25:14.932 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:14.982 1218 3498 I SystemUpdate: [Control,InstallationControl] Update URL changed from "https://android.googleapis.com/packages/ota-api/package/aa51cebed7932ebf5ad1717595e13c609bb4a71b.zip" to "https://android.googleapis.com/packages/ota-api/package/a569fe07dfdcb4edea85f9535d592b9af4621cd1.zip".
11-28 23:25:14.994 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:15.014 1450 1949 I chatty : uid=10036(com.android.vending) bgExecutor #0 identical 11 lines
11-28 23:25:15.017 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:15.079 1450 1949 I Finsky : [125] kxu.a(1): [PLUS] Syncing for users with urgency above: HYGIENE
Neil_Armstrong_ said:
At any chance, do you guys know how to convert system.new.dat / system.patch.dat / system.transfer.list from the OTA ? I need system.img to fastboot it (watch bricked)
@Arkbird1000 @MagneFire @maassi0076 @Malvik
Click to expand...
Click to collapse
I have a complete dump of version RFHC.221031.015
However I would recommend to make a complete backup of the entire filesystem using TWRP:https://forum.xda-developers.com/t/twrp-twrp-for-fossil-gen-6-aka-hoki.4474863/
Here's part of the dump: https://we.tl/t-Yqnp1gH1ne
Let me know if you need more partitions (and use at your own risk, I haven't tested them).
MagneFire said:
I have a complete dump of version RFHC.221031.015
However I would recommend to make a complete backup of the entire filesystem using TWRP:https://forum.xda-developers.com/t/twrp-twrp-for-fossil-gen-6-aka-hoki.4474863/
Here's part of the dump: https://we.tl/t-Yqnp1gH1ne
Let me know if you need more partitions (and use at your own risk, I haven't tested them).
Click to expand...
Click to collapse
i fooled around few days ago and wasnt able to backup my partitions (lol) edit : i went the YOLO mode and didnt backup
You are probably my savior because i was dead a$$ stuck with these system compressed files
Would you mind sending the 13 others partitions ? this way i ensure every partition is from the same wear OS version ?
Thanks a lot !!
MagneFire said:
Without updating I did a factory reset and enabled USB debugging during the setup (before it has a network connection).
Then it's just a matter of gathering a complete adb logcat. The OTA url is listed in there.
Here is an example:
Code:
11-28 23:25:14.919 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:14.921 1450 1949 I chatty : uid=10036(com.android.vending) bgExecutor #0 identical 1 line
11-28 23:25:14.923 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:14.928 1062 2455 I NetworkScheduler.Stats: Task com.google.android.gms/com.google.android.gms.stats.PlatformStatsCollectorService finished executing. cause:5 result: 1 elapsed_millis: 246 uptime_millis: 246 exec_start_el
apsed_seconds: 134 [CONTEXT service_id=218 ]
11-28 23:25:14.932 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:14.982 1218 3498 I SystemUpdate: [Control,InstallationControl] Update URL changed from "https://android.googleapis.com/packages/ota-api/package/aa51cebed7932ebf5ad1717595e13c609bb4a71b.zip" to "https://android.googleapis.com/packages/ota-api/package/a569fe07dfdcb4edea85f9535d592b9af4621cd1.zip".
11-28 23:25:14.994 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:15.014 1450 1949 I chatty : uid=10036(com.android.vending) bgExecutor #0 identical 11 lines
11-28 23:25:15.017 1450 1949 I Finsky : [125] kxk.apply(9): [PLUS] Adding payload
11-28 23:25:15.079 1450 1949 I Finsky : [125] kxu.a(1): [PLUS] Syncing for users with urgency above: HYGIENE
Click to expand...
Click to collapse
Ohk, got it. BTW can anyone social engineer their way to getting firmware from fossil ?