JAVA日报

从零开始的体温app开发(基本操作)

editText0 = (EditText) findViewById(R.id.edt_name);
editText0.setText();//编辑 编辑框内容
Intent intent = new Intent();
intent.setClass(getApplicationContext(), FirstActivity.class);
startActivity(intent);//跳转
finish();//关闭当前页面
intent.putExtra("message",position);
Bundle bundle=getIntent().getExtras();
if(bundle!=null){
int message=bundle.getInt("message",0);
Log.e("S",""+message);
initcharacter(message);
}//传参 接收参数
原文地址:https://www.cnblogs.com/mumulailai/p/14906180.html