2018.5.76
//通过网络检查账号密码是否匹配,没有网你玩个锤子
if(passwordString.equals("114514")||passwordString.equals("1919810")){ //这里模拟切换账号
editor.putBoolean("isEnsured",true); //经过登录验证
editor.putString("account",accountString);
editor.putString("password",passwordString);
editor.commit();
Intent intent = new Intent(LoginActivity.this,MainActivity.class);
startActivity(intent);
}
else{
Toast.makeText(LoginActivity.this,"账户与密码不符",Toast.LENGTH_SHORT).show();
}