when i set android target below 13 then the android configchanges attribute work fine means on create method not call, but if i set target version 13 and above then android config Changes attribute does not work and oncreate method recall on change of orientation.
Asked
Active
Viewed 36 times
1 Answers
0
For target sdk 13 and above the recommended attribute is
android:configChanges="orientation|screenSize"

Brijesh Thakur
- 6,768
- 4
- 24
- 29
-
thank you,but please tell me why android:configChanges="orientation|keybord" does not work for this unlike andorid version below 13. – Janeshwar Yashpal Jun 24 '13 at 12:22
-
Read http://stackoverflow.com/questions/7139488/androidconfigchanges-orientation-does-not-work-with-fragments. – Brijesh Thakur Jun 24 '13 at 15:55
-
If the above solution suffice your need.. Its really appreciated to accept this as an answer !!! – Brijesh Thakur Jul 04 '13 at 07:53