You have to create an android application to develop applications in android. Don't think java applications can be run directly in android emulator. AndroidManifest.xml file is required for all android projects and automatically created while creating a new android application using plugin in eclipse.
Jesmiatka wrote:You do know that Androids applications are runned by activities and services? I do not think your 1 million line Java application includes activities.
If you have a well written Java app you should only have to port your controller and view part of your code so it fits on Android. Which means your model (domain) still would be in tact and should be able to remain unchanged.
the manifest declares a package which the R class will be generated in.
You define this in the outer tag of the manifest.
Example given below
a complete manifest with only 1 activity (Start.java) should look something like the following:
Adding an additional activity can be done by the tool or by adding the following line:
(Activity class is Login.java and is placed in the package defined in the beginning of the XML)
Hope this will help you a little bit!
the following XML is used for selecting the activity that will be launched when you start up the application, so it's only needed in 1 activity.
You are only gonna define the classes that extend from Activity in the manifest.xml. These classes (most of the time) have interaction with the phone UI.
Go and check out http://code.google.com/android/devel/bb ... ifest.html if you want more information about the manifest.
Jesmiatka wrote:Just instantiate it in an activity?
I have no idea what your java application does. If it only passes around Strings, ints, objects then it can be easily done this way (can't it?). If your Java app handles some other type of UI things which are not Android based it will give you errors for sure.
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 2 guests