DialogPresenter Sample Android

13 replies. Last post: August 21, 2015 1:35 AM by Arief Handany
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

I just checked the new DialogPresenter Sample on Android. Unfortunately, it crashes after selecting a menu link (rate me, add to cart, call obama, intro carousel). Please, see the following error message:

Java.Lang.RuntimeException: Unable to start activity ComponentInfo{DialogPresenter.Android/md5de12dab3ecb38eed1becafd37f3acdc1.DialogActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.Button
at --- End of managed exception stack trace ---
at java.lang.RuntimeException: Unable to start activity ComponentInfo{DialogPresenter.Android/md5de12dab3ecb38eed1becafd37f3acdc1.DialogActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.Button
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2412)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470)
at at android.app.ActivityThread.access$900(ActivityThread.java:174)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)
at at android.os.Handler.dispatchMessage(Handler.java:102)
at at android.os.Looper.loop(Looper.java:146)
at at android.app.ActivityThread.main(ActivityThread.java:5593)
at at java.lang.reflect.Method.invokeNative(Native Method)
at at java.lang.reflect.Method.invoke(Method.java:515)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at at dalvik.system.NativeStart.main(Native Method)
at Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.Button
at at android.view.LayoutInflater.createView(LayoutInflater.java:626)
at at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
at at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
at at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
at at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
at at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
at at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:366)
at at android.app.Activity.setContentView(Activity.java:2031)
at at md5de12dab3ecb38eed1becafd37f3acdc1.FragmentActivity_1.n_onCreate(Native Method)
at at md5de12dab3ecb38eed1becafd37f3acdc1.FragmentActivity_1.onCreate(FragmentActivity_1.java:52)
at at android.app.Activity.performCreate(Activity.java:5458)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)
at ... 11 more
at Caused by: java.lang.reflect.InvocationTargetException
at at java.lang.reflect.Constructor.constructNative(Native Method)
at at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at at android.view.LayoutInflater.createView(LayoutInflater.java:600)
at ... 27 more
at Caused by: java.lang.NumberFormatException: Invalid int: "?16843814"
at at java.lang.Integer.invalidInt(Integer.java:137)
at at java.lang.Integer.parse(Integer.java:374)
at at java.lang.Integer.parseInt(Integer.java:365)
at at com.android.internal.util.XmlUtils.convertValueToInt(XmlUtils.java:122)
at at android.content.res.TypedArray.getInt(TypedArray.java:255)
at at android.widget.TextView.<init>(TextView.java:1365)
at at android.widget.Button.<init>(Button.java:108)
at at android.widget.Button.<init>(Button.java:104)
at ... 30 more

The crash happens on my Galaxy Tab3 Tablet (SM-T310) with Android 4.4.2.

On my Motorola E2 Phone with Android 5.0.2 the sample works.

Android 4.4.2 is still widely used. So the DialogPresenter should work here, too.

I am using the latest stable Xamarin version and I just updated my Android SDK.

Hope this helps.

Thanks,

Thomas

All times are GMT -5. The time now is 10:07 PM.
Previous Next