Phone Gap Tutorial

296 views
Skip to first unread message

Kalim Khan

unread,
Jan 7, 2014, 2:07:45 PM1/7/14
to phon...@googlegroups.com
Hi,
 
I am new to PhoneGap. Can anybody provide any tutorial for starter?
 
If PhoneGap build can help us to prepare the application for all the platform then why do we need native sdks like: Android SDK, Windows SDk, IOS Sdk etc?
 
If we can develop application through code editor using HTML and javasrcipt, Why do we have to install Phone gap?
 
Please help!
 
Thanks!

Loiane Groner

unread,
Jan 7, 2014, 3:18:20 PM1/7/14
to phon...@googlegroups.com
You can find some tutorials at phonegap.com - the documentation is great! I also recommend to subscribe to the blog rss. They post really nice stuff too!

phonegap provides a bridge between your code in javascript to the native code. That is why you need to have the native SDKs installed.
This is the beauty of phonegap: you write code in javascript and behind the scenes it does the heavy work for you and it works with different platforms! :)

phonegap build is a service provided by phonegap that allows you to upload your code and will do the build for each platform automatically for you. But if you want to, you can also do the build manually as well.

Loiane Groner


--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Kalim Khan

unread,
Jan 8, 2014, 1:52:30 AM1/8/14
to phon...@googlegroups.com
HI Loiane,

Why do we need the sdk's for every platform mentioned on this http://docs.phonegap.com/en/edge/guide_platforms_index.md.html?

Why do we have to install Phone Gap? 

As per my understanding we have to just follow the below steps..
- Create HTML and Javascript.
- Zip the file with all the components.
- Deploy and build it to Phone Gap build
- Now it will be ready for every platform.

If we just have to follow the above steps then where we have to use the below sdk's
Why do we need the sdk's for every platform mentioned on this http://docs.phonegap.com/en/edge/guide_platforms_index.md.html?

Why do we have to install Phone Gap? 

Thanks!

WebSteve

unread,
Jan 8, 2014, 10:38:34 AM1/8/14
to phon...@googlegroups.com
1. You only need to download the SDKs for the platforms you are building for, and want to test the code in the platform's device.

2. You need to download PhoneGap software and install it because it contains the code that PhoneGap Build will use to create your files successfully.

Here is how I build my app WITHOUT PhoneGap Build. This will give you an workflow of using PhoneGap with one SDK:
http://iphonedevlog.wordpress.com/2013/12/19/using-phonegap-3-3-cli-on-mac-os-x-mavericks-to-build-ios-projects/

Regards,
Steve Husting

Kalim Khan

unread,
Jan 8, 2014, 1:17:00 PM1/8/14
to phon...@googlegroups.com
Hi Steve,

What is the difference between creating app through phoneGap build and SDK?

How To install Phone Gap? How we can integrate Phone Gap and Javascript and HTML?

If i can develop the app using the phone gap build without any platform specific sdk then why do i need sdk? is this only for testing purpose? Do we have to create different applications for different platform?

I want to build a common app for different environment... please provide some guidence.

Thanks!

Raymond Camden

unread,
Jan 8, 2014, 1:26:54 PM1/8/14
to phon...@googlegroups.com
WebSteve, respectfully I disagree with point 2. You do not need to download PG to use PG Build. Obviously I think it makes sense to have PG installed, and the SDKs too, but you really don't need *anything* but an index.html file zipped up to use PGB (at minimum).

Raymond Camden

unread,
Jan 8, 2014, 1:28:39 PM1/8/14
to phon...@googlegroups.com


On Wednesday, January 8, 2014 12:17:00 PM UTC-6, Kalim Khan wrote:
Hi Steve,

What is the difference between creating app through phoneGap build and SDK?

PGB allows you to skip using the SDKs locally. It is simpler - but will be a bit slower as you need to upload and wait for the service to compile. This wait isn't typically long of course. 
 

How To install Phone Gap? How we can integrate Phone Gap and Javascript and HTML?

You *really* need to go to the docs. This is covered in great detail there. docs.phonegap.com or docs.cordova.io
 

If i can develop the app using the phone gap build without any platform specific sdk then why do i need sdk? is this only for testing purpose? Do we have to create different applications for different platform?

See my earlier replies.
 


Kalim Khan

unread,
Jan 8, 2014, 2:12:59 PM1/8/14
to phon...@googlegroups.com
Hi Raymond,

Thanks for your quick reply.

Using the Phone Gap build we can create app that will be common for all.. so creating one app will work as phone gap build will take care.. am i right?

Using the SDK we will have to create different application targeting the specific platform.. So i will have to create different apps for ios,windows,android. am i right?

How can we create single App for all the platforms using the SDK?

When we  download the Phonegap it only downloads the files without any exe.. How can we install that?

Can you please provide answer to every question?

Thanks!

Raymond Camden

unread,
Jan 8, 2014, 2:17:17 PM1/8/14
to phon...@googlegroups.com
On Wed, Jan 8, 2014 at 1:12 PM, Kalim Khan <mr.kal...@gmail.com> wrote:
Hi Raymond,

Thanks for your quick reply.

Using the Phone Gap build we can create app that will be common for all.. so creating one app will work as phone gap build will take care.. am i right?

Right - with caveats. For example, some platforms, like iOS, require you to create a cert and upload it to PGB.
 

Using the SDK we will have to create different application targeting the specific platform.. So i will have to create different apps for ios,windows,android. am i right?

Um, no. You make one app and can generate apps for multiple platforms. I mean, ok, technically you are right. You are creating multiple different apps - but you are doing it from the phonegap (or cordova) command line so it is pretty easy (once you have the SDKs installed).
 

How can we create single App for all the platforms using the SDK?

I don't understand your question.

Again - I *strongly* urge you to actually read the docs. 
 

When we  download the Phonegap it only downloads the files without any exe.. How can we install that?

What did you download? The download docs I see have you install via npm which adds phonegap as a command line tool.

Can you please provide answer to every question?

I did, but see my request that you need to check the *existing* docs first. I think you haven't done so yet. (If you have, ok then.) 

WebSteve

unread,
Jan 8, 2014, 2:24:27 PM1/8/14
to phon...@googlegroups.com
Thank you for the correction, Raymond!

Kalim Khan

unread,
Jan 8, 2014, 2:36:34 PM1/8/14
to phon...@googlegroups.com
Hi Raymond,

I have downloaded phone gap phonegap-2.9.1 though url http://phonegap.com/install/. Now how can we install this?. from last many day i am trying to get it working but i am confused.

Do you have any url that i can refer to create the App using sdk for every platform? The phone gap site is confusing..

Please help me :(

Thanks!

Caio Melzer

unread,
Jan 8, 2014, 2:37:42 PM1/8/14
to phon...@googlegroups.com
Hi Kalim Khan,

Are u using Mac? Windows?

Regards


2014/1/8 Kalim Khan <mr.kal...@gmail.com>
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Grato
Caio Melzer
http://hi.im/caiomelzer
+55 11 9 8087-2469

Kalim Khan

unread,
Jan 8, 2014, 2:43:30 PM1/8/14
to phon...@googlegroups.com
Hi Caio Melzer,

I am using windows 8.. I want to create mobile app that will run on every platform.

Thanks!

Caio Melzer

unread,
Jan 8, 2014, 2:47:48 PM1/8/14
to phon...@googlegroups.com
Normally I use Mac to develop Phonegap apps.
But if u want to use Windows...You can try to follow this documentation:

WebSteve

unread,
Jan 9, 2014, 10:52:20 AM1/9/14
to phon...@googlegroups.com
This will answer all your questions. You can't understand any answers here without this background:
http://docs.build.phonegap.com/en_US/2.9.0/#googtrans%28en%29

Raymond Camden

unread,
Jan 9, 2014, 10:55:21 AM1/9/14
to phon...@googlegroups.com
Geeze - I haven't seen this (the PGB docs) since they updated - looks pretty sharp.

One small nit - note it is defaulting to 2.9 in the dropdown. If you are building to the latest, you want to change that.


On Thu, Jan 9, 2014 at 9:52 AM, WebSteve <shus...@aeteam.net> wrote:
This will answer all your questions. You can't understand any answers here without this background:
http://docs.build.phonegap.com/en_US/2.9.0/#googtrans%28en%29



--
===========================================================================
Raymond Camden, Adobe Developer Evangelist

Email : raymon...@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster

jcesarmobile

unread,
Jan 9, 2014, 11:07:28 AM1/9/14
to phon...@googlegroups.com
He said he downloaded the 2.9.1, so the doc link is fine.

If you are using 2.9.1 you don't have to install anything, read the getting started guide for each platform you want to use

Raymond Camden

unread,
Jan 9, 2014, 11:13:31 AM1/9/14
to phon...@googlegroups.com
Doh - sorry - missed that!


On Thu, Jan 9, 2014 at 10:07 AM, jcesarmobile <jcesar...@gmail.com> wrote:
He said he downloaded the 2.9.1, so the doc link is fine.

If you are using 2.9.1 you don't have to install anything, read the getting started guide for each platform you want to use




Reply all
Reply to author
Forward
0 new messages