How to set resolution for android device?

I have this in the DefaultGameUserSettings.ini:

[/Script/Engine.GameUserSettings]
bUseVSync=False
ResolutionSizeX=1920
ResolutionSizeY=1080
//LastUserConfirmedResolutionSizeX=1920
//LastUserConfirmedResolutionSizeY=1080
WindowPosX=-1
WindowPosY=-1
bUseDesktopResolutionForFullscreen=True
FullscreenMode=0
LastConfirmedFullscreenMode=0
Version=5

But when I run in mobile device preview, the resolution became 1280720 instead of 19201080.

How to set resolution for android device?

Hi,
Do you mean you just want to set the resolution for mobile preview in editor?
If so, you could use the drop down list in Play button and find “Advanced Settings…” which is actually the Editor Preference setting’s Level Editor - Play tab. There you can set “New Window Size” in “Play in New Window” which is actually the mobile preview window size.
BTW, if you don’t set it to editor default, it will be located in your project’s Saved\Config\Windows\EditorPerProjectUserSettings.ini with [/Script/UnrealEd.LevelEditorPlaySettings] section.

For manage actual rendering resolution on device, you can use device profile to tweak “MobileContentScaleFactor” to get the actual framebuffer resolution on specified devices.