Home > Mobile >  Error of Bmob SaveListen without parameters
Error of Bmob SaveListen without parameters

Time:09-18

Originally can also originally, changed the version of the SDK is wrong

The login. SetOnClickListener (new View. An OnClickListener () {
@ Override
Public void onClick (View v) {
User user=new User();
User. SetUsername (username. GetText (). The toString (). The trim ());
User. SetPassword (password. GetText (). The toString (). The trim ());
The user login (new SaveListener () {
@ Override
Public void done (User User, BmobException e) {
If (e==null) {
Toast. MakeText (Login. This log in successfully, Toast. LENGTH_SHORT), show ();
StartActivity (new Intent (Login. This, MainActivity. Class));
finish();
} else {
Toast. MakeText (Login. This "Login failed", Toast. LENGTH_SHORT), show ();
}
}
});
}
});

CodePudding user response:

Show that the revised version of the listener, you should write according to this version
  • Related