public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);
int N = 10;
TextView[] myTextViews = new TextView[N];
LinearLayout myLinearLayout = (LinearLayout) findViewById(R.id.test);
for (int i = 0; i < N; i++) {
TextView rowTextView = new TextView(this);
rowTextView.setText(message);
myLinearLayout.addView(rowTextView);
myTextViews[i] = rowTextView; }
上述代码中的错误是什么?显示“不幸的是应用程序已停止”错误。