我正在使用 Parse 作为我的 Android 应用程序的后端。我在用户类中创建了两个自定义列。现在我希望我的应用程序用户注册我的应用程序。我无法为自定义列存储用户数据.我该怎么做?
最佳答案
直接来自 Parse 文档:
ParseUser user = new ParseUser();
user.setUsername("my name");
user.setPassword("my pass");
user.setEmail("email@example.com");
// 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
}
}
});
我建议您非常彻底地阅读 Parse 文档 - 大多数您想使用该服务做的事情都会在文档中的某个地方,它们非常好。
关于android - 自定义列解析查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25474073/