开发者

App crashes on orientation change for a TabActivity with ListActivities in it

开发者 https://www.devze.com 2023-03-28 21:53 出处:网络
I have a TabActivity with 4 tabs in it, each has a ListActivity. I added android:configChanges=\"orientation|keyboardHidden|keyboard\" to the manifest file to r开发者_开发知识库estrict my app to portr

I have a TabActivity with 4 tabs in it, each has a ListActivity. I added android:configChanges="orientation|keyboardHidden|keyboard" to the manifest file to r开发者_开发知识库estrict my app to portrait mode when the orientation changes. This works fine on all screens except the one with TabActivity. The app crashes when I select a row in the ListAcitivity. Any help on solving this is appreacited.. thanks..


try this code. Please, read this post http://www.hrupin.com/2011/10/17/how-to-set-the-different-screen-orientations-for-tabactivity-children-activities

Hope, it help you

0

精彩评论

暂无评论...
验证码 换一张
取 消