0
導致此Android RuntimeException的原因是什麼?導致此Android RuntimeException的原因
02-01 15:13:41.316: ERROR/AndroidRuntime(3989): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cccc.xxxx/com.cccc.xxxx.ActivityMyScreen}: java.lang.IllegalArgumentException: contentView required: pkg=com.cccc.xxxx id=3145728 notification=Notification(vibrate=null,sound=null,defaults=0x0)
我開始從其他活動該活動如下:本例外
Intent intent = new Intent();
intent.setClass(mContext, ActivityMyScreen.class);
intent.putExtra("username", mUserName);
startActivity(intent);
可能是什麼原因?
謝謝,
PP。