Java空点
@Override
protected void onPostExecute(String s2) {
SharedPreferences data = context.getSharedPreferences("data", Activity.MODE_PRIVATE);
if (s2.equals("Done")){ --error - this
data.edit().putString("new","1").apply();
Intent intent = new Intent();
intent.setClass(context.getApplicationContext(),MainActivity.class);
context.startActivity(intent);
} else if (s2.equals("incorrect")){
Toast.makeText(context,"invalid",Toast.LENGTH_SHORT).show();
}
}