Hello World — My First Android App

Smart phones and mobile applications have become trend setters in the market.. Just going with the wave I have started working with mobile applications for various platforms..

I use emacs as the editor. I do not advocate emacs, I just like it.

I installed required SDK.

Once I’m done with the installation I have moved on to create my first android application.

./android create project  
           --package my.first.helloandroid --activity HelloAndroid
           --target 8  --path <path-to-your-project>/HelloAndroid 

Well here I got struck for a couple minutes about --target which is supposed to the list of
targets present.
./android list targets returned me an empty set.

I started my andriod sdk and adv manager and installed available packages.
After they are installed I could see different versions of platforms in my platforms folder
in my /home/<username>/android-sdk-linux_86/platforms

After installing the packages I could successfully create my first Andriod App.

Since I do not use eclipse I have used the above command to generate the project required folders.
We can find the source at HelloAdroid/src

Once done with writing code in the app, I have used
  ant clean
  and
  ant install
 to get the app running.

For the ant commands to work we need the emulator to be running else
it would anyways prompt the message 😉

I shall keep this you posted as I move ahead with this..
Advertisements

, ,

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: