EX06_01.java
上传用户:vip_99
上传日期:2021-03-27
资源大小:61159k
文件大小:1k
- package irdc.EX06_01;
- import android.app.Activity;
- import android.os.Bundle;
- import android.widget.TextView;
- public class EX06_01 extends Activity
- {
- private TextView mTextView1;
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- /*通过findViewById构造器创建TextView对象*/
- mTextView1 = (TextView) findViewById(R.id.myTextView1);
- mTextView1.setText("等待接收短信...");
- }
- }