2

Different configChanges for different android os version for single activity

   <activity
            android:name=".Activity_JoinMeeting"
            android:configChanges="orientation|screenSize|layoutDirection|locale"
            android:screenOrientation="landscape"
            android:launchMode="singleTop"
            android:windowSoftInputMode="adjustPan|stateHidden"/>

configChanges for android OS 23 I want set set 4 properties and configChanges for android OS above 23 I want set 2 properties how can I achive it

2 Answers2

1

You can define two different activity in AndroidManifest file one for above android api 23 and other for rest android apis.

and launch that activies after checking api,

if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP){

}
kiran boghra
  • 3,662
  • 2
  • 18
  • 23
0

You can check the answer of aorlondo in this post and maybe try this solution with each properties you want to change.

Ady
  • 230
  • 3
  • 16