I just wanted to share a couple of tips that I’ve found while working with SDL on Android and thought that might be useful to others:
- Not sure if the status bar can be hidden through code, but adding the android:theme="@android:style/Theme.NoTitleBar.Fullscreen" property to the “application” tag in AndroidManifest.xml makes it hide at launch.
- Resolution setting doesn’t seem to work fine by default because the system won’t take dpi info into account. To make it work fine, add the following line to AndroidManifest.xml:
Be aware that this restricts your app to only work on android 1.6 or over.
Maybe there are better ways to do that, but those are the ones I found. The AndroidManifest.xml file in the SDL sample project with these changes applied would be:
Code:<?xml version="1.0" encoding="utf-8"?>
Hope it helps.