• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert code written with Netbeans for JME to Adroid VM compatible code

 
Marcel Wentink
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please forgive me may I ask a question I already posted in the JME forum, but never got answered:

Would it be easy to convert code written with Netbeans for JME to Adroid VM compatible code?

I am trying to make the code independant, seperate the GUI from the Flow and Business Logic, and I think or hope that:

Netbeans would make me design the mobile project, independant of the later implementation
Netbeans GUI code, Flow code, and Business logic code would be seperated if you do your best on it.
Netbeans nor Android would use (much) Java libs that are vendor/brand specific
Later if necesarry I can use the Design, and the Flow and the Business Logic java code of the JME project in Android java code.

The problem is, the micro device I am programming too, is not built yet, hence I am trying to make a design and code that would be as independant of the latter hardware implementation as possible.

Please feel free to move this to the IDE spot, I am doubting a little to post it here Java Micro Edition, or there.

I think I am on the right track here, but any comments and second thoughts and opinions would be very much appreciated. Thanks in advance.

M. Wentink



It's actually also very much dependant on which specific libs and code Netbeans uses, so it's only partly a Android question..
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just because of how different the apis are between J2ME and Android, I highly doubt it. Now if you have POJOs for the logic of the code, not the GUI, I am sure you could just re-use it. If that type of code is in your Midlet, then you will be responsible for pulling out what you want from there. But there is most likely no tool out there that will do your work for you.

Mark
 
Fred Grott
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also the lifecycle is different between the J2me midlet way of dong things and Android.
 
Marcel Wentink
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the information
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic