So i have a web view in a activity
I need it to keep orientation the same as the one the devices was in, when user opened activity (so if LANDSCAPE when activity was opened -> keep that!..if PORTRAIT -> keep that)
So
- dont need XML manifest notation.. i dont want to force a specific orientation, just to keep opened one!
These two tentatives do nothing:
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(null);
or
public void onConfigurationChanged(Configuration newConfig) {
newConfig.orientation = getResources().getConfiguration().orientation;
super.onConfigurationChanged(newConfig);
So ideas??