So before I start writing our first useless app i’d like to start with the Android Project in Eclipse.
Remember the last guide of Eclipse? if not start here – linky
Now we will create out project without any activity (screen shot is connected to out next guide with our first application) we will discuss that
Project Name – Straight forward just give it your app name or something that will show up in Eclipse
Build Target – Now this is where you select your minimum android OS version that your application will support, i’m going to go with 1.6 and would not recommend going less then 2.1 as not all devices support 2.2 and up….
Application Name – This is the application name
Package Name – Now if we keep standards here we will use com.inrim.appname where we start with com. then your name or sites name in this case inrim. and then our application name E.G. com.inrim.uselessclock
Un-Check create activity we will get to that some day.
Let’s break it down on what holds what….
So after we create our project this is what we should get in our project’s root directory:
– AndroidManifest.xml, Main XML files that contains details on our application, components, activities, services and more that are going to be used in the application.
– build.xml, a script for compiling the application and installing it on our AVD or Android Device
– default.properties, our property file that is used by our app builder
– src/ folder contains our JAVA source codes
– res/ folder contains our GUI layour, graphics (Icons, Images ETC) and everything will be compiled with out application, please note that you will have three folder for graphics drawable-ldpi, drawable-mdpi, and drawable-hdpi we are not going to use them when we start developing (although it’s something that you will use sometime…)
As we are just starting out in Android development, you can get rid of all three of those directories and create a single drawable directory, putting your image in there.
Now Eclipse does not create all the folders that you might use like
– bin/ contains the application once it is compiled
– libs/ contains third-party Java JARs your application requires
– assets/ contains other files that you want to bundle with your application onto a device
So hold on as we are going to dive in very shortly