According to this doc page, Android 2.3 supports extra large screen sizes (xlarge), and you can declare that your apps supports this size by adding android:xlargeScreens="true"
in the <supports-screens>
tag in the Manifest file.
But, since my app is targeted for a minimum SDK version of Android 2.1, compilation fails complaining about unknown attribute.
I don't want to use the new SDK because I won't get warnings if I accidentally use 2.3 specific features.
Is there a way out?
Most modern Android devices will give you the option to adjust screen resolution in the Display options or Settings. To get there, look for the gear-like icon on the applications menu. It should be labeled as Settings. You can also swipe down and click on the Settings app from the drop-down menu.
1. Display display = getWindowManager(). getDefaultDisplay(); Point size = new Point(); display. getSize(size); int width = size.
You'll have to use the 2.3 SDK because that attribute simply is not known in lower SDKs. However, what you can do is set your target SDK to be 2.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With