Click here to Skip to main content
15,887,585 members
Everything / Hosted Services / PhoneGap

PhoneGap

PhoneGap

Great Reads

by Mark Lassoff
In this tutorial, we’ll build a hardware-aware application that uses Javascript to work with the device accelerometer.
by Siddharth Chandra
How to use Angular in a Cordova Environment and its impact
by Hugo Carnicelli
In this article, we are going to learn what Apache Cordova is and in which way this tool is now integrated into Visual Studio 2015.
by Arian Celina
How to develop Hybrid Mobile Apps with Phonegap, AngularJS, Bootstrap

Latest Articles

by Siddharth Chandra
How to use Angular in a Cordova Environment and its impact
by Hugo Carnicelli
In this article, we are going to learn what Apache Cordova is and in which way this tool is now integrated into Visual Studio 2015.
by Arian Celina
How to develop Hybrid Mobile Apps with Phonegap, AngularJS, Bootstrap
by Mark Lassoff
In this tutorial, we’ll build a hardware-aware application that uses Javascript to work with the device accelerometer.

All Articles

Sort by Title

PhoneGap 

17 Jul 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
28 Mar 2014 by dhage.prashant01
Hello friends,I have actually working on .NET and got change to work on Android Apps using Phonegap.I was bit confused weather .NET or Phonegap will give me bright future ahead?I know its kiddish question, but I want know from you expertise.Any guidance?Thanks in advance
28 Mar 2014 by Abhinav S
If you are planning to go in for application development, you should go for .Net development.Phonegap is only for the phone.
30 Mar 2014 by thatraja
You question is confusing little bit. You mean Mobile development using .NET? Anyway check this articleChallenges and solutions - Architecture of a Modern Web Application - Mobile App - Part 3[^]
17 May 2016 by hussainasdsd
i created a wcf service in asp.net for phone gap application where i will access those method using ajax in phonegap.. method working on Working Linkbut when i am tring same method locally it giver 405 error:Request URL:http://www.halawiat.com/Services/Service.svc/GetCustomersRequest...
17 May 2016 by Debendra0256
That is CORS related issue .these problem you might face when your WCF service is hosted in one domain and your client in another,There are several tricks are there to fix this issue,as i have worked in WEBAPI there are several document available in net by which i fixed the issue.Please check...
31 Jul 2014 by SatishChandraKV
We have a Phonegap application (HTML5 front UI) running for iOS. This uses a ASP.Net Handler set for the business logic. I am stuck with a wierd issue from past few days. The user is complaining that he gets a "Internal Error 500" when trying to navigate through various screens. Not...
18 May 2013 by Lohith Korupolu
I have a problem with my phonegap project working on blackberry simulator. The version is 10.When I say phonegap, I haven't used any Cordova features yet but my simple javascript functions are not working in the first place.I have a button click which invokes a Javascript function. This...
18 May 2013 by Lohith Korupolu
The solution is to edit the config.xml file of the project - add the tag . Only then, Blackberry allows access permissions to a different domain.
23 Feb 2016 by Member 12346924
In my Phonegap based hybrid app: Ajax calls start failing if my app is inactive for say a couple of minutes. My connection is WiFi & what happens is ajax calls fail with status 0; but navigator.connection.type still shows WiFi. This happens only on iOS not on android.I can also see the WiFi...
25 Oct 2013 by Member 10278629
I'm Developing A windows phone 7 application using Phone gap 2.9.0 versionI just start My App now but The Alert Or Return Confirm Are Not Worked In windows phone emulator.but Same Code Work Fine In all Browser.Below It's my Code.
14 Jan 2014 by Member 8414153
The Visual Studio template of PhoneGap, version 2.9 for Windows Phone 7, did not include feature Notification by default.Here is what I did:1. Open the config.xml2. Add the following 3. Save4. Run your app again
19 Feb 2015 by FaizanMubasher
I am working in Phonegap/Cordova and I need to use menu to go for app settings. But I have came to know that according to [Google/Android docs][1][^], developer shouldn't use that menu button anymore. Instead, developer should use action bar for this purpose. Beginning with Android 3.0...
22 Jun 2016 by Richard MacCutchan
You already posted this question at Android - information leakage flaw outputstream[^]; please do not repost. If you have information to add then edit your original.
31 Jul 2013 by Annamalai09
Hi. How am i supposed to add an android native controls to phonegap app??? Pleae somebody help me in this. I havent got the solution yet.
12 Aug 2013 by Sudhakar Shinde
Please check this [LINK] which describes how to use native UI with Android Phonegap.
23 Jul 2015 by Siddharth Chandra
How to use Angular in a Cordova Environment and its impact
19 Sep 2013 by mekalareddy
dear all,i am new to phonegap how can set different backgrounds for every screen
25 Feb 2015 by rnvenkatkumar
I am developing phonegap ios app which should have calendar that insert, delete and modify even from my app to native calendar so, I used EddyVerbruggen Calendar-PhoneGap-Plugin. The link is https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin The sample I worked isvar...
25 Feb 2015 by Richard MacCutchan
Please do not post the same question in multiple forums.
18 Dec 2015 by elshorbagy
I built an android app with HTML5 and Javascript. I want to enable users to dial numbers but it is not working:01224001111I also added this line to android manifest xml:
18 Dec 2015 by suraj mahajan
just set link to tel:01224001111for example 01224001111
28 Jan 2014 by DeepsMann
Hi,I have created a WP8 application with phonegap. Now i need to create same application for Windows 8. PhoneGap says to create it using Html5/Javascript metro app. There i need to use windows Runtime Component to call C# code. I tried to use WebRequest in a windows Runtime Component class,...
29 Jan 2014 by Ahmed Bensaid
Visual Studio is your friend ;)http://msdn.microsoft.com/en-US/windows/apps/br229519[^]
18 Aug 2015 by Brady Kelly
I need to very quickly get a demo out of a small, simple mobile app. I have decided to use PhoneGap to package it and make it fit, and plain old HTML 5 and Angular to make it work.That scenario is all very well if the app is static, with a local data store, if needed, on the device, but I...
18 Aug 2015 by F-ES Sitecore
Just build a mobile-friendly MVC site that people can use on their mobile. If you really want an "app" you can use phonegap to make an app that uses static html\javascript that communicates with the services provided by your mobile-friendly site. So you'll end up with one back-end site that...
18 Aug 2015 by Afzaal Ahmad Zeeshan
Ah, this is when you come to need a Web API and a client! Since most of your content in the post is mobile-app oriented. This means you want to use the data from your website in the mobile as a native application rather than HTML content being loaded using the old default browser. I think I got...
28 Jan 2014 by Member 10525909
this is code which typed to send from one page to another page ..id is the designed color which was created as background color...
10 Dec 2013 by Tharaka MTR
I have successfully implemented image library PhoneGap app which company users use to view our company published photos. In there I have implemented a feature, when you click an hold on the image then the image will be saved on Camara Roll of the mobile device. For implementing that I used the...
27 Sep 2013 by utkarsh.incarnate
I have Integrate child browser plugin in my Phonegap-Android app .Now i want to clear the previous history of the child browser. Looking for a solution .
30 Dec 2015 by Member 12237207
Hello. I'm trying to connect my app to my node.js server. If I run this anywhere but within a compiled android app, it works fine. Also, if I substitute the ip.address with an myfile.html local reference, it works fine. Am I doing something wrong? Am I able to open an ip address in the url?...
6 Jul 2013 by ravi1989h
How to create text file inside the folder in phonegap IOS and Androidfunction gotFS(fileSystem) { fileSystem.root.getFile("readme.txt", {create: true}, gotFileEntry, fail); } function gotFileEntry(fileEntry) { ...
6 Jul 2013 by Joezer BH
See how-to-create-text-file-and-insert-data-to-that-file-on-android[^]Cheers, Edo
28 May 2014 by Behno0o0oD
Hi every oneI am learning to develop android apps with html and css and javascript with phonegap.the problem is that I could not find the way to debug the app on my nexus7.what is the way to do that?any help would be highly appreciatedtnx in advance
24 Feb 2015 by Prasaad SJ
Hi Guys, I would like to know, is there is anyway we can create Hybrid mobile application in visual studio 2012/2010?. All the search results navigate to VS2013 Update 4 (which is not a free version) or some 3rd party applications like Telerik(which is also not a free version). I have...
1 Apr 2015 by Arian Celina
How to develop Hybrid Mobile Apps with Phonegap, AngularJS, Bootstrap
29 May 2013 by Member 7684075
Hi,I am using Sencha touch 2 and Cordova 1.9.0 JS. Everything is working fine. Now I have a new requirement that is, if user clicks home button from device hard button my mobile apps will get minimize. Again if user clicks my mobile apps its restored exactly where users minimized the page....
8 Feb 2015 by nagendrathecoder
Refer these links:https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=develop%20application%20using%20phonegap[^]https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=document%20to%20pdf%20converter%20using%20phonegap[^]
8 Feb 2015 by Member 11437795
hey guys i want to develop an application using phonegap i am new in coding dont know how to start the work and from where to start if anyone can help pls help me out.....
4 May 2016 by Torakami
Hi , I am using aapche cordova application project that uses sql lite as database But The error which I am getting at the time of creating table is as belows index.js:11 Uncaught TypeError: Cannot read property 'transaction' of undefinedWhat I have tried:var myDB;//Open...
26 Feb 2015 by Member 11484577
Facebook integration is done in PHONEGAP ANDROID, its working fine but the issue is when facebook app is present in android phone my app is opening login page of facebook app and if facebook app is not present when i click on login button in my app it is crashing. Please tell me to solve this...
26 Feb 2015 by CHill60
We don't write code to order.Do some simple research using Google (or your favourite search engine) and you will quickly come across the Phonegap blog[^] on the Facebook integration plugin - complete with readme and example apps.Give it a go, then come back if you hit problems with your code
30 Oct 2013 by RBajania
Hi All,I am a beginner with no previous knowledge of developing mobile apps. Can someone suggest me a good place to learn phonegap.I want to know that what will be the best IDE to write the code ? I have read few articles and I found that someone has Used Angular.Js, someOne is using...
30 Oct 2013 by thatraja
Not much tutorials found in one place but you could find many in random places in web.http://phonegap.com/[^].They're more than bunch of books on Phonegap, Check here[^]. Check their wiki page too. Clickety[^]And watch their blog regularly for more updates....
13 Jul 2013 by ravi1989h
I need to check duplicate item in sqlite before inserting the data in table .I need to check whether it already present or not .I have a create a table. tx.executeSql('CREATE TABLE IF NOT EXISTS CaseTable (id INTEGER PRIMARY KEY AUTOINCREMENT, CaseName TEXT NOT NULL UNIQUE,CaseDate INTEGER...
13 Jul 2013 by ravi1989h
i done it..using unique and insert or ignore keyword
31 Aug 2015 by Aalaa Abo Omar
Hello,I want to learn about PhoneGap framework,kindly please provide me a good and simple tutorial for that.Thanks in advance
1 Sep 2015 by Richard MacCutchan
See https://www.google.com/search?q=PhoneGap+framework[^].
30 Dec 2013 by revathi234
Hi,Actually i created webservices if i will test this webservices it will give WSDL file by using that one i can get the result in client(phonegap)package sss;import java.io.IOException;import java.io.InputStream;import java.net.HttpURLConnection;import...
20 Feb 2015 by mehdin69
hello friendshow can I want to develop a android program that when for example person A call to Person B.width answering by Person B , person A' phone start vibrating or flashing or ringing.thanx
16 Dec 2015 by Sradhanjali Behera
I am newbie to android phone gap.I am doing template slicing like in php project.I have done it for footer but struggling with header slicing.Suggest me.Thank you in advance.
28 Apr 2014 by Member 10703566
hi my problem is .. i have created a phonegape app.. i have a function like day and night mode for users reading purpose ... i want this function to be in default mobile settings ..Is it possible... if so .. please guide me step by step codings...
27 May 2018 by Member 13847032
I want to read all folder name in a directory. Folder name is "DATE WISE LIKE '2018_05_28'". Then i will delete all folder. Only 'this date folder will not delete'. How can i do it?? What I have tried: I am tried to do this job. Please anyone help me. Thanks in advance.
27 May 2018 by User 7429338
You can use a DirectoryReader. There's an example in the PhoneGap documentation: PhoneGap API Documentation - DirectoryReader[^]
2 Jun 2014 by Kaizad Karanjia
hey, i have created a js file and also an xml config file. so now how do i access those file in my application that is how do i write html UI for it..??
9 Aug 2017 by Member 13233111
I have created a phonegap based android application, in which I have called WCF Services and its working, Now I want to move to Native,for which I am using android studio, Please help me how to call those services, or can I use the already created JS file of phonegap project? What I have tried:...
9 Aug 2017 by Kornfeld Eliyahu Peter
As PhoneGap (or maybe Cordova) uses JavaScript, the question is how to call WCF services using JavaScript... for that you can use JQuery's ajax method (of course you have to enable HTTP/S bindings on your WCF and better to use JSON format for return values)... There is a nice sample of all this...
29 Sep 2014 by ChrisTekh
Hi folks! Can anyone help me with a beginner tutorial from his blog that would give me kick start in mobile development using cordova and phonegap. I am completely new.Thanks
30 Sep 2014 by Kornfeld Eliyahu Peter
The answer for this can fill books - you should go to the sites of PhoneGap[^] and/or Cordova[^] and start reading about.Set yourself a goal (some simple app, like Hello World) and try to develop it! If you are familiar with Visual Studio you may be interested in Multi-Device Hybrid Apps...
28 Apr 2014 by Member 10703566
Hello i have created a phonegap app .. i need to test it in blackberry phone.. what kind of file ir supports...i have no idea.. kindly please explainthanks in advance
28 Apr 2014 by Paulo Augusto Kunzel
One link is worth a thousand words: http://docs.phonegap.com/en/3.4.0/guide_platforms_blackberry10_index.md.html#BlackBerry%2010%20Platform%20Guide[^]It will show everything you need to get a project running, the dos and don't.Enjoy your reading!!!regards
4 Jan 2014 by utkarsh.incarnate
i want to build an application in Phonegap for lock and unlock android mobile applications using a fixed password .
14 Aug 2014 by Erick Martín Garcia Vega
i'm trying to integrate sencha touch 2 files ( js, css) at my phonegap app, but i'm having a trouble that says the variable app it's not defined, i'm following this tutorial ( http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/ ), but it seems to be out of date :( , i feel...
28 Sep 2014 by Sunasara Imdadhusen
I am using PhoneGap to develop application for Windows, Android and iOS platform.I have one problem and need expert assistance from you guys.I have created one plugin for Windows Phone. Plugin is basically download images from URL and stored in isolated storage folder inside Downloads...
23 Apr 2015 by Member 11528472
Sunasara, I am doing something similar with the media-capture plugin and got the photo uri (something like this: /CapturedImagesCache/WP_20150424_001.jpg). the plugin creates a folder called CaptureddImagesCache and save the pic in there.Then I simply set my image this way: path =...
23 Apr 2015 by Member 11528472
function recordVideo() { console.log("recordVideo"); // start video capture flagMedia = 'v'; navigator.device.capture.captureVideo(captureSuccess, captureError, { limit: 2 });}function takePicture() { flagMedia = 'p'; console.log("takePicture"); ...
23 Apr 2015 by Sunasara Imdadhusen
Hello,Following are my solution: This solution will works only, when you save your file at mentioned location:I am saving file at ApplicationData.Current.LocalFolder; using server code and displaying at client (browser) side using C# Code// Save a downloaded images to the app’s...
6 Jul 2014 by Dev Sharma
Hi,Iam trying to add watermark on my image.I have using below but iam new to phonegap.Please help me to add watermark on images... Capture Photo ...
6 Jul 2014 by Peter Leow
Refer: Creating-watermarked-images-in-PhoneGap[^]
8 Jul 2013 by ravi1989h
Hican you please tell me how to attach text file in phonegap.I used plugin (email composer ).But now i need to give path of text file .That is my problem.My text file is in this path q3tech$ /Users/q3tech/Library/Application\ Support/iPhone\...
29 Jun 2013 by vishnulalr
I have a helloworld phone gap app it works fine but when i long press on the content it show like browser not like app because it shows search,copy like buttons on my app screen how can i avoid this
30 Jun 2013 by vishnulalr
* { -webkit-touch-callout: none; -webkit-user-select: none; /* Disable selection/copy in UIWebView */}
19 Aug 2014 by Ameer Vikram
how to call Jquery Ajax POST using WCF RESTFull Service from phoneGap or ASP.NET
7 Jan 2015 by Member 10448952
function saveData() { var txtName = $("#txtName").val(); var txtEmailId = $("#txtEmailId").val(); var txtPwd = $("#txtPwd").val(); var txtPhoneNo = $("#txtPhoneNo").val(); $.ajax({ type: "POST", ...
18 Jul 2017 by Member 13233111
I Want to learn about how to capture image on login button click from the front camera of smartphone without knowing user and display the pic on the next page. For development I am currently using PhoneGap. Please help. What I have tried: I have just created a login form with 2 textbox and...
17 Jul 2013 by SanjeevJayaram
When clicking a button it should capture screenshot and save to photo library in phonegap 2.9.0 on ios. Help me with the code.
30 Jul 2015 by dhage.prashant01
Hi Friends, I'm trying to Globalize the mobile application. Currently application supports English and Portuguese language.Problem:When I change the regional settings to Portuguese, the phonegap plugin still displays English text.EQ. When I click photo using camera, it display text...
2 Aug 2015 by dhage.prashant01
I got solution for it.This is not cordova or phonegap releated changes.Since it is iOS project, so I needed to make changes in the '.plist' file of Xcode.CFBundleLocalizations en ptNow above changes makes...
12 Jul 2013 by ravi1989h
need to check duplicate item in my table before insert date .But i am getting error while checking.Here is my code.I need to check whether the element already exist then return false If not then return true.And create a new entry function validationField() { ...
10 Dec 2015 by elshorbagy
Hello, I'm building an android app with HTML5 and Javascript, and I want to add a close button to end my application. I read that I can do by using Phonegap API, I installed phonegap and I cannot find the phonegap.js on my hard drive. Is there another way to end my application? Where can I...
10 Dec 2015 by ridoy
Thats 2 separate questions. First you need to configure PhoneGap properly with your IDE. Check your Downloads folder.. then config with your IDE by checking these documentation properly:Getting started with PhoneGap in Eclipse for Android[^]http://phonegap.com/developer/[^]To exit from...
2 Feb 2014 by Muthube
hi all I am developing a mobile application(phonegap application) in which i have a div, the contents are loaded from database. i want to get copy the contents in the div by long press and make paste in an applications in my mobile like sms email etc.
2 Feb 2014 by ravikhoda
you can use div.innerhtml / div.innerText property based on your need on longpress button event code. use above property to copy inner data of the div.
26 Apr 2016 by Richard MacCutchan
You already posted this question at How to convert android existing project to cordova plugin[^]. 1. Please do not repost. 2. Please do your own research.3. Please explain your problem in better detail.
2 Dec 2014 by prashbari
We want to convert native phonegap code to blackberry. Which tools are required? How to do this?
29 Apr 2014 by Member 10703566
hi i am new to phongap devepolment i am importing books from database, for user-friendly i planned to set text to speech kindly guide me how to do
29 Apr 2014 by Mitchell J.
You'll need to use some JavaScript library, such as meSpeak.js[^], which I found on a quick Google search.Because you are using Phonegap, native-based solutions are going to be very limited.Good luck with your app!
26 Jun 2013 by Ramkumar K
Hi..,I am new to phonegap..Right now i am developing simple android application of my own Interest.what i'm doing here is that, i am storing date of birth of all of my friends manually.The application should alert me Whenever it finds any birthday of my friends....For...
26 Jun 2013 by max_nowak
I know nothing about phonegap, but as for javascript:you can use the JS-FunctionsetTimeout(/javascript function/,milliseconds);It executes the Function you pass after a specified time. For examplevar birthday = /* a value you presumably somehow get from your phonegap framework...
22 May 2013 by ravi1989h
Hello can you please tell me how to get long press event in phone gap ?.I want to get position of x and y coordinate on long press .? in phonegap ?Thanks
22 May 2013 by Niral Soni
$("#myDiv").bind("touchstart...
28 Apr 2014 by Member 10703566
Hi i have succesfully created an app in phonegap .. for android it is working fine ..for other plateforms we only use the assets folder to test .. here i am getting the problemthe books from database is not importing... kindly explain me.. please
6 Jul 2013 by ravi1989h
need to get column value from table .i have one table have Name A.Have column id,a,b I need to get value of a(using ID).How to get ? I used likefunction getName(tx){ alert(ROW_ID); tx.executeSql("SELECT a " + "FROM A " + "WHERE id =" + ROW_ID, [], query_Success,...
23 Jun 2014 by NIKHIL CHAVAN
I am developing phonegap application , in this I have to show the nearby location point (like police station,service centre,petrol pump etc..)on google map using mobile gps parameters(Lat & Lng).I dont know how it can be possible so if solution is there then plz let me know of How to use it in...
7 Jul 2013 by ravi1989h
Hi can you please tell me how to check table name exist in data base or notHi can you please tell me how to check table name exist in data base or in phone gap .I google it find this .function populateDB(tx) { // drop the DEMO table if it exists tx.executeSql('DROP TABLE IF...
7 Jul 2013 by OriginalGriff
Try:tx.executeSql('IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Demo') DROP TABLE Demo');
7 Apr 2013 by Member 7684075
Hi,In sencha selectfield i can get the valuefield value. But i want to get displayfield value. How to get it?And how to get the checbkbox selected state?