Question:
How to write an android application using eclipse/java?
2011-05-25 07:06:05 UTC
Alright, I wrote a program using Java. it is totally functional and everything.
Now, my next assignment is to use eclipse to make an app of the original program for the android.

What is the exact procedure for just transferring all of my work over completely.
Keep in mind that I did import the following in my original java project.

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

Thanks for the help!!!
Three answers:
2011-05-25 11:21:30 UTC
I hate to be the one to break this to you but this isn't going to be an easy process.



'Java' is a programming language a system of syntax and structures. "Java" as you call it doesn't actually exist as a single programming language by itself. Rather exists as one of several editions:



Java SE - Standard Edition

Java ME - Mobile Edition

Java EE - Enterprise Edition



Among others. These consist of the language itself and an API of classes and utilities [these are what you import].



Android doesn't use any of these. Google developed its own API from scratch when it built Android. It uses the Java language - its syntax and structure but the similarity ends there.



For a start



javax.swing

and

java.awt



Do not exist on Android, you can't use swing or awt at all so your GUI for a start will be right out the window. The only package from the Standard API Android uses for GUI development is java.awt.font but even then it only contains 2 classes. [2]



I suggest you have a glance at the API documentation [1] and see what is actually available and what your program uses.



However for lack of a better analogy you may as well have wrote your app in another programming language altogether for the translation task would be the same weight.
2011-05-25 07:17:54 UTC
Ohh dear. I will recommend you to follow the official android development website. I am sending you the link.



http://developer.android.com/index.html



Dev Guide for example contains a nice collection of tutorials. It even guides you how to install Eclipse and Android Plugin etc. I hope it helps
Farhan
2014-06-08 03:12:33 UTC
If you are looking for a company who can make good apps for me for Android and iPhone or iPad

and if you do not want to go to many companies go to http://www.appxone.com


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...