在Android 7.0系统中,在Launcher首次启动时调整屏幕比例设置
发布时间
阅读量:
阅读量
import android.os.IDisplayOutputManager;
import android.os.DisplayOutputManager;
import android.os.ServiceManager;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
private DisplayOutputManager mDisplayOutputManager = null;
onCreate()
setdispalypercent();
private void setdispalypercent() {
if (isFristRun()) {//首次运行时执行初始化设置
IDisplayOutputManager service = IDisplayOutputManager.Stub
.asInterface(ServiceManager.getService(Context.DISPLAYOUTPUT_SERVICE));
mDisplayOutputManager = new DisplayOutputManager(Launcher.this, service);
mDisplayOutputMa
全部评论 (0)
还没有任何评论哟~
