protected void onCreate(Bundle paramBundle) {
super.onCreate(paramBundle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
this.setContentView(R.layout.testaaa);
Intent intent = this.getIntent();
titleText = (TextView) findViewById(R.id.TitleText);
titleText.setText("活动明细"); 这行报空指针去掉就问题。实在找不到原因了
userName = intent.getStringExtra("userName");
super.onCreate(paramBundle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
this.setContentView(R.layout.testaaa);
Intent intent = this.getIntent();
titleText = (TextView) findViewById(R.id.TitleText);
titleText.setText("活动明细"); 这行报空指针去掉就问题。实在找不到原因了
userName = intent.getStringExtra("userName");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货