Well, depends on your application. Basically you can have general
classes which don't use specific API calls. For example XMLparsers or
some calculation/algoryth functions.

The UI elements need completely be rewritten if you're porting it to
android. Maybe even some underlying things too (like exchanging of
data between activities). The security model will also need to be
rewritten. Well its quite a lot.

You should try to make the core functions of your application
independed from J2ME/Android API calls

On Feb 26, 1:56 pm, ThemePark <theoriginalthemep...@gmail.com> wrote:
> Say I want to build an application that will run on as many Java
> supported mobile phones as possible, and I would for example use Java
> ME to program this. If I then want to port my code to Android, or
> JavaFX ME, or other Java languages, would I then have to completely
> rewrite my code for all of those languages, or would it be possible to
> make some generic Java code, and make wrappers for each language, so I
> can run it on those mobile phones?
>
> I am not sure of just how much different those languages are from each
> other, hence my question. The application I have in mind, is not
> really complex, and it doesn't really require any GUI, it does require
> access to the internet, specifically a server I plan on setting up,
> for the application to communicate with.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to