Android App Forcecloses On Starting Of A New Activity
Solution 1:
Change your ExpandableListView id with this
android:id="@android:id/list"
and if your class extends Activity then change it to
publicclassclassNameextendsListActivity
and you can get your ExpandableListView by calling the method
ExpandableListViewlistView= getListView();
Solution 2:
The answer is very simple, you just forgot to insert the NewGameScreen Activity's Entry in the AndroidManiFest.xml Write down following line in your AndroidManifest.xml file before the tag.
<activityandroid:name=".NewGameScreen"></activity>
And also important thing that your NewGameScreen class must extends
Activity
Solution 3:
You need to give the id of your ListView as android:id="@android:id/list"
, if you are extending LIstActivity. Then you can get your ListView handler from getLIstView();
If you are extending Activity, then you can give any other id to your ListView and get it using findViewbyId()
From the LOgCat trace, it looks like you are using ListActivity.
Post a Comment for "Android App Forcecloses On Starting Of A New Activity"