Reputation: 107
I am using Parse as back-end for my Android Application.I have created two custom columns in the User Class.Now I want my application user to signup with my application.I am unable to store user data for the custom columns.How do i do that?
Upvotes: 1
Views: 382
Reputation: 655
Directly from the Parse Docs:
ParseUser user = new ParseUser();
user.setUsername("my name");
user.setPassword("my pass");
user.setEmail("[email protected]");
// other fields can be set just like with ParseObject
user.put("phone", "650-253-0000");
user.signUpInBackground(new SignUpCallback() {
public void done(ParseException e) {
if (e == null) {
// Hooray! Let them use the app now.
} else {
// Sign up didn't succeed. Look at the ParseException
// to figure out what went wrong
}
}
});
I suggest you read the Parse docs very thoroughly - most anything you will want to do with the service will be somewhere in the docs, they are very good.
Upvotes: 2