android - com.parse.ParseException: java.lang.IllegalStateException: Attempted to find non-existent uuid -
android - com.parse.ParseException: java.lang.IllegalStateException: Attempted to find non-existent uuid -
i using parse android sdk in app. here login activity:
public class loginactivity extends activity { edittext username, password; button login; sharedpreferences prefs; progressdialog dialog; @override public void onbackpressed() { super.onbackpressed(); startactivity(new intent(this, logsignactivity.class)); finish(); } @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); requestwindowfeature(window.feature_no_title); setcontentview(r.layout.activity_login); dialog = new progressdialog(loginactivity.this); dialog.setcancelable(false); dialog.setmessage("loading..."); initializeviews(); if (prefs.getboolean(preferencestrings.logged, false)) { username.settext(prefs.getstring(preferencestrings.uname, "")); password.settext(prefs.getstring(preferencestrings.pwd, "")); dialog.show(); parseuser.logininbackground(username.gettext().tostring(), password .gettext().tostring(), new logincallback() { @override public void done(parseuser user, parseexception e) { dialog.dismiss(); if (e != null) { prefs.edit() .putboolean(preferencestrings.logged, false) .commit(); e.printstacktrace(); } if (user == null) { prefs.edit() .putboolean(preferencestrings.logged, false) .commit(); toast.maketext(getbasecontext(), "user not found!", toast.length_short).show(); } else if (!user.isauthenticated()) { prefs.edit() .putboolean(preferencestrings.logged, false) .commit(); toast.maketext(getbasecontext(), "user not authenticated!", toast.length_short).show(); } else { prefs.edit().putboolean(preferencestrings.logged, true) .commit(); prefs.edit() .putstring(preferencestrings.uname, username.gettext().tostring()).commit(); prefs.edit() .putstring(preferencestrings.pwd, password.gettext().tostring()).commit(); startactivity(new intent(loginactivity.this, homeactivity.class)); finish(); } } }); } textview = (textview) findviewbyid(r.id.nav_back); back.setonclicklistener(new onclicklistener() { @override public void onclick(view arg0) { startactivity(new intent(loginactivity.this, logsignactivity.class)); finish(); } }); login.setonclicklistener(new onclicklistener() { @override public void onclick(view arg0) { if (username.gettext().tostring().equals("")) { toast.maketext(getbasecontext(), "please come in username!", toast.length_short).show(); } else if (password.gettext().tostring().equals("")) { toast.maketext(getbasecontext(), "please come in password!", toast.length_short).show(); } else { dialog.show(); parseuser.logininbackground(username.gettext().tostring(), password.gettext().tostring(), new logincallback() { @override public void done(parseuser user, parseexception e) { dialog.dismiss(); if (e != null) { prefs.edit() .putboolean( preferencestrings.logged, false).commit(); e.printstacktrace(); } if (user == null) { prefs.edit() .putboolean( preferencestrings.logged, false).commit(); toast.maketext(getbasecontext(), "user not found!", toast.length_short).show(); } else if (!user.isauthenticated()) { prefs.edit() .putboolean( preferencestrings.logged, false).commit(); toast.maketext(getbasecontext(), "user not authenticated!", toast.length_short).show(); } else { prefs.edit() .putboolean( preferencestrings.logged, true).commit(); prefs.edit() .putstring( preferencestrings.uname, username.gettext() .tostring()) .commit(); prefs.edit() .putstring( preferencestrings.pwd, password.gettext() .tostring()) .commit(); startactivity(new intent( loginactivity.this, homeactivity.class)); startactivity(new intent( loginactivity.this, homeactivity.class)); finish(); } } }); } } }); } private void initializeviews() { username = (edittext) findviewbyid(r.id.username); password = (edittext) findviewbyid(r.id.password); login = (button) findviewbyid(r.id.btn_log); prefs = preferencemanager.getdefaultsharedpreferences(this); } }
i able login successfully, after logins, unable login , next error returned parse: ideas?
this known bug, , has been verified parse team ios api (my hunch runs deeper , same bug seeing here on android side).
you can find out more here: https://developers.facebook.com/bugs/614018488703097/
until it's resolved, might wise turn off local info store , see if helps.
android parse.com
Comments
Post a Comment