Android Question Updated my app, now having crashing issues...

Peter Simpson

Expert
Licensed User
Longtime User
NOTE: The APK file can be found below in my reply post.

Hello all,
Am I having a huge app issue, yes I am.
I've updated one of my app on the Play Store and all of a sudden I'm receiving a load of crash reports. All that I've added is an XML feed and Nine Patch. One thing that I forgot to add to my app was DisableStrictMode to help with NetworkOnMainThread EXCEPTION, I've added that now though.

The list is just full of Samsung devices and nothing else(screen shot was from last night, it's even longer this morning and it all different Samsung devices, nothing else), I'm getting a lot of Samsung crashes. Hopefully adding the DisableStrictMode works as it did work with another app of mine that uses an JSON feed.

Any feedback on this issue would be appreciated.

java.lang.UnsupportedOperationException
in android.content.res.TypedArray.getColor

Untitled-1.png


java.lang.RuntimeException: Unable to start activity ComponentInfo{com.simplysoftware.unlocatorautoupdate/com.simplysoftware.unlocatorautoupdate.main}: android.view.InflateException: Binary XML file line #37: Error inflating class com.android.internal.widget.ActionBarView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2328)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386)
at android.app.ActivityThread.access$900(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5476)
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:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #37: Error inflating class com.android.internal.widget.ActionBarView
at android.view.LayoutInflater.createView(LayoutInflater.java:626)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:702)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
at android.view.LayoutInflater.inflate(Native Method)
at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3296)
at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3359)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:381)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:375)
at android.app.Activity.setContentView(Activity.java:2051)
at com.simplysoftware.unlocatorautoupdate.main.onCreate(main.java:57)
at android.app.Activity.performCreate(Activity.java:5451)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
... 12 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:600)
... 30 more
Caused by: android.view.InflateException: Binary XML file line #23: Error inflating class android.widget.TextView
at android.view.LayoutInflater.createView(LayoutInflater.java:626)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
at android.view.LayoutInflater.inflate(Native Method)
at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
at com.android.internal.widget.ActionBarView.initTitle(ActionBarView.java:1195)
at com.android.internal.widget.ActionBarView.setDisplayOptions(ActionBarView.java:982)
at com.android.internal.widget.ActionBarView.<init>(ActionBarView.java:398)
... 33 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:600)
... 45 more
Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2
at android.content.res.TypedArray.getColor(TypedArray.java:327)
at android.content.res.XResources$XTypedArray.getColor(XResources.java:889)
at android.widget.TextView.<init>(TextView.java:1010)
at android.widget.TextView.<init>(TextView.java:917)
... 48 more
 
Last edited:

Peter Simpson

Expert
Licensed User
Longtime User
Here you go @thedesolatesoul.
The targetSdkVersion was set to 21 but I've just changed it to 19.
A user has just sent me photos from their(yes you guessed it) Samsung Note 8.0. I'm not bothered about the second image, as that will work once the first error is fixed.

I'm just finding it strange that i'm only getting reports from Samsung users and nobody else. It works perfect on all my Nexus devices and also my Acer text devices.

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.


1.jpg


2.jpg
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Hiya all,
I've Attached the actual APK file in question for developers to install and test to see if it runs okay on their device. Basically it will either run or it will bring up an error straight away.

Cheers...
 

Attachments

  • UnlocatorUpdater.apk
    209.7 KB · Views: 136
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
I have absolutely no idea what XposedBridge is. I can usually fix issues by looking at the log file, but this has completely baffled me.

BTW I know that you're are work at the moment so thank you again for replying to my plight :(
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Hello @thedesolatesoul ,
I now believe that changing the Target from 21 ti 19 has fixed the error. I sent the APK file to somebody abroad who uses the app and they got back to me saying that everything is working again now.

Thanks for mentioning the Manifest file. I remember changing it to 21 for testing purposes only, but for some strange unknown reason I obviously forgot to change it back to 19 again. Also the DisableStrictMode fixed other users issues as I started to receive email saying that the spinners were populating again. The spinners work directly from an XML feed that need to be uploaded from the net on start up.

So thank you @thedesolatesoul for the hint :)
 
Last edited:
Upvote 0
Top