Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

How can I convert Java code in Android Java code?

 
Greenhorn
Posts: 7
2
Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guys I'm newbie... very newbie, so newbie and dumb that I coded a whole program in Java to discover, once the project was complete, that it cannot run on Android OS.

Do you guys know if exists a converter, or a way to convert it without recode it from scratch?

Thanks in advance for your support.  
 
Rancher
Posts: 4739
38
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

a way to convert it  


Much java code can be copied into an Android program.  However the framework and GUI needs to be completely rewritten for the Android environment.
 
Saloon Keeper
Posts: 7314
170
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Android programming model, to say nothing of the actual API, is very different from desktop Java. While it uses the same language and syntax, the way of creating apps is very different. For example, the AWT, Swing and JavaFX GUI toolkits of desktop Java are missing entirely, as are many other Java SE packages. See https://developer.android.com/reference/packages.html for what's available on Android, and then head over to https://developer.android.com/develop/index.html to learn about the Android programming model.
 
Davide Prampolini
Greenhorn
Posts: 7
2
Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Norm Radder wrote:
Much java code can be copied into an Android program.  However the framework and GUI needs to be completely rewritten for the Android environment.



My program is 90% GUI and framework...

Thanks for your support guys, it seems I'll have to rework it.
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic