Python for Android and upgrade sdl2

46 views
Skip to first unread message

ITKSoft apps

unread,
May 22, 2020, 9:25:30 AM5/22/20
to Kivy users support
Hello, 

Help please. 

I would like to know how to update sdl2 in the hope of solving the android back button problem. 

Robert Flatt

unread,
May 22, 2020, 1:29:07 PM5/22/20
to Kivy users support
The version of SDL2 is hard coded here:
Looking at the history shows a bump up exposed an issue:

You could I suppose create a local copy and try it, but I suggest that "hope" would not be a good basis for this non-trivial work.
Try "reason" ;)
Unless you know of some particular sdl2 release note that describes the issue, I'd suggest debugging by starting simple.

Create a one page example to clearly demonstrate whatever the back button issue is.
You could for example modify Hello World and use the back button to toggle between two label texts.
Debug on the desktop, and add the Android key code before building.
If you share that maybe somebody will offer some clarity.

Alexander Taylor

unread,
May 22, 2020, 1:35:09 PM5/22/20
to Kivy users support
What is the android back button problem? Do you not receive the back button event as a keypress?

ITKSoft apps

unread,
May 22, 2020, 5:24:35 PM5/22/20
to Kivy users support

Robert Flatt

unread,
May 22, 2020, 5:52:23 PM5/22/20
to Kivy users support

Clearly you want SDL2 2.0.10 or higher
There are currently two issues related to this version

So updating will result in other issues.

ITKSoft apps

unread,
May 22, 2020, 6:07:39 PM5/22/20
to Kivy users support
Is it possible to get around the problem via kivy code? Something about the lost focus event of the input?

Robert Flatt

unread,
May 22, 2020, 6:40:08 PM5/22/20
to Kivy users support
Sorry, I don't know.
Reply all
Reply to author
Forward
0 new messages