Your App Needs an Update to Utilize Extra Space Available on Samsung Galaxy S8

Samsung has announced their newest phones Galaxy S8 and Galaxy S8 Plus. Galaxy S8 and Galaxy S8 Plus are one of the largest smartphones of the year.

Samsung Galaxy S8 has a screen size of 148.9 x 68 x 8mm, while the Samsung Galaxy S8 Plus is 159 x 74 x 8mm. So definitely these devices have highest aspect ratio. Galaxy S8 has aspect ratio 18.5:9. As aspect ratio is increased, it is a time to update your app to support maximum aspect ratio to utilize extra space available on the screen. Android APIs has made this task easy. You can support maximum aspect ratio for Android apps by adding following piece of code in the Manifest file of an app. Insert android.max_aspect <meta-data> element in the app’s <application> element

<meta-data android:name="android.max_aspect"

The value of Android.max_aspect should be ratio_float if you want to build an app for maximum supported aspect ratio. You can set float value for this param instead of “ratio_float” if you know maximum aspect ratio your app should be supporting. Please make a note if you do not set the value and if android:resizeableActivity is not true, then the maximum aspect ratio defaults to 1.86 (which is roughly 16:9). So in order to take advantage of extra space available on the screen for larger devices, make sure you are setting a right value for Android.max_aspect.

LG has also announced new phone early this year LG G6 which has aspect ratio of 18:9. So if you want to support newest devices like Samsung Galaxy S8 and LG G6, make sure you declare right elements in the manifest file of your app for the desired aspect ratio support.