HTC Sensation Real Resolution

后端 未结 2 1737
遇见更好的自我
遇见更好的自我 2020-12-06 16:05

I have two approaches to get real resolution:

    DisplayMetrics dm = new DisplayMetrics(); 
    getWindowManager().getDefaultDisplay().getMetrics(dm);
    d         


        
2条回答
  •  余生分开走
    2020-12-06 16:15

    I believe this is because your target or minimum SDK version is activating Screen Compatibility Mode. You should use higher minimum and target SDK values in your manifest.

提交回复
热议问题