public void saveHide(View paramView)
{
String str = this.zhucemaeEditText.getText().toString().trim().toUpperCase(Locale.US);
if (this.isRegOK)
{
startActivity(new Intent(this, AnyuActivity.class));
return;
}
if (!OtherOperatorService.check3Gwifi(this))
{
Toast.makeText(getApplicationContext(), "先开启手机网络以便为你注册", 1).show();
return;
}
if (!this.ps.isUserSetOk())
{
Toast.makeText(this, "返回先设置邮箱,并保存成功", 1).show();
return;
}
if (("".equals(str)) || (str == null))
{
Toast.makeText(this, "请先输入注册码", 1).show();
return;
}
this.isRegOK = NativeClass.userSaveReg(this, this.ps.getPackName(), this.ps.getUserEmail(), this.ps.getShoujiImei(), str, 0);
if (this.isRegOK) {
Toast.makeText(this, "恭喜你注册成功", 1).show();
}
for (;;)
{
try
{
Thread.sleep(1000L);
finish();
return;
}
catch (Exception localException)
{
return;
}
Toast.makeText(this, "请检查注册码是否正确", 1).show();
}
} |