cordova-3

Developing with Eclipse and Phonegap/Cordova 3

拜拜、爱过 提交于 2019-12-18 10:26:12
问题 It seem the documentation is a bit thin and I assure you I have tried to find this online, but I really don't get how the development process is supposed to work with phonegap and eclipse. I followed one of the many tutorials and created the Hello World example using the the cordova command line. I then added the android platform and ran the build. After that, I added the andoridy bit as a project in eclipse with respect to existing source as instructed using the subdirectory platforms

.gitignore for PhoneGap/Cordova 3.0 projects - what should I commit?

*爱你&永不变心* 提交于 2019-12-17 15:06:05
问题 I just tried to create a new phonegap 3.0 project... Note: I'm new to phonegap. Anyways, I see the project folder contains: .cordova merges platforms plugins www And having tried phonegap local run android I see a lot of binary/generated files in platforms/android . This leaves me wondering, what parts of this folder structure should I add to my git repository. Normally, I would consider it extremely poor practice to commit binary files. Hence, I would normally add patterns like bin/ , obj/ ,

Add entry to iOS .plist file via Cordova config.xml

限于喜欢 提交于 2019-12-17 06:25:15
问题 I am new to the Cordova CLI. I need to perform the following steps programmatically via Cordova. In the project .plist add a new row Enter the following values in the new row: Key : GDLibraryMode Type :String (default) Value :GDEnterpriseSimulation I think I need to do this in the config.xml file in my project's root (or maybe the one in the "platforms" folder). Can someone explain to me how to add the entry via the config.xml so that the above entry is added at compile-time? I am using

How do I run a function cordova if the command embedded in external sites?

两盒软妹~` 提交于 2019-12-14 03:21:54
问题 I want to run a function to open the link in the android browser system. Here is an illustration of my questions. See the illustration What should I do? I only use javascript not java. Please help 回答1: Some time ago I encountered the same problem. To do this I modified the InAppBrowser source code. you should override the shouldOverrideUrlLoading method in the InAppBrowserClient class found in InAppBrowser.java This will allow you to hook in to the request before the url is being loaded and

How to get current url in InnApp browser in Phonegap 3.0

最后都变了- 提交于 2019-12-13 21:44:13
问题 Hi i cannot able to retrieve current url of inapp browser while click close button (OR at any time after loading some url) , my code given bellow var ref = window.open('http://google.com', '_blank', 'hidden=yes'); ref.show(); ref.addEventListener('exit', function(event) { alert(JSON.stringify(event)); // no data related to URL }); ref.addEventListener('loadstop', function(){ alert(window.location.href); // always get local address ie File:/// .... }); please help me. i fount This S O question

Falling back on PROMPT mode since _cordovaNative is missing. Expected for Android 3.2 and lower only.

感情迁移 提交于 2019-12-13 17:09:45
问题 I have the following problem : When I click on the marker of my map (using google maps v3 ) I get this error: "Falling back on PROMPT mode since _cordovaNative is missing. Expected for Android 3.2 and lower only." How can I fix? use cordova 3.0.0 and chrome in unsafe mode thank you very much 回答1: If your testing in your browser remove reference to the cordova.js file. i.e remove <script src="cordova.js"></script> file from your index.html file. Add this only when testing your app on the

Cordova geolocation not working on Android

大城市里の小女人 提交于 2019-12-13 15:54:28
问题 I want to use geolocation on Android. I write app in Apache Cordova. Geolocation do not work both on andoid pc emulator and andoid phone. I try http://cordova.apache.org/docs/en/2.4.0/cordova_geolocation_geolocation.md.html#geolocation.getCurrentPosition_full_example and http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation My platforms/android/AndroidManifest.xml: <?xml version='1.0' encoding='utf-8'?> <manifest android:hardwareAccelerated="true" android:versionCode="1"

Remove White Flicker after splashscreen phonegap 3.3

北城以北 提交于 2019-12-13 12:05:39
问题 How is it possible to create an app, add the splashscreen plugin, the splashscreen should disappear when the device is ready and no WHITE FLICKER to appear?? This happends on Adobe build and also on cli build on android plaform! These are the simple steps I used over and over again for about a week to figure this thing out: I created an app: phonegap create app I added the plugin: phonegap local plugin add org.apache.cordova.splashscreen I added this to the config.xml file from www folder:

Uncaught ReferenceError: ContactFindOptions is not defined

怎甘沉沦 提交于 2019-12-13 05:27:48
问题 I have a problem with cordova/phonegap contacts. This is the code i am trying to execute, i put in an external javascript file: function onDeviceReady() { // find all contacts var options = new ContactFindOptions(); options.filter = "*"; var fields = ["displayName", "name"]; navigator.contacts.find(fields, onSuccess, onError, options); } // onSuccess: Get a snapshot of the current contacts function onSuccess(contacts) { for (var i = 0; i < contacts.length; i++) { console.log("Display Name = "

input not working in phonegap app

女生的网名这么多〃 提交于 2019-12-13 05:19:45
问题 I'm creating a Cordova PhoneGap app and have trouble with the input fields. I'm using iScroll for scroll and refresh. Suddenly my input fields aren't responding. So users can't even login when they start the app. I use standard fields and i can't give the input fields focus. Not even with a wrapper where I set "[input].focus()". The html code is <input class="newinput" onclick="this.focus();" type="email" id="email" name="email" value="" autocorrect="off" autocapitalize="off" required=""