cordova-2.0.0

“backbutton” event won't fire

孤街浪徒 提交于 2019-12-23 10:27:01
问题 I am attempting to build a phonegap app for Windows Phone 7. I am trying to follow the documentation for the "backbutton" event (http://docs.phonegap.com/en/2.0.0/cordova_events_events.md.html#backbutton), but I can't seem to get it to work. The "deviceready" event fires, but the "backbutton" event does not. When compiling and running in Visual Studio Windows Phone emulator the onDeviceReady function is called and "Device ready" is logged, but when the emulator back button is pressed the

Display progress bar using jquery in phonegap android for multiple files upload / download

巧了我就是萌 提交于 2019-12-20 04:06:55
问题 I am creating an app in which i want to show the progress bar for multiple file downloads and upload from the server. I tried the example of Raymondcamden for displaying the progress of the file. I tried to use the same for multiple files but its progress bar varies while downloading the file here is the code that i tried for multiple files: function startDl() { console.log('in startD1 function'); var progressbar = $("#progressbar"),progress_Label = $(".progress-label"); progressLabel =

Media Query not working for iPhone and iPad

匆匆过客 提交于 2019-12-20 03:17:47
问题 @media query is not working in case of iPhone 5 and iPad 4 OS . I have used following CSS for styling each OS and device for different screen. I explicitly checked that my iPad and iPhone width and height and based on that only i have kept the media queries. This works fine on ANDROID OS. /*@media print {*/ /* iPhone 5 (Portrait) */ @media screen and (max-device-height: 568px) and (orientation: portrait) { #map_canvas { border: 1px dashed #C0C0C0; width: 290px; height: 473px; } } /* iPad 4

phonegap - open link in browser

蓝咒 提交于 2019-12-17 18:19:45
问题 I use phonegap (cordova 2.2) I have link like this : <a href="http://twitter.com/foobar" target="_blank">twitter</a> On iOS - it opens link in browser(Safari) But on Android - it opens inside webview(inside my phonegap app) Is there a way to make Android work same way as iOS ? 回答1: This is how I got it working using Cordova 2.2 and jQuery mobile on Android Javascript: $('.link').live('tap', function() { url = $(this).attr("rel"); loadURL(url); }); function loadURL(url){ navigator.app.loadUrl

Phonegap Cordova 2.0.0 Android apk Error

荒凉一梦 提交于 2019-12-14 02:14:02
问题 I build a very simple Sencha-Touch-2 app and deployed it to Eclipse. The app work on Chrome, but on the device I'm getting the following error: E/dalvikvm(270): Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.generateWebResourceResponse I tried to google it but didn't found solution for me. My App is at android 2.3.1 level and my device is 4.1.1 and it doesn't work on both of them. Thanks 回答1: Do you have 'cordova-1.9.0

Phonegap in Visual Studio 2012

▼魔方 西西 提交于 2019-12-12 10:38:23
问题 Does anyone know how to make the project template for PhoneGap work in Visual Studio 2012? 回答1: I think the reason I cannot open my PhoneGap project is because PhoneGap(Cordova) targets Windows Phone 7.5 and below. Windows Phone development is not supported by default in Visual Studio 2012 and requires a separate installation for Windows Phone 8 here. Unfortunately you need to be running Windows 8 for this installation to be successful and as I am still running Windows 7 I have been unable to

How to fix onclick in Phonegap/Android especially in lower versions of Android?

自闭症网瘾萝莉.ら 提交于 2019-12-12 10:27:10
问题 My onclick functionality works in Android devices versions 4, but not in lower versions. I am facing a similar problem with the CSS position:fixed that did not work in Android devices with lower versions. The alternative I took up was iscroll, but I have yet to fix it up. I am working in Phonegap/Android using Cordova 2.1.0 and Android 2.2. My SQLITE plugin is compatible with Cordova 2.1.0. HTML <div id="wrapper"> <div id="scroller"> <ul> <div id="header " class="header "> <div id="header

how to get id of selected list data in the jquery mobile autocomplete

元气小坏坏 提交于 2019-12-12 00:43:04
问题 I am creating an app in which I have used jQuery mobile autocomplete the listview data is created dynamically from the database the autocomplete listview code is return in the js file. I am able to select the data from the listview and show it in the input field of the autocomplete and then disable the search list. Know what I want is seens I am get the data from the data base when user select the list data it will display the name but when it click on the save button it should save the id of

My App working fine in Samsung but acting weird in HTC Desire S?

旧城冷巷雨未停 提交于 2019-12-11 19:26:41
问题 I have created an app demo app using cordova2.7 the app only contains a search box and two buttons in header and the same in the content field. When run the app in Emulator its working fine and then i tried to run it in Samsung mobile its working fine but when i tried to run it in HTC Desire S when i try to enter character to search element its dispalys some white box above the header and when i try to enter the character in the serach field that i have in the content field it does not show

Cordova multiple callbacks in Windows Phone 8

你。 提交于 2019-12-11 02:36:46
问题 I have a Cordova plugin which works fine for both Android & iOS. However, it fails when ported to Windows Phone 8 because it seems that multiple outstanding callbacks are not supported in Cordova for Windows Phone. The problem is this: When a DispatchCommandResult is called with a PluginResult which has KeepCallback set to true, a further DispatchCommand from a different method will call both its callback and the previous callback (the one with KeepCallback set to true). Worse still, if the