To do this, add the following line to the tag in your AndroidManifest.xml file:ĪndroidManifest.xml android:configChanges="screenSize|smallestScreenSize|orientation|screenLayout"Īnd then override the onConfigurationChanged method in your main activity. However, some apps, games, and games engines may wish to handle configuration changes caused by window resizing manually. This requires careful attention and can lead to poor behavior if you receive unexpected configuration changes - for example if screen density changes when a user plugs in an external monitor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |