HDMI 横竖屏设置

竖屏

Intent mIntent1 = new Intent("android.ido.intent.action.hdmirotation");
mIntent1.putExtra("rotation","portrait");
sendBroadcast(mIntent1);
Intent mIntent2 = new Intent("android.ido.intent.action.lcdrotation");
mIntent2.putExtra("rotation","90");//90,270
sendBroadcast(mIntent2);
systemReboot(false);

横屏

Intent mIntent1 = new Intent("android.ido.intent.action.hdmirotation");
mIntent1.putExtra("rotation","land");
sendBroadcast(mIntent1);
Intent mIntent2 = new Intent("android.ido.intent.action.lcdrotation");
mIntent2.putExtra("rotation","0");//0,180
sendBroadcast(mIntent2);
systemReboot(false);
文档更新时间: 2021-11-10 11:23   作者:Aeeditor