Discussion:
Bluetooth keyboard start/stop on Android problem
(too old to reply)
EternalLands
2017-01-26 18:53:32 UTC
Permalink
I am having a problem on Android.
If I start or stop my external BT keyboard, then the OS is terminating the application. I get the "app will be terminated" event, and if I don't do an exit() then really bad things will happen.

Here is what the log says:

Code:

I/EventHub( 1741): New device: id=16, fd=197, path='/dev/input/event6', name='Bluetooth Keyboard', classes=0x80000003, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychar/Generic.kcm', builtinKeyboard=false, wakeMechanism=EVIOCSSUSPENDBLOCK, usingClockIoctl=true
I/InputReader( 1741): Device added: id=16, name='Bluetooth Keyboard', sources=0
x00000101
I/ValidateNoPeople( 1741): skipping global notification
I/ActivityManager( 1741): Config changes=30 {1.0 ?mcc?mnc en_US ldltr sw600dp w960dp h527dp 320dpi lrg land finger qwerty/v/v -nav/h s.116}
D/# ( 3046): w=1920 h=1200
I/InputAttributes( 2073): InputType.TYPE_NULL is specified
V/SDL ( 4915): onPause()
V/SDL ( 4915): nativePause()
V/SDL ( 4915): onDestroy()
I/SDL/APP ( 4915): OS is terminating us...



Any ideas? Did anyone else experience this issue?
EternalLands
2017-01-26 19:27:47 UTC
Permalink
Well, I solved it. I added "keyboard" in android:configChanges="keyboardHidden|keyboard|orientation|screenSize" in the manifest file, and it works just fine :)
Continue reading on narkive:
Loading...