系统设置某些应用/页面适配横屏

如:

需要把某个应用添加到横屏显示的白名单里:

Settings.Global.putString(mContext,”app_landscape”,”com.android.gallery3d,”);

需要把某个应用页面横屏显示:

Settings.Global.putString(mContext,”app_class_landscape”,”com.baidu.homework/com.baidu.homework.activity.web.ZybWebActivity,”);

需要把某个应用竖屏显示:

Settings.Global.putString(mContext,”app_portrait”,”com.android.gallery3d,”);

需要某个应用页面竖屏显示:

Settings.Global.putString(mContext,”app_class_portrait”,”com.baidu.homework/com.baidu.homework.activity.web.ZybWebActivity,”);

某个竖屏应用显示不全:

Settings.Global.putString(mContext,”app_portrait_fail”,”com.android.gallery3d,”);

你可能感兴趣的:(android,system)