How to extend ListActivity without declaring ListView in XML layout in android
<p>Hi guys iam developing a Screen in android.Iam writing code for that screen to work both in Portrait and Landscape orientation.Here my Portrait and Landscape XML is different,that is why iam using different XML Files for both Portrait and Landscape orientaion.Here i included that these XML Files in onConfigurationChanged() method.Depending upon the orientation change iam including that specific XML File and iam using only one activity for this which extends ListActivity.In the Portrait orientation iam using ListView but in the Landscape orientation iam not using ListView.When iam changing my orientation from Portrait to Landscape it is giving an Exception saying that Your content must have a ListView whose id attribute is 'android.R.id.list'.Here i understand the problem that in my Landscape XML File i have not used the ListView as i extended ListActivity.But i dont want to use ListView.How can i overcome this. </p>
