Well, where do you start, there are so many APIs, classes and methods in J2SE (thousands - i.e. its a 'platform' not just a language; just as Android is a 'platform' not a language). The comparisons aren't always that direct but here's a few similarities I've thought about or run up against that may be useful to you to get started in a direct conversion, dependent of course on what you use in J2SE:
* An Android 'Activity' has methods such as onCreate(), onRestart(), onResume(), onPause(), onStop() and onDestroy(), so it could be compared with an Applet/JApplet at some level (and less favorably with Frame/JFrame). * An Android 'View' sits about where an awt 'Component' or a Swing 'JComponent' sits - they each have widgets/components built upon them. * The interface 'implements OnClickListener' can often be used where you had 'implements ActionListener' (and hence the 'onClick()' method replaces 'actionPerformed()' ) * Touch replaces the MouseListener. * onDraw() is like paintComponent() - called when needed. * ViewGroups are Layout Managers. * The android.os.CountDownTimer functions somewhat like a javax.swing.Timer * etc, etc. Good luck with your conversion, Steve On Oct 4, 9:15 pm, Jason <jason4...@paran.com> wrote: > Hello. > > I'm trying to run J2SE JAVA Application on Android. > > As you know, the main problem is that J2SE classes such as awt, > applet, and etc are not supported in Android. > Consequently, this means that I should replace those many java classes > with Android classes. > > So, Do you have some idea or information for replacing J2SE classes > with Android classes? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---