开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜