Tuesday, December 7, 2010

Fix android activity screen orientation

In your activity class insert code:
    @Override
    public void onConfigurationChanged(Configuration newConfig)
    { super.onConfigurationChanged(newConfig);
    }

In your manifest activity tag, declare attribute:
 android:screenOrientation="portrait"

No comments:

Post a Comment