java - get parse object from userList android -
i little bit confused resolve error. want search email id parse , check either email id exists there or not, if exists there give toast message user otherwise create account , it's data save on parse. but, getting error data not searching parse , not showing desire result.
parsequery<parseobject> query = parsequery.getquery("appuser"); query.whereequalto("email", emailstr); query.findinbackground(new findcallback<parseobject>() { @override public void done(list<parseobject> userlist, com.parse.parseexception e) { if (e == null) { if (userlist.size() == 0) { saveuseronparse(user); }else{ toast temp = toast.maketext(sign_up.this, "this email exist here, must enter email sign up.", toast.length_short); temp.show(); } } else { } } });
i want search email if current email not existing in userlist save user on parse. please me, how can it.
thank you, have done solve problem using code.
parsequery<parseobject> query = parsequery.getquery("filename"); query.whereequalto("email", user.getemail()); query.countinbackground(new countcallback() { @override public void done(int count, com.parse.parseexception e) { if (e == null){ if (count == 0){ saveuseronparse(user); } else{ toast temp = toast.maketext(sign_up.this, "this email exist here, must enter email sign up.", toast.length_short); temp.show(); } } else{ toast temp = toast.maketext(sign_up.this, e+ "exception", toast.length_short); temp.show(); } } });
Comments
Post a Comment