problem about cordova-2.0.0-Collection of common programming errors


  • Jamie Starke
    monotouch cordova xamarin cordova-2.0.0
    I’m working on a MonoTouch project that uses Cordova. I created a binding for Cordova (based on the one created by Scott Blomquist).I have been able to instantiate the classes fairly well without fail. When I try to extend them however, I run into issues. For example, if I merely try extend the CDVViewController, without even overriding anything, when we get to the code that instantiates this extended class, the system quietly exits with no error messages, and the following exit lines.The progra

  • user1386579
    phonegap cordova phonegap-plugins cordova-2.0.0
    I am new to phonegap plugin; I thought of writing a small echo plugin; but I get this error Falling back on PROMPT mode since _cordovaNative is missing. at file:///android_asset/www/js/cordova-2.3.0.js:1112 and also the echo event is not fired, I attach my files for your referenceThis is my index.html ` <!DOCTYPE html><html lang=”en”> <head><meta charset=”utf-8″><title>Login | Royce Apps</title><meta name=”viewport” content=”width=device-width, initial-scal

  • Christian Kuetbach
    android phonegap cordova cordova-2.0.0
    I have a cordova 2.0 app for android. I use the FileTransfer Plugin, to load some Data to my server. The first time, the upload is performed, everything works fine. But then I get a EPIPE (Broken Pipe) error. If I simply push the upload-button again, it works.How can I prevent the error?09-28 17:31:12.304: W/FileTransfer(29497): Error getting HTTP status code from connection. 09-28 17:31:12.304: W/FileTransfer(29497): java.net.SocketException: sendto failed: EPIPE (Broken pipe) 09-28 17:31:12.30

  • Ryan Pfeffer
    javascript ios sqlite cordova-2.0.0
    We’ve got a problem that only seems to show up on an iOS device, but seems to work fine on the simulator. Here’s the problem…Our iOS app is Hybrid (Cordova) with some views that are entirely native and others that are entirely web. we’d like use the same sqlite db from both codebases. In the web we are using the WebSQL api (not a cordova plugin), from the Native iOS side we’re using FMDB. The database is initially created from javascript and is placed in the App’s Library Directory 4.x Dir &

  • goofy
    visual-studio-2012 cordova windows-phone-8 cordova-2.0.0 cordova-plugins
    I have tried to add the LiveTile plugin (found here) to my clean Cordova 3.3 project. But I can’t seem to get it to work. It works with the instruction from the link but that uses Cordova 2.0.0. I get the following printout when I try to add a new Tile:An exception of type ‘System.InvalidCastException’ occurred in System.ServiceModel.Web.ni.dll and wasn’t handled before a managed/native boundaryA first chance exception of type ‘System.InvalidCastException’ occurred in System.ServiceModel.Web.ni

  • Lex
    javascript phonegap cordova cordova-2.0.0 ripple
    I’m using PhoneGap 2.7.0 and am following the simple command line build/install instructions here. I’m building for Android, on Windows. My debugging and testing is mostly done in Chrome using Ripple, but also using the Android emulator and installed on my Nexus 7. First, I’ll say what works. For a simple ondeviceready javascript code of the kind shown here in the PhoneGap documentation everything works great in Chrome, in the emulator, and on the device. I use the command-line method of buildin

  • Amit
    phonegap windows-8 visual-studio-2012 cordova-2.0.0
    I have created a window store (javascript) project using phone gap 2.2 in windows 8 & visual studio 2012.I need to create a page which will send an audio file to a service(outside scope). This audio file will be picked by user at runtime.Please advice how do i pick file using javascript, if its not possible then please advice how i can create a c# module and include that in my javascript projectthanks Amit

  • josh3736
    java android phonegap zxing cordova-2.0.0
    I’m trying to use the barcode scanner plugin for PhoneGap. I’ve followed the instructions in the readme, but the PhoneGap app simply crashes when I call window.plugins.barcodeScanner.scan():E/AndroidRuntime(15842): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{mypackage/com.google.zxing.client.android.CaptureActivity}: java.lang.ClassNotFoundException: com.google.zxing.client.android.CaptureActivityI suspect this has something to do with the fact that after I add a re

  • niltz
    android cordova cordova-2.0.0
    I have a cordova (2.7.0) android app that is crashing with an Application Error when it tries to load an iframe where the source has a protocol relative (network-path reference) src.For instance, if the iframe is:<iframe src=”//instagram.com/p/beGdCuhQYl/embed/?wmode=opaque&amp;wmode=opaque” width=”800″ height=”928″ style=”border:0;” frameborder=”0″></iframe>Then the app tries to load the source fromfile://instagram.com/p/beGdCuhQYl/embed/?wmode=opaque&amp;wmode=opaqueSince t

  • kondal
    android sencha-touch android-sqlite cordova-2.0.0
    Hi I have packaged android native app with sencha touchand phonegap i have used phonegap api to create sqlite database in device ,In my project i have down sync service which keeps runs and gets data through rest services and inserts/updates in local database.I am gettign below exception after couple of syncs 09-26 16:12:37.310: D/CordovaLog(25764): file:///android_asset/www/app.js: Line 1 : inside ATA code sync success 09-26 16:12:37.310: D/CordovaLog(25764): file:/

  • tanzeelrana
    android cordova cordova-2.0.0 easeljs
    im new to phone gap and easeljs. I am trying to run my gravityball app on my android table. when I try to run the app through eclipse on my tablet I get an error in the LogCat :05-27 15:48:57.180: E/Web Console(22640): Uncaught ReferenceError: createjs is not defined at file:///android_asset/www/index.html:144I am attaching my code bellow. can someone help me why this is not working ? thank uhead:<script type=”text/javascript” src=”../src/easeljs/ui/Touch.js”></script> <script typ

  • Thomas Solti
    android phonegap phonegap-plugins cordova-2.0.0 javascript-module
    I’ve spent a lot of time trying to extend an existing cordova plugin, but didn’t manage so far and need your guidance:I want to use phonegap (cordova 2.1) to record audio on android and ios. The default setting works, but I need to be able to configure record-settings in my app. The user must be able to pick BitEncodingRate, SamplingRate etc. These settings are currently hardcoded in the Cordova Media Plugin. (to be exact – in the AudioPlayer class for android). I’d like to reuse as much as poss

  • yves
    javascript phonegap cordova this cordova-2.0.0
    I have a strange behavior using this. in PhoneGap.My js File looks like this:var accessHandler = {mimeType: ‘access/control’,key: null,receiveKey: function(nfcEvent){var tag = nfcEvent.tag,records = tag.ndefMessage,payload = nfc.bytesToString(records[0].payload);return payload;},requestAccess: function(nfcEvent){*1.*this.key = this.receiveKey(nfcEvent);*2.*console.log(this.key);var rId = 3;dbHandler.dbConnect(this.key, rId);},receiveAccess: function(dbResponse){*1.1*if(dbResponse) this.checkKey(

  • Mehul
    iphone xcode cordova-2.0.0
    I created a new Cordova2 Project for Xcode like it is described in their “Getting started” Guide. Everything is build without any problems but after Starting the iPhone Simulator, the App pops up and then Xcode brings me to the main.m in “Other sources” and highlights this line:int retVal = UIApplicationMain(argc, argv, nil, @”AppDelegate”);It says: Thread 1: signal SIGABRTWhen I step over this (actually I have to step over it twice for some reason) I get the following Exception in the log and t

  • Neerav Shah
    javascript android jquery cordova-2.0.0 jquery-ui-timepicker
    I am creating an app in which i want to app datepicker to select birthdate so for that i tried to use jquery-ui-timepicker-addon.js but the problem is when i tried to use it statically in the div then it shows the dateselector but when i try to create it dynamically it’s not working can any one tell why its acting like this and where i am making mistake here is the code for creating dynamic datepicker:var creatText = $(document.createElement(‘input’)).attr(‘type’,’text’);creatText.attr(‘class’,

  • Gendaful
    phonegap sencha-touch sencha-touch-2 cordova cordova-2.0.0
    BackGround : I have developed a SenchaTouch application using sencha 2.1. Now I am trying to display a simple alert message using cordova 2.2.0 js. My basic doubt is “Can I show the alert box using ‘navigator.notification.alert’ on google chrome or I have to run it on emulator to see the alert box?”I have followed below steps.Included cordova 2.2.0 js in my workspace and referred it from index.html. I am able to see the file loaded in the Google Chrome’s Network Tab. Below is my code which simpl

  • Amokloipher
    javascript android sqlite cordova cordova-2.0.0
    I’m using cordova-2.0.0 and the SQLite Plugin from chbrody on Android.(https://github.com/chbrody/Cordova-SQLitePlugin)My js-imports are<script type=”text/javascript” charset=”utf-8″ src=”js/cordova-2.0.0.js”></script> <script type=”text/javascript” charset=”utf-8″ src=”js/jquery.min.js”></script> <script type=”text/javascript” charset=”utf-8″ src=”js/SQLitePlugin.js”></script>The js-Error occurs in this line of the SQLitePlugin.js:return PhoneGap.exec(success

  • XEME
    android phonegap android-emulator cordova-2.0.0
    i make the simple login page from phonegap with php file when i run my apps that time give an error. how to solve error, error like thisCould not find class ‘android.webkit.WebResourceResponse’, referenced from method org.apache.cordova.CordovaWebViewClient.generateWebResourceResponse TypeError: Result of expression ‘l.attr’ [undefined] is not a function. at file:///android_asset/www/jquery.mobile-1.0a3.min.js:49my logcat08-22 12:25:59.439: I/dalvikvm(302): Could not find method android.webkit.W

  • Neerav Shah
    jquery-mobile android-listview cordova-2.0.0
    I have an listview which fect the data from the local database. And I want to add and taphold event on the list items so i uses taphold example from this site http://www.raymondcamden.com/index.cfm/2012/5/23/Context-Menu-Example-with-jQuery-Mobile but when run this code on emulator its working fine but when i tried to implement it into code which i’m usign its not working properly it giving an alert thats its in Taphold event but doesn’t create a sampledialog box here the code which I am using:

  • Erum Hannan
    phonegap cordova phonegap-plugins cordova-2.0.0
    trying to use cordova 2.0.0 and using this code for checking of internet connection document.addEventListener(“deviceready”, onDeviceReady(), false);function onDeviceReady() {alert(“ready”);db = window.openDatabase(“loginintro”, “1.0”, “loginintro”, 1000000);db.transaction(populateDB, errorCB, successCB);checkConnection(); } function checkConnection() { alert(“connection”);network = navigator.network.connection.type;alert(“fdfd”);var states = {};states[Connection.UNKNOWN] = ‘Unknown connecti

  • Mark
    plugins phonegap google-analytics cordova-2.0.0
    I had been using PhoneGap 1.9 for a while and was successfully using the Google Analytics Plugin.I recently upgraded to PG 2.0 (so that I could use the new Urban Airship plugin) and now my Google Analytics seems to have stopped functioning.Unfortunately, I think it has something to do with the initialization of the plugin via JavaScript. After some frustration I got my app to finally compile. But, my app pretty much just stops responding after the Google Analytics plugin is initialized in my Jav

  • Chiru
    android phonegap cordova-2.0.0
    I am new to phonegap.In my application i want display alerts.For that i have used following code,navigator.notification.alert(“PhoneGap is working”);But it is not working.My total html code is,<html><head> <script type=”text/javascript” charset=”utf-8″ src=”js/cordova-2.0.0.js”></script><script> function inti(){alert(“inti”);document.addEventListener(“deviceready”, onDeviceReady, true);}function onDeviceReady() {alert(“on device ready!!!!”);navigator.notification.

  • Arunkumar
    android cordova cordova-2.0.0 android-datepicker
    I am creating a android app using cordova 2.2.0.Now i am geting error on datepicker plugin. I installed date picker plugin refer this link https://github.com/phonegap/phonegap-plugins/tree/master/Android/DatePicker.Now i get Uncaught TypeError: Cannot read property ‘datePicker’ of undefined. Please guide me.Thanks for your help.

  • Yang
    phonegap cordova-2.0.0 childbrowser
    I’m done extensive search online and followed tutorials but I still got Cannot read property ‘childBrowser’ of undefined.Here are my steps: download childbrowser.js and included after cordova-2.0.0.js in index.html download ChildBroswer.java and put it in com.phonegap.plugins.childBrowser. I checked the build path and src/ is included. modify the config.xml file by adding the following line (previous examples said plugins.xml which I assume is the old version of config.xmlplugin name=”ChildBrows

  • user1126515
    phonegap cordova cordova-2.0.0
    This question already has an answer here:Why is PhoneGap Android app crashing while inserting bunch of data into SQL?3 answersI’m writing an app using Cordova/Phonegap 2.2.0 Its running on an LG Ally (Android 2.2.2)The app retrieves a rather large amount of data from a web server and in the process the app prematurely ends. I say that instead of errors out because I don’t get the typical Android “Application stopped responding” dialog. Instead, the app exits and and returns to the home screen.

  • samibel
    phonegap cordova cordova-2.0.0
    I am trying to build a PhoneGap-based Wondows Phone 7 application, but I keep getting the following two errors:GapBrowser_Navigated :: /app/www/page2.htmlDer Thread ‘<Kein Name>’ (0x16660ac6) hat mit Code 0 (0x0) geendet.Der Thread ‘<Kein Name>’ (0x16000752) hat mit Code 0 (0x0) geendet.”UI Task” (Verwaltet): “System.SR.dll” geladenEine Ausnahme (erste Chance) des Typs “System.ArgumentException” ist in mscorlib.dll aufgetreten.Eine Ausnahme (erste Chance) des Typs “System.SystemExcep

Web site is in building