Wednesday, February 27, 2013

Running - "Hi Android : My first Android app - 2nd Attempt

The problem related me preventing running the app was due to some missing connection with the device which I intend to run my app on.
There are clear 2 ways of running the App.
  1. On a real device ( a phone or tab or any Android device ) 
  2. Run on Emulator ( virtual device called AVD, Android virtual device , which represent a phone made out of the resources in a computer ).
I try the 2nd option first. 
To do so, I need to create a AVD first in my computer.

This is available in Google android in this link.

Steps.on Eclips , click on AVD menu or, execute it from file menu Window>AVD Manager 
This will open up following dialog.
Then select New , to create a virtual device.

Give the necessary parameters. For example the parameters I ve given here , represent a virtual smartphone of ARM Processor, 512 MB internal memory, WVGA 800 like display.

Now my AVD is ready to run my program.
Click "Start " after selecting the AVD to "Start" the emulator.

There are some additional screen and dpi settings that you can customize here if needed.

Click "Launch"
It takes extremely long time to start and the first time I though it stuck or crashed.

Once it is loaded it looks like this.
Now I m going to run the program I wrote.
This is how it looks when running on Emulator..
In the next post, lets look at how to run the app we wrote in a real phone...

No comments:

Post a Comment