Re: [android-developers] Force 4k display mode on Android with preferedDisplayMode

2017-08-08 Thread 'Pena Ryan' via Android Developers
On Tue, 8/8/17, youssef EL MOUMNI <youssef.elmoumn...@gmail.com> wrote: Subject: Re: [android-developers] Force 4k display mode on Android with preferedDisplayMode To: "Android Developers" <android-developers@googlegroups.

Re: [android-developers] Force 4k display mode on Android with preferedDisplayMode

2017-08-08 Thread youssef EL MOUMNI
Thanks for the reply Marina. I am checking the modes, testing on an Xperia Z5 Premium, and there are 2 modes: 1080p and 4k. It was working pretty well on Android M, but on the N update it's scaling the whole phone UI to 4k and the whole phone interface is messed up. Not the app UI, but the

Re: [android-developers] Force 4k display mode on Android with preferedDisplayMode

2017-08-08 Thread Marina Cuello
You could check the supported modes on the device, and then check the pixel size on those to select the one closer to what you want. Marina On Tue, Aug 8, 2017 at 9:49 AM, youssef EL MOUMNI < youssef.elmoumn...@gmail.com> wrote: > Hi everyone, > > > I am trying to force 4k display mode to

[android-developers] Force 4k display mode on Android with preferedDisplayMode

2017-08-08 Thread youssef EL MOUMNI
Hi everyone, I am trying to force 4k display mode to target phones with 4k screens. It was working pretty well with Android M and I had beautiful 4k support using WindowManager.LayoutParams params = getWindow().getAttributes(); params.preferredDisplayModeId = 2;