# Android - Both the ViewportSize and Device Resolution values are different from the actual values.

**URL:** <https://forums.unrealengine.com/t/android-both-the-viewportsize-and-device-resolution-values-are-different-from-the-actual-values/1320558>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, Widget, question, CPP\
**Created:** [October 3, 2023, 1:11am UTC](https://forums.unrealengine.com/t/android-both-the-viewportsize-and-device-resolution-values-are-different-from-the-actual-values/1320558 "2023-10-03T01:11:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev\_jun2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dev\_jun2](https://forums.unrealengine.com/u/dev_jun2)\
**Post date:** [October 3, 2023, 1:11am UTC](https://forums.unrealengine.com/t/android-both-the-viewportsize-and-device-resolution-values-are-different-from-the-actual-values/1320558/1 "2023-10-03T01:11:05Z")

</div>

I am working with C++ to accommodate various resolutions of Android. My phone is a Samsung Galaxy Note20. I believe its resolution is 1080x2400. However, the value confirmed through the code below is 600x1280. What on earth is happening? I can’t figure out what the problem is.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/0/350b165277a7cc36525fa1b634e65af91378c6ef.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/7/697bce780bcb091df889f605abe4ad4d8c43b4d0.png)
