nikita36078 / J2ME-Loader

A J2ME emulator for Android.
Apache License 2.0
1.84k stars 201 forks source link

Android sleep bug #388

Open telanus opened 5 years ago

telanus commented 5 years ago

Emulator version: 1.3.6-play

Device: Alcatel one Touch 6012x

Android version: 4.2.2

Description of the issue: When you leave a game open (like when helping a customer during a slow day) and then go back to the game after unlocking the phone, j2me-loader doesn't accept any input, and you need to go out and go back into the game before it'll accept any input

crramirez commented 5 years ago

It happens to me too, Android 8.0. I just need to go home and back to the game and it is completely unresponsive. In my case it only happens the first time I load the emulator, if I switch again it will work. In my case this issue happens since the first version I tested 1.3.1

nikita36078 commented 5 years ago

Does this bug occur in all games?

hex007 commented 5 years ago

@nikita36078 try testing with Do not keep activity (DNKA) on.

The option is accessible from android developer settings

I think it is a good time to move to MVVM architecture.

telanus commented 5 years ago

Does this bug occur in all games?

with a quick test it seems it only happens with touchscreen games. Currently playing GT Racing 2 The Real Car Experience and Spider-Man Ultimate Power and both have the same problem. but Rayman Raving Rabbids TV Party doesn't suffer the same problem, but it's a non-touchscreen game

1234Sameer commented 5 years ago

I have experienced this on racing fever gt 3d (keypad) but somehow I can't reproduce it now.

telanus commented 5 years ago

Add-on from my earlier report, Rayman Raving Rabbids TV Party does not have this problem, but Tiger Woods PGA Tour 11 does suffer from this too, and it's a non-touchscreen game

nikita36078 commented 5 years ago

@hex007 I can't catch this bug even with the Do not keep activity flag. I'll try to check it on Android emulator.

I'm still thinking what's better - MVP or MVVM :) And I guess I need to implement unit tests too - to get rid of regression issues.

nl255 commented 5 years ago

I can confirm it still happens on my Moto x4 with Android 9.0 on both Doom RPG and Wolfenstein RPG but not Asteroids or Opera Mini. DNKA has no effect either.