Click here to Skip to main content
15,867,453 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 Score

PhoneGap 

3 Sep 2013 by Mark Lassoff
In this tutorial, we’ll build a hardware-aware application that uses Javascript to work with the device accelerometer.
23 Jul 2015 by Siddharth Chandra
How to use Angular in a Cordova Environment and its impact
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,...
10 May 2013 by Prasad CM
Try by removing double quote "vehicleId" as vehicleId[ { vehicleId: "1", status: "Running", position: "x", battery: "25", distanceTravelled: "123", destination: "y", freeSeats: "2", speed: "32" }]
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.
22 May 2013 by Prasad Khandekar
Hello Ravi,The current version does not pass this information for longpress event. So you probably have to modify the source code of the library. Although not tested by me, the below code snippet shows the possible change required in case statementcase 'longpress': data.startPoint =...
6 Jul 2013 by Joezer BH
See how-to-create-text-file-and-insert-data-to-that-file-on-android[^]Cheers, Edo
7 Aug 2013 by Annamalai09
Hi friends, I surfed internet to find the solution to make phonegap android app run in background even the app is not opened. I found some solutions and also github links. But those are not clear enough to explain me how to write java and js file for a background service based on my...
7 Aug 2013 by ridoy
According to the Phonegap documentation you cannot run the apps in the background, you need to create a plugin for...
26 May 2014 by Peter Leow
Learn and adapt from the following example:Click to get next imageGet Imagefunction getNextImage() {// get the old image sourcevar...
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[^]
31 Mar 2015 by Avinash6474
Hi All,I had created an application using phonegap. I had added geolocation plugin in application cordova plugin add org.apache.cordova.geolocationI can able to see the plug in added in project. Now I have created a location.html page in which I am using geolocation plugin...
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...
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...
24 Jan 2016 by ridoy
You can find your answer Here:android - How to create toast in phonegap? - Stack Overflow[^]Or,can use this awesome library from Github:EddyVerbruggen/Toast-PhoneGap-Plugin - C++ - GitHub[^]
25 Jan 2016 by Stephen Hewison
You need to implement a custom URL scheme.You'd then embed a link with a scheme which is unique to your app such as:myappname://information/to/be/passed/backWhen your application installs the manifest tells the operating system which URL schemes your application wants to accept. The...
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.
6 Jul 2016 by _Kapil
Hey all,I am working on push notification for window app in phone gap.I not able to update navigator URI when receive push notification.Means when when i receive push notification i want to move to some particular form where i have to show all notification access from database in...
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...
7 Apr 2013 by Member 7684075
Hi,I am using Sencha Touch2. Here I have created the following store,Ext.define( 'myproject.store.ServiceCategory', { extend: 'Ext.data.Store', //requires:['myproject.model.ServiceCategory'], alias: 'store.ServiceCategory', // config: // { model:...
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?
6 Apr 2013 by aquant
Hi all,Is there a good/simple free or not JS filepicker which can be easly applied in a JavaScript's app for Android.
8 Apr 2013 by Member 7684075
Hi,I am using Sencha touch 2. I have created the global variable. In selectfield change event I want to assign the value to this global variable and I want reload the store. If I put alert that gloable variable is getting value. But when call store global variable value is not assigned. What...
9 Apr 2013 by Member 7684075
Hi,I have create the application using Sencha. This is just login and logout only. Login and logout functionality i am calling web service. I want move my all application related files (its 1.1MB size) to mobile by clicking the download link. How to acheive this?For example, If we...
10 May 2013 by fatihkok
Hello, I'm having problems while getting JSPN from PHP, shown below:[{ "vehicleId": "1", "status": "Running", "position": "x", "battery": "25", "distanceTravelled": "123", "destination": "y", "freeSeats": "2", "speed":...
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...
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...
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....
4 Jul 2013 by ravi1989h
Hii am doing socket programming But getting error in response .i am using this like to do socket programminghttp://anismiles.wordpress.com/2011/02/03/websocket-support-in-android%E2%80%99s-phonegap-apps/[^] But when i debug my program i am getting all data in my .java file in that...
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...
28 Jun 2013 by manueferns
Showing camera view inside html in androiShowing camera view inside html in android and then snap a pictured and then snap a picture
28 Jun 2013 by Prasad Khandekar
Hello,You can find a full working example at PhoneGap Camera API Guide[^] Or Capturing camera/picture data without PhoneGap[^].Regards,
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 */}
2 Jul 2013 by utkarsh.incarnate
I need to be able to select a video from the library and upload it to my server.I can record a new video (captureVideo) and upload it (filetransfer)no problem, but I can´t seem to find any way to open the videolibrary and select a video and then upload it.Is there any way to do this?...
3 Jul 2013 by ravi1989h
Hi I need real time data from server .I am running the server in my computer. using this command D:>cd casePadD:\casePad>cd NewExcCasePadD:\casePad\NewExcCasePad>LexSrvPC.exe /Demo:"LexSrvPC.raw"D:\casePad\NewExcCasePad> i need to parse this data using phonegap + android.Here...
4 Jul 2013 by Het Upadhyay
I am new to phonegap, so please help me.i am using Pyo25 plugin to send sms in phonegap android but i got undefine method send error. i hv followed all steps though i got an error.i am using cordova 2.7this is my codevar smsSendingPlugin =...
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,...
6 Jul 2013 by ravi1989h
Hii am getting error tx.executeSql('CREATE TABLE IF NOT EXISTS '+CASENAME'+(id INTEGER PRIMARY KEY AUTOINCREMENT, DocumentName TEXT NOT NULL,DocumentDate INTEGER ,DocumentNotes TEXT NOT NULL)');Error: Unexpected string
6 Jul 2013 by OriginalGriff
To expand on ThePhantomUpvoter's comment - which answers the question - but mostly to remove this from the unanswered list:Change:x.executeSql('CREATE TABLE IF NOT EXISTS '+CASENAME'+(id INTEGER PRIMARY KEY AUTOINCREMENT, DocumentName TEXT NOT NULL,DocumentDate INTEGER ,DocumentNotes TEXT...
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) { ...
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');
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\...
10 Jul 2013 by Annamalai09
Hi, I am new to PhoneGap. I want to access Sql Server Database from android phonegap app. Can anyone tell me how to do this.? Please.Regards,Annamalai
11 Jul 2013 by SanjeevJayaram
i have this below json data in a url[{'id':'1','name':'Andre','location':'Seattle','phone':'123.456.7890'},{'id':'2','name':'Will','location':'Portland','phone':'911.122.0000'}]how to display the id,name,location,phone in table for phonegap ios.Please help me with the...
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() { ...
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.
16 Jul 2013 by Srinivas Kalabarigi
Yes, you needs to use web services, as far as i know.
30 Jul 2013 by Annamalai09
I am developing android app using phonegap. the problem i am facing is, the app doesnt look the same in various screen resolution. I tried px and % but its all in vain. Can anybody tell me how can i design an app which looks alike in all screen resolutions..????
1 Aug 2013 by Deviprasad Das
Try using the following piece of code:$(document).ready(function(){ $(document).bind('deviceready', function(){ //Phonegap ready onDeviceReady(); });var output1 = $('#ullist'); function onDeviceReady() { $.ajax({ ...
2 Aug 2013 by Ashutosh Mahto
Please try the following code inside success function- $.each(data, function(i,item) { //create the li element var $landmark = $('').text(item.name); //bind the click event to li, since its being created at runtime $landmark.bind('click', function(){ //get the...
6 Aug 2013 by garav kumar mishra
I want to set alarm using phonegap. Can i do this how
7 Aug 2013 by Sudhakar Shinde
Please check [Android Local Notification Plugin] with an example.ANother link [with Code] to set alarm using phonegap.
8 Aug 2013 by garav kumar mishra
i had made use of http://tech.cibul.net/using-the-android-localnotification-plugin-for-phonegap/[^]to set reminder i can set mutiple alarm.But i have have problem to use this with database .any help ??
24 Aug 2013 by Avinash6474
I am trying to install PhoneGap on Mac, but I'm getting the following error: sudo npm install -g phonegapnpm http GET https://registry.npmjs.org/phonegapnpm http 304 https://registry.npmjs.org/phonegapnpm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/phonegap'npm ERR! {...
9 Sep 2013 by ibrahimCA
I have the code belowGetListTourneeByPersonnelIDFromServer();window.location = './Calendrier.html';When I execute this code there is, the redirection to the Calendar page cancels the execution of the GetListTourneeByPersonnelIDFromServer function, and since I can not use the term...
17 Sep 2013 by Annamalai09
Hi. Again. I am with the solution for my own question. As nobody tried to answer this question. I am giving solution. Javascript and java create database in different locations so we can not access DB created in Javascript in java or viceversa. So, there is a phonegap plugin named...
26 Sep 2013 by garav kumar mishra
i want to display html using phonegap .Problem is that my html works fine in chrome browser but not in chromium.When i use super.loadUrl() it uses chromium browser to display content , i want to force it to use chrome
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 .
24 Oct 2013 by Member 9374164
You could exam this demo...(see second preview image)https://play.google.com/store/apps/details?id=org.mospi.ageteApiDemo[^]This is a kind of hybrid framework like Phonegap....
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.
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....
20 Nov 2013 by mangalord
I want something simple in jaydata. I want to run a query and return true or false. For examplevar existingPatients = Database.Test.filter("Id", "==", 5);and then if it returns true i want to update the specific patient of add...
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...
14 Dec 2013 by Sampath Lokuge
The way you used jsonp is wrong.Please check below mentioned link for more info.$('document').ready(function() { var pm_url = 'http://twitter.com/status'; pm_url += '/user_timeline/stephenfry.json'; pm_url += '?count=10&callback=photos'; $.ajax({ url: pm_url, ...
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...
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 .
3 Jan 2014 by Annamalai09
hi, i want to catch the keypad show and hide event in android phonegap. I have tried by adding event listener to "showkeyboard" and "hidekeyboard" events but the events are not fired. can anyone give another solution for this problem.??document.addEventListener("deviceready", onDeviceReady,...
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
16 Jan 2014 by Member 10525909
want to know to check in mobile device like iphone, ipad or android or windows 8 ...
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...
29 Jan 2014 by Ahmed Bensaid
Visual Studio is your friend ;)http://msdn.microsoft.com/en-US/windows/apps/br229519[^]
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.
13 Feb 2014 by Achee06
I am encountering this error. Upload failedYou need to use a different package name because "com.phonegap.www" already exists in Google Play.I already followed some suggestions in the internet which is all the same and here is a sample...
6 Mar 2014 by Member 9952554
Hi All, Can some one tel me what exactly phone gap is? Things which i know that with help of phonegap we can make cross platform native app. How we can use phone gap? Can we use phone gap with visual studio? Can some one give me simple working example of phone gap?...
6 Mar 2014 by Peter Leow
You should visit http://phonegap.com/[^] to find out the answers yourself.In addition, PhoneGap with Visual Studio[^]
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[^]
21 Apr 2014 by Osmosys Email
HI , i developing a android app using backbon.js and need to kept user details in sessions or local storage , i am using the following code to save the data in localstoragewindow.localStorage.setItem("ICName", data.ICName); window.localStorage.setItem("ICID",...
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
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
28 Apr 2014 by Member 10703566
hi i doing a function under play/pause using href .. my problm is when i press play it plays.. even if i again press the same button it pauses..problm was when i click back button it not pausing.. it plays continuously .. may i know why... kindly explain me with code.....thanks in...
28 Apr 2014 by Member 10703566
Hi when i put my phonegap app in phonegap build.com .. i am getting only for android apk and windows xap file...for blackberry it shows current version is not supporting... so rectify this what chages i need to do.. thanks in advance
28 Apr 2014 by vyas_pratik20
hi you can add listener to back button and write code to handle back button event ex:document.addEventListener("backbutton", function(e){ write code here to handle back button}, false); This is phonegap device API so add cordova/phonegap JS and add this code under device on...
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!
14 May 2014 by senthilkumarpsk
Hi allPlease look at my code here. function itmerStart(){ if (timerId) return timerId = setInterval(loadMessageListCron, 20000); function loadMessageListCron() { var userid = window.localStorage.getItem("userId"); if(userid !=...