Background . Android N is equipped with a Display Size change function from the settings, in addition to the previously existing Font Size change function.
Resize Screen:

Image Source: pcmag.com
Question
If the application has android.permission.WRITE_SETTINGS permission to change settings, there are ways to change the system font size programmatically, as described in How to programmatically change device font settings: font style and font size? . However, I could not find a way to resize the display programmatically. Is it possible?
What have i tried?
I checked the options in the Settings.System list of convenience functions needed to change the settings programmatically.
Update :
I opened a function request for the same: https://code.google.com/p/android/issues/detail?id=214124 . If you feel this would be helpful, please run it.
Thanks for your help in advance!
android android-settings android-n
Shobhit puri
source share