Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Unhandled Exception Android Emulator #150

Closed
ivanrlg opened this issue Feb 21, 2019 · 4 comments
Closed

Unhandled Exception Android Emulator #150

ivanrlg opened this issue Feb 21, 2019 · 4 comments

Comments

@ivanrlg
Copy link

ivanrlg commented Feb 21, 2019

Failure to fill out this information will result in this issue being closed.

If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.

If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.

Bug Information

Version Number of Plugin: 3.1.1
Device Tested On: UWP, Android
Simulator Tested On: Android Emulator
Version of VS: 15.9.7
Version of Xamarin: 4.12.3.80
Versions of other things you are using:

Steps to reproduce the Behavior

When you start the application on Android Emulator

Expected Behavior

Actual Behavior

Java.Lang.ClassCastException:
Timeout exceeded getting exception details

Code snippet

        public static bool IsRemembered
        {
            get
            {
                **return AppSettings.GetValueOrDefault(isRemembered, booleanDefault);**
            }
            set
            {
                AppSettings.AddOrUpdateValue(isRemembered, value);
            }
        }

Screenshots

@ivanrlg ivanrlg changed the title Unhandled Exception Android Emulatorr Unhandled Exception Android Emulator Feb 21, 2019
@jamesmontemagno
Copy link
Owner

What is "isRemembered"

@ivanrlg
Copy link
Author

ivanrlg commented Feb 21, 2019

What is "isRemembered"

I use it if a user wants to remember that did login in the device so that in a future beginning the system does not request the credentials again.

  `private const string isRemembered = "IsRemembered";`

Currently works on an android physical device and in uwp

@jamesmontemagno
Copy link
Owner

Did you accidentally set it to something besides a a boolean on the emualtor? perhaps try to delete the app and try again? I jsut tested out the code in my emulator and worked great:

image

@ivanrlg
Copy link
Author

ivanrlg commented Feb 22, 2019

Thank you very much for your time, I had not tried to uninstall the emulator application, that was the solution to the exception that occurred.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants