2014-10-28 116 views
0

我一直在用解析創建用戶註冊時遇到問題。出於某種原因,我不斷收到以下錯誤:screenshot。我不知道爲什麼,我很確定我正在做的一切正確(這是我第一次使用解析)。SignUpCallback錯誤解析

public void signUp() { 

     myName = name.getText().toString(); 
     myEmail = email.getText().toString(); 
     myPass = pass.getText().toString(); 
     myRepass = repass.getText().toString(); 
     myInterests = interests.getText().toString(); 

     if (myPass.compareTo(myRepass) == 0) { 
      if (myPass.length() >= 6) { 
       ParseUser user = new ParseUser(); 
       user.setUsername(myEmail); 
       user.setPassword(myPass); 
       user.setEmail(myEmail); 
       user.signUpInBackground(new SignUpCallback() { 
        public void done(ParseException e) { 
         if (e == null) { 
          misMatch(); 
         } else { 
          // Sign up didn't succeed. Look at the ParseException 
          // to figure out what went wrong 
          showShortAlert(); 
         } 
        } 
       }); 

      } else { 
       showShortAlert(); 
      } 
     } else { 

      misMatch(); 
     } 
    } 
+0

告訴我們,你已經宣佈它'SignUpCallback'的代碼? – Panther 2014-10-28 03:42:34

回答

0

所以我想通了這個問題,基本上就是我需要做的是:

public void done(ParseUser parseUser, com.parse.ParseException e) {