android - Instiantate ParseUser object -
android - Instiantate ParseUser object -
according android api documentation in parse.com, code below should sign new user. however, next exception when seek instiantate new parseuser: java.lang.illegalargumentexception: must register parseobject subclass before instantiating it
. code 1 follows:
private void createuser() { parseuser user = new parseuser(); user.setusername(mfirstname + " " + mlastname); user.setpassword(mpassword); user.setemail(memail); user.signupinbackground(new signupcallback() { public void done(parseexception e) { if (e == null) { // whatever } else { // whatever } } }); }
what doing wrong?
i not initializing library. fixed!
android parse.com
Comments
Post a Comment