I know it is a bit early for api 36, but i had to mention this problem.
SDK = 36 (android-36)
targetSdkVersion= 36
The following event is broken in API 36. It crashes when adding the event below and pressing back key. It does not report any errors at the log, just crashes. It is ok without the event, no crashes.
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event
End Sub
I tested it with emulator (Android 16) and i do not have an actual device with Android 16 to test it. I hope its only in the emulator. Maybe someone can test it with a real device with Android 16.
I tried and I get no crashes, using and Android 36 emulator.
The app never crashes but sometimes it's sent to background, probably because the KeyBack is catched by the OS as it is not consumed by the app.
Anyway I would not spent too much time with something that maybe request a B4A update for some changes in Android 36 and that now it's not requested.
I tested it in emulator, no crash. even if there is no return value in sub keypress.
Try reinstalling the emulator.
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event
Dim ph As Phone
Log(ph.SdkVersion)
Log("key="&KeyCode)
Return False
End Sub