• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the information
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic