Ok, here's a tip (that I just discovered for myself) for you app developers.
When a Bluetooth clicker appears Android says to itself, "OMG, something just appeared that can do a page down" and it restarts the foreground application so that it can take advantage of this startling info. In AndroidManifest.xml you can put:
Code:
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode|navigation">
This tells Android to keep its hat on and that you can roll with the punches without your app having to restart. Most of the clauses you will recognize but the uiMode and navigation were new to me. If you want, you can address the changes in onConfigurationChanged in your Activity.
All of this only comes into question if you connect your Bluetooth device after your app is already started.