java - Why I am not able to add a new ParseUser? -


i using following code adding new parseuser:

parseuser user = new parseuser(); user.setusername("rob"); user.setemail("rob1989@gmail.com"); user.setpassword("robpass"); user.put("phone", "898989898"); user.saveinbackground(); 

after running above code nothing reflect in parse dashboard. not getting exception in android studio.

if run following code working fine:

parseobject item = new parseobject("item"); item.put("quantity", "dwad"); item.put("description", "dawda"); item.put("name", "fwafa"); item.saveinbackground(); 

what doing wrong here in parseuser? there anyway check parse dashboard?

as stated in official guide, parseusers should use parseuser.signupinbackground():

user.signupinbackground(new signupcallback() {   public void done(parseexception e) {     if (e == null) {       // hooray! let them use app now.     } else {       // sign didn't succeed. @ parseexception       // figure out went wrong     }   } }); 

once user has signed first time, can use save() , saveinbackground() subsequent change in user attributes. first have got sign him up.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -