? ?
@Override
protected String doInBackground(String... arg0) {
}
// here you should use only a type of type Boolean, you cannot use String. otherwise you can use Object instead of String, as shown below mothod
protected String doInBackground(Object... params) {
return null;
}
Remove this override method. If you were unable to write the correct overridden methods, then do the following:
right click on the method - click on "Source - override / implement", then you can get override methods for your method,
@Override
protected Boolean doInBackground(Void... params) {
for (String credential : DUMMY_CREDENTIALS) {
String[] pieces = credential.split(":");
if (pieces[0].equals(mEmail)) {
return pieces[1].equals(mPassword);
}
}
return false;
}
After this method must exist, then you will receive an error message. Also call the finish () method later in your state.
source
share