Q:

Creating A Sign Up Activity using Parse

In my application I am creating a sign up activity using parse database and I used the signUpInBackground() but when I run the code on the emulator the parse is giving me a message that says "unauthorised.
Join.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            final ProgressDialog dialog = new ProgressDialog(SignUp.this);
            dialog.setTitle("Please Wait");
            dialog.setMessage("Please Wait While Signing Up");
            dialog.show();

            final ParseUser user =new ParseUser();

            user.setUsername(Username.getText().toString().trim());
            user.setPassword(Password.getText().toString().trim());
            user.setEmail(Email.getText().toString().trim());
            user.put("firstName", FirstName.getText().toString().trim());
            user.put("lastName", LastName.getText().toString().trim());

            user.signUpInBackground(new SignUpCallback() {
                @Override
                public void done(ParseException e) {
                    dialog.dismiss();
                    if(e!=null){
                        Toast.makeText(SignUp.this,e.getMessage(),Toast.LENGTH_LONG).show();
                    }else {
                        Intent i = new Intent(SignUp.this,LogIn.class);
                        startActivity(i);
                    }
                }
            });

        }
    });

A:

When you initialise Parse in your Application class, are you setting your ACL?
Also are your keys correct when you initialise?
Make sure you follow the Quick Start Guide.

