轉屏1 get
Settings.System.putInt(getContentResolver(),
true ? 1 : 0);
轉屏2
Settings.System.putInt(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION, false ? 1 : 0);