This problem can only reproduce on real android phone, e.g. ASUS zonefone 2. It can't reproduce on android emulator. I make MyGame and port to android by python script on https://github.com/renpytom/rapt-pygame-example.
MyGame had below code:
for event in pygame.event.get():
if event.type == QUIT:
exit()
elif ...
I find pygame.event.get() may make android phone crash by steps below:
Open MyGame app.
Tap cell phone screen many times.
MyGame app will closed if it's crash.
Since I replace pygame.event.get() with code below:
event = pygame.event.wait()
Then MyGame app won't crash, I suspect there is a bug in pygame.event.get() and it should be critical.
This problem can only reproduce on real android phone, e.g. ASUS zonefone 2. It can't reproduce on android emulator. I make MyGame and port to android by python script on https://github.com/renpytom/rapt-pygame-example. MyGame had below code:
I find pygame.event.get() may make android phone crash by steps below:
Since I replace pygame.event.get() with code below:
event = pygame.event.wait()
Then MyGame app won't crash, I suspect there is a bug in pygame.event.get() and it should be critical.