Unfortunately HelloListView has stopped

前端 未结 2 1863
野性不改
野性不改 2021-01-25 05:00

I\'ve followed this tutorial but when I try to run the application I get Unfortunately HelloListView has stopped The IDE gives no warnings or errors.

My Hel

2条回答
  •  無奈伤痛
    2021-01-25 05:58

    When you extend ListActivity, you need to have an xml which contains id as @android:id/list, then in your activity you need to setContentView(R.layout.yourxmlName); Here is tutorial.

提交回复
热议问题