自定义列分析查询 [英] Custom column parse query

查看:187
本文介绍了自定义列分析查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用解析为后端为我的Andr​​oid Application.I已经创建了Class.Now我希望我的应用程序用户与我application.I立即登记一时无法存储用户数据的自定义列用户两个自定义列。如何做呢?

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?

推荐答案

直接从解析文档:

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
    }
  }
});

我建议你非常仔细阅读解析文档 - 你会想用服务做将是某处文档任何东西,他们都非常好。

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.

这篇关于自定义列分析查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆