If you are building Android applications using CEDET, there are several features that can help with this task.
First, you need to download the android SDK. You can get that from http://developer.android.com/sdk/index.html. Make sure all the tools the android sdk needs has been installed.
The Android SDK has a command called
android which is used to
do several things, one of which is to create a template project
directory hierarcy. In order for Emacs to detect your SDK and find
android, you may need to configure the CEDET android support.
You can then create a project from Emacs:
Create an android project with NAME. Your activity class will be created in the java PACKAGE. You need to specify a TARGET, which is a number specifying the desired type of package you intend to build. Create the project in optional DIR, or in the default directory if not specified. NAME will be used as the name of the project.
It may be better, however, to let EDE do it for you instead by calling
ede-new. For example:
C-x C-f ~/subdir/newprojectdir RET ; go to an empty directory M-x ede-new RET ; Create the project. Answer questions like name, etc.
EDE will automatically detect android projects created with the AndroidManifest.xml file. The first time you visit a project, it is good to visit AndroidManifest.xml to make sure EDE will detect your project. Sometimes it can fail to detect your project if you visit a sub-directory of your project first.
EDE provides the following conveniences for android projects:
There are other items in the menu as well, such as calling layoutopt to debug your layout files or starting the ADB shell.
EDE supports different build configurations through the standard EDE
configuration mode. In the Project->Project Options menu, select
“Default Configuration” and select one of the options. These
options map directly to the command line arguments of ant, so if you
select “debug”, then the compile command will be:
CEDET supports several calls to ADB, including the following:
CEDET supports a handy way to find sample programs from the SDK.
You can create macros for use with android. Add the :android argument to your templates to get some android specific features.