Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Patch submission: Call showNotify when Android app is resumed. #104

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

Hi,

Here is patch to solve this problem on microemu-midp.

Problem context:
----------------

In microemu-android 3.0.0, pausing the Android app does not stop the midlet 
(for obvious reasons) but does call hideNotify to notify midlet that it is 
going to be in the foreground anymore. 

However, resuming the Android app does NOT call showNotify() while it should 
logically. This patch fixes this issue.

Solution provided:
--------------------

- Declared org.microemu.DisplayAccess's showNotify method in microemu-midp 
(microemu-midp_showNotify_implementation_part0.patch). 
- Implemented DisplayAccessor's showNotify method following same logic as 
hideNotify method (microemu-midp_showNotify_implementation_part1.patch).
- Called showNotify method when resuming Android app in microemu-android 
(microemu-android_showNofity_on_resume.txt). 
Result observed:
-----------------

Midlet's relying on showNotify method to prepare content to be displayed on 
screen are now working on microemu-android. Tested on Samsung Galaxy SII with 
Android 2.3.4 only.


Regards,

David

Original issue reported on code.google.com by da...@toro-asia.com on 21 Oct 2011 at 3:56

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant