The Android project template crash at startup if the volume up or down is pressed at startup (just after the splash screen) with a System.NullReferenceException: 'Object reference not set to an instance of an object.'.
One temporary workaround I found is to create a custom FrameLayout with a public override bool DispatchKeyEvent(KeyEvent e) and ignore when if (e.Action == KeyEventActions.Down || e.Action == KeyEventActions.Up). Not really a fix.
The problem is reproducible each time. On Android 9 and also 13 so I think all versions.
The Android project template crash at startup if the volume up or down is pressed at startup (just after the splash screen) with a
System.NullReferenceException: 'Object reference not set to an instance of an object.'
.One temporary workaround I found is to create a custom FrameLayout with a
public override bool DispatchKeyEvent(KeyEvent e)
and ignore whenif (e.Action == KeyEventActions.Down || e.Action == KeyEventActions.Up)
. Not really a fix.The problem is reproducible each time. On Android 9 and also 13 so I think all versions.
What version of KNI does the bug occur on:
What KNI platform are you using: