Thread: MicroEmulator
View Single Post
Posts: 19 | Thanked: 28 times | Joined on Feb 2010
#8
Originally Posted by Wonko View Post
I see, though I only had a short look at the code.
So the SWT UI target provides native SWT controls for J2ME applications (i.e. not only native controls for the MicroEmulator itself but also for the J2ME applications run inside the emulator), right?
This could be an interesting project.
Current SWT UI target didn't provide native controls translation from MIDP to SWT. All the MIDP controls are rendered inside the Canvas.

Originally Posted by Wonko View Post
What do you think would be more practical
- to adapt the old code,
- or to start over from scratch?

Of course it would be a good idea to take the old code as some starting point. It's just I don't know how much has changed during the past two years and how well the old SWT UI code integrates into the current MicroEmulator version, if at all.
I think better option would be start from scratch, but reuse the existing Android device layer as a starting point which is well written and actively maintained. I'm sure a lot of existing SWT UI target code can be reused too (like a javax.microedition.Graphics implementation). Additional benefit of using this strategy is that Android porting framework supports native translation of MIDP controls to the native target UI library components.