Register user to QuickBlox Users from android

你说的曾经没有我的故事 提交于 2019-12-24 00:56:22

问题


I'm trying to use QuickBlox in my android application, I read the guide and imported the sample and everything worked fine.

I changed a few things that user can login using EditText for username and another for password.. and it worked fine.

But now I want to add a Register Button that makes the user able to register new account.. I don't know how to do that.. Any Idea?


回答1:


Here's the solution :

QBUsers.signUp(user, new QBEntityCallbackImpl<QBUser>() {
        public void onSuccess(QBUser result, Bundle params) {
            // success
        }

        public void onError(List<String> errors) {
            AlertDialog.Builder dialog = new AlertDialog.Builder(
                    SplashActivity.this);
            dialog.setMessage(
                    "register errors: " + errors)
                    .create().show();
        }
    });


来源:https://stackoverflow.com/questions/27804303/register-user-to-quickblox-users-from-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!