语言

Menu
Sites
Language
How to get screen size/resolution ?

Are there some api to get device screen size/resolution in 2.3 SDK?

Thanks~

查看选择的答案

响应

4 回复
Mark as answer
Alex Dem

Hi,
To get screen size supported by the device try to perform:

int height,width;
system_info_get_platform_int("http://tizen.org/feature/screen.width", &width);
system_info_get_platform_int("http://tizen.org/feature/screen.height", &height);

Alexey.

roc john

Got it!

Thank you very much!

:-D

Alex Dem

Also fyi:
useful links with all possibilities:
https://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__SYSTEM__SYSTEM__INFO__MODULE.html
https://developer.tizen.org/dev-guide/2.3.0/org.tizen.guides/html/native/system/sysinfo_n.htm
Alexey.

roc john

Ok~

Thank you~

:-D