标签:xtend create btn save his public ext 注册 private
今天完善注册的后台代码
用户协议的代码
public class Policy extends AppCompatActivity {
private long mExitTime;
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
Intent intent = new Intent(Policy.this, Login.class);
startActivity(intent);
finish();
}
return super.onKeyDown(keyCode, event);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.policy);
Bmob.initialize(this, "3dd3b0a650583de70aefd3e6a0ee933e");
TextView btn_back_login = findViewById(R.id.btn_back_login);
btn_back_login.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(Policy.this, Login.class);
startActivity(intent);
finish();
}
});
}
}
标签:xtend create btn save his public ext 注册 private
原文地址:https://www.cnblogs.com/D10304/p/14909436.html