Tag: cordova

White notification icon for Android with Phonegap Build and PushPlugin

I’m messing around with Phonegap using Adobe’s Build service and I was wondering if (and if so, how) I could make my notifications display a white icon (as Google describes here). I’m using the PushPlugin but I couldn’t find any documentation on this. At the moment my app just displays the launcher icon next to […]

PhoneGap + jQueryMobile: Android back button closes app in nested list

I’m creating an app using PhoneGap and jQuery Mobile. Using jQuery Mobile I have created a nested list. After clicking into the nested list I want to go back. I expect that clicking the back button on my Android (N1) that it will go back one level. But instead android closes the app instead of […]

Cordova build fails, can't find ${appt}

The command cordova build android fails with the following output BUILD FAILED F:\Programs\SDK\tools\ant\build.xml:597: The following error occurred while executing this line: F:\Programs\SDK\tools\ant\build.xml:649: The following error occurred while executing this line: F:\Programs\SDK\tools\ant\build.xml:694: Execute failed: java.io.IOException: Cannot run program “F:\code\asistenciaBT\platforms\android\CordovaLib\${aapt}” (in directory “F:\code\asistenciaBT\platforms\android\CordovaLib”): CreateProcess error=2, El sistema no puede encontrar el archivo especificado Meaning, as far as […]

How to add Android to Phonegap Platforms version 3

After much digging, i believe that this problem is related to me not having any platforms added for phonegap to build from. This is missing from their documentation. When i trying to add a platofrm phonegap Running code C:\var\www\sexdiaries.co.uk\sexdiaries>phonegap platform add andriod [error] ‘platform add andriod’ is not a node C:\Users\Hutber\AppData\Roaming\npm\node_m See ‘node C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js help’ […]

Which one is better to use Sencha Touch or phonegap for android?

I have searched many articles on Sencha Touch and Phonegap but i was unable to judge which framework is the better to integrate while developing my Android App. and even i got many stuffs on difference between Sencha Touch and Phonegap but it was not enough to recognize which is better framework to use. So […]

Cordova ignores screen orientation lock

This question already has an answer here: fix the orientation on page to landscape only in Jquery-mobile 3 answers

phonegap run android – create Command failed with exit code 8 – linux

I did some googleing but find nothing approriate. Any help appreciated. Try it with an naked vm to be sure having no nodejs install or dependency issue. Christian sudo apt-get install nodejs sudo apt-get install nodejs-legacy sudo npm install -g phonegap sudo npm install -g cordova sudo apt-get install ant chris@mint16 ~/project/dev $ phonegap create […]

org.apache.cordova.api doesn't exist. PhoneGap 3.0

I’m trying to add VideoPlayer plugin (https://github.com/macdonst/VideoPlayer) to my phonegap Android app. While compiling I get problem: VideoPlayer.java:25: error: package org.apache.cordova.api does not exist” Line 25: import org.apache.cordova.api.CordovaPlugin;

Cordova error building – EPERM, operation not permitted

I am trying to build an android APK file for my project C:\myApp>cordova build android cp: copyFileSync: could not write to dest file (code=EPERM):C:\myApp\platforms\android\res\xml\config.xml Error: EPERM, operation not permitted ‘C:\myApp\platforms\android\res\xml\config.xml’ at Object.fs.openSync (fs.js:438:18) at Object.fs.writeFileSync (fs.js:977:15) I used windows 7 64 Bit. What could be the reason? My files by the way are versioned by […]

Android – Disable Device Back button

I am working on android application using PhoneGap. I need to handle Device back button functionality by using the below code: import com.phonegap.DroidGap; public Class MyClass extends DroidGap { appView.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_UP) { finish(); return true; } return […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.