03 - Develop Your First Phonegap Android Application: Page 3 of 3

Now we can run our application. Right click the name of our project in the Package Explorer and go to Run As → Android Application. This will open a window like this:

          

Click the Launch a new Android Virtual Device option and select the AndroidPhone (the virtual device you just created) and click the OK button. Your virtual device will be loaded. It will take a few minutes mainly depending on the capacity of your computer. However, it will open an emulator like this:

          

If you are familiar with an Android phone, you might probably know how to proceed. After a few seconds (as this is not a real device), you will get this screen to choose your apps.

          

Click the second icon to select the app. Now, making us happy, our application is also listed among other applications like this:

          

Double click the name of our application, the first one in the list, to see the output.

          

Summary

Yes!!! We have created our first Android mobile app using PhoneGap. You might be feeling that we have gone through a lot of steps to accomplish this. But as we proceed, you will become more comfortable in creating mobile apps using PhoneGap.

 

Like us on Facebook