cordova

no device ready and no console.log with xcode using cordova 1.5

好久不见. 提交于 2020-01-11 06:22:27
问题 This is all the code I have and I do not get neither the logs in xcode nor the deviceReady event (which I don't get on any other platform either. On Ubuntu+Android+Eclipse I do get the console logs, but no deviceReady. nor in chrome ) The js/cordova-1.5.0.js exists and being loaded as indicates an alert statement i've put in there. Any clues where should I look ? Thanks in advance ;) <div id="d"></div> <script> function foo() {console.log('test'); document.getElementById('d').innerHTML +=

Phonegap : Camera view with background image

久未见 提交于 2020-01-11 06:10:51
问题 I am using Phonegap with Sencha Touch to get camera functionality. But instead of the default camera view, I want a picture with transparent background to be overlaid upon the live camera view. Similar to below example where a dinosaur image has been overlaid upon the camera view image. Can you tell me whether this feature can be achieved with Phonegap or in any other way? 回答1: It can be achieved but it requires a bit of native code and a simple trick. You need to set the phonegap container

Phonegap : Camera view with background image

淺唱寂寞╮ 提交于 2020-01-11 06:10:49
问题 I am using Phonegap with Sencha Touch to get camera functionality. But instead of the default camera view, I want a picture with transparent background to be overlaid upon the live camera view. Similar to below example where a dinosaur image has been overlaid upon the camera view image. Can you tell me whether this feature can be achieved with Phonegap or in any other way? 回答1: It can be achieved but it requires a bit of native code and a simple trick. You need to set the phonegap container

Does Phonegap support WebRTC?

…衆ロ難τιáo~ 提交于 2020-01-11 05:48:09
问题 I want to build an augmented reality app. I was thinking of using something like the Wikitude SDK here http://www.wikitude.com/developer or using this javascript library https://github.com/mtschirs/js-objectdetect js-objectdetect which I would prefer however, it relies on webRTC support which of course is fine using a modern browser but I'm not quite sure if PhoneGap also supports it. In addition, if anyone knows how I can superimpose my 3d models over an object, that'd be great. I don't know

Using PhoneGap, How to get base64 image data of the photo chosen from photo library in iPhone

房东的猫 提交于 2020-01-11 05:06:20
问题 Using PhoneGap(Cordova), Am trying to get base64 image data of the photo chosen from the photo library. I could do that.. when the photo is captured from camera, With the below snippet of code in Cordova. navigator.camera.getPicture(onSuccess, onFail, { quality: 50, destinationType: Camera.DestinationType.DATA_URL }); function onSuccess(imageData) { var image = document.getElementById('myImage'); image.src = "data:image/jpeg;base64," + imageData; } function onFail(message) { alert('Failed

What is the Difference between Apache Cordova and PhoneGap?

血红的双手。 提交于 2020-01-11 05:05:51
问题 Hi I need to develop a simple application which is hybrid which runs in kitkat version of android. Since it is possible with PhoneGap 3.3 I have been trying to install it. But I am really confused a lot with the installation procedure. First I installed nodejs in my windows 7 32 bit system. Then I ran the commands from the phonegap website. This is the link http://phonegap.com/install/ I was able to create a project. But I am facing an error and not able to start the emulator.(I set the

What is the Difference between Apache Cordova and PhoneGap?

你。 提交于 2020-01-11 05:05:07
问题 Hi I need to develop a simple application which is hybrid which runs in kitkat version of android. Since it is possible with PhoneGap 3.3 I have been trying to install it. But I am really confused a lot with the installation procedure. First I installed nodejs in my windows 7 32 bit system. Then I ran the commands from the phonegap website. This is the link http://phonegap.com/install/ I was able to create a project. But I am facing an error and not able to start the emulator.(I set the

Hide Status Bar in Android with Phonegap Build

Deadly 提交于 2020-01-11 03:48:13
问题 I have enabled fullscreen in the config.xml file but when the keyboard appears ,status bar is shown also and stays there unless i tap on it.There is a way to avoid this in Ios but i haven't find anything for android.At least can i tap the status bar programmaticaly with jquery? 回答1: You can try setting <preference name="Fullscreen" value="true" /> in the config.xml 回答2: I had this same issue and what fixed this for me was adding this line to the config.xml file: <preference name=

Allowing ics to open in phonegap app for iOS

陌路散爱 提交于 2020-01-11 03:18:06
问题 So I've used this code from here slightly augmented to work on iOS to create an ics file on the fly. msgData1 = $('.start-time').text(); msgData2 = $('.end-time').text(); msgData3 = $('.Location').text(); var icsMSG = "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Our Company//NONSGML v1.0//EN\nBEGIN:VEVENT\nUID:me@google.com\nDTSTAMP:20120315T170000Z\nATTENDEE;CN=My Self ;RSVP=TRUE:MAILTO:me@gmail.com\nORGANIZER;CN=Me:MAILTO::me@gmail.com\nDTSTART:" + msgData1 +"\nDTEND:" + msgData2 +"\nLOCATION:"

How do I access HTML5 local storage created by PhoneGap on iOS?

房东的猫 提交于 2020-01-11 03:09:27
问题 We are transitioning away from PhoneGap to a truly native iPhone app and we need to access user data stored in HTML5 local storage created by PhoneGap. How do we get at that data so that we can create a seamless update process for the user? 回答1: I haven't tried Mattias' way but I just accessed the webkit local storage database directly and then imported the sqlite3 lib included with the iPhone SDK to extract the values I needed. This is how you access localstorage created by PhoneGap: