My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 104 attachment: microemu-android_showNofity_on_resume.txt (967 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
=== microemu-android/src/org/microemu/android/MicroEmulator.java ===

ADD LINES STARTING WITH + INTO onResume() method. SORRY TO NOT PROVIDE A PROPER PATCH FILE.

if (contentView != null) {
if (contentView instanceof AndroidRepaintListener) {
((AndroidRepaintListener) contentView).onResume();
}
// Invalidate Android view instance in order to repaint it
post(new Runnable() {
public void run() {
contentView.invalidate();
}
});

+
+ MIDletAccess ma = MIDletBridge.getMIDletAccess(midlet);
+ if (ma != null) {
+ //////////////////////IMPORTANT////////////////////////
+ // Don't start midlet when android invoke onResume().
+ // Why: Android user only paused the app and he/she intents
+ // to resume where he/she left off
+ //
+ //ma.startApp();
+ ma.getDisplayAccess().showNotify();
+ }

}


Powered by Google Project Hosting