我来自卡利哥伦比亚不会说英语好的
我有activityA 和activityB 一个Button activityA
点击按钮set Text activityB = setText ("100");
public void onClick(View arg0) {
Intent manu = new Intent (MainActivity.this,Sonido.class);
setContentView(R.layout.activity_main2);
((TextView) findViewById(R.id.textView21)).setText("100");
startActivity(manu);
/*
1.getText()
2.putString()
3.getString()
.take data from a string and show activity B
.The button is only in the activity
*/
}
像我这样的问题: 从另一个活动中调用按钮