29 January 2015

Creating Phonegap Application

Let us start from the point we ended making our path variables.
We downloaded the phonegap 2.2.0 folder for the website.
phonegap app
Step 1 : Open the phonegap folder inside it go to lib->android->bin and copy the link.
lib android bin

Step 2 : Open Command prompt and go to the copied link by typing the command below . Since I have my phonegap folder on my Desktop my link would be.
cd C:\Users\Surendra\Desktop\phonegap-phonegap-8a3aa47\lib\android\bin
Then press Enter
command prompt

Step 3 : Use create command to create the application. Since I have to create my application with name DemoPhoneGapApp on Desktop my create command will be
create C:\Users\Surendra\Desktop\DemoPhoneGapApp com.example.DemoPhoneGapApp DemoP
Then press Enter
above command
executed command

 Step 4 :
Now you will find a folder on Desktop with name DemoPhoneGapApp. Just enter the Folder to see the structure of your application.
app created folder

Step 5 : Just open adt-bundle eclipse and go to File->Import.
file import

Step 6 : Choose Android->Existing Android Code into Workspace and then click Next.

Step 7 : Click Browse and go to DemoPhoneGapApp folder, then click Finish.
browse project
tick finish

Step 8 : Run you Application .
run app
Stay Tuned with Made In Android

Previous Page Next Page Home