android - 自定义列解析查询

标签 android parse-platform

我正在使用 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/

相关文章:

android - 当两个或多个 Activity 都具有带有 action=android.intent.action.ACTION_MAIN 的 intent-filter 时,这意味着什么?

java - Android 开发初学者遇到问题

ios - 从Parse.com流音频-没有检索到数据?

ios - 如何在Parse中保存toUser和fromUser?

iOS解析Facebook登录错误308 FBSDKLoginBadChallengeString

javascript - 无法从单选按钮 ionic 3 获取值

Android USB 主机接收数据

swift - Parse.com 安装 - 设备上打开的时间

ios - 解析SDK更新日期字段

android - 在 WebView 中禁用 SoftKeyboard