1. Are you ready for the Galaxy S20? Here is everything we know so far!

activity restart due to Configuration Change

Discussion in 'Android Development' started by Kuldip Somwanshi, Jun 23, 2021.

  1. Kuldip Somwanshi

    Thread Starter

    My activity is getting restarted, to avoid this I have added the possible configuration changes in my Android manifest still activity getting restarted. The android manifest as below
    <activity android:configChanges="density|touchscreen|mcc|mnc|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.app.Activity" android:label="MyApp" android:screenOrientation="landscape" android:launchMode="singleTop" android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen">

    I have get the configuration at runtime and logged in Log file, The older configuration as follows

    {1.0 ?mcc?mnc [en_IN] ldltr sw800dp w1280dp h728dp 160dpi xlrg land finger qwerty/v/v -nav/h winConfig={ mBounds=Rect(0, 0 - 1280, 800) mAppBounds=Rect(0, 0 - 1280, 752) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_90} s.5}

    And the changed configuration as below

    {1.0 ?mcc?mnc [en_IN] ldltr sw800dp w1280dp h728dp 160dpi xlrg land finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 800) mAppBounds=Rect(0, 0 - 1280, 752) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_90} s.7}

    Please could you tell me what is this s.5 to s.7 change stands for?
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...