Tag: cordova

How to login with Google OAuth2 using Angularjs inside Phonegap using ClientID and ClientSecret

I am trying to login from my Phonegap App using Angularjs (using the Ionic Framework) through Google OAuth2. Currently I am using the http://phonegap-tips.com/articles/google-api-oauth-with-phonegaps-inappbrowser.html for logging in. But it is creating really ugly looking code and quite a hard to understand code when I am using Angular-UI-Router for Ionic. This issue seems to be spiralling […]

Nested directory creator: Phonegap

How can I create a nested directory in Phonegap with this API? fileSystem.root.getDirectory(“Android/data/com.phonegap.myapp/dir_one/dir_two/”, {create:true}, gotDir, onError); I am using Phonegap 1.8.0 in Android 2.2.

Cordova/Phonegap – Android: Icon not updating

I’m using cordova 3.3.0 (CLI) and I replaced the icons in the www/res/icons/android folder, as per docs instructions (http://cordova.apache.org/docs/en/3.3.0/config_ref_images.md.html). The problem is, when I build and send the app to my phone (cordova run android), the icon is still the default one, even if I uninstall the app from my phone before installing again. Any […]

debug android app with ionic- cordova

There is a way to debug? I use ionic run android command to run the app on android but then – how can I see console.log() messages? Thanks

create script in Cordova fails with unexpected error in Ubuntu 12.10

On Ubuntu 12.10, I am trying to set up cordova 2.3.0(PhoneGap) based on the instructions present here http://docs.phonegap.com/en/2.3.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android. but when I run the script I get the following error: An unexpected error occurred: [ ! -e “$BUILD_PATH”/framework/libs/commons-codec-1.7.jar ] exited with 1 Deleting project… I looked up the commons-codec-1.7.jar and it is present where it should […]

How can i open the .db file . The .db file is generated from eclipse(android) form DDMS–>File explorer–>data—>data–>packagename–>database…?

The .db file is generated from eclipse(android) form DDMS–>File explorer–>data—>data–>package name–>database….? Then select the database and click push a file from device and save it as .db file….How can i view this data base…

Unable to fetch platform android: Error: EACCES

First, I installed PhoneGap: $ sudo npm install -g phonegap Then I created a new project: $ phonegap create hellophonegap But when I ran the project: $ phonegap run android I get the following error: [~/hellophonegap]$ phonegap run android [phonegap] executing ‘cordova platform add android’… Unable to fetch platform android: Error: EACCES, mkdir ‘/home/crane/tmp/npm-28555-XalHvwaa’ [phonegap] […]

Error trying to run android app onto emulator with phonegap, how can I fix it?

I have phonegap 3.0.0-0.14.3 installed on Ubuntu 12.04. I want to run the app with android emulator. When I run phonegap run android I get the following: [phonegap] compiling Android… [phonegap] successfully compiled Android app [phonegap] trying to install app onto device [phonegap] no device was found [phonegap] trying to install app onto emulator [error] […]

Adding Cordova/Phonegap plugins behind a proxy

I’ve successfully installed Cordova (clean install, under Windows), and I’m able to deploy a small app to Android, but unable to add any plugins behind my company’s proxy. I’ve already tried setting every possible npm and git variable I could think of via: npm config set proxy url:port npm config set http-proxy url:port npm config […]

Background-attachment: fixed not working on android/mobile

I’m developing a cordova app and I’m trying to get a fixed background. Unfortunately, it doesn’t seem to be working, and anytime I scroll down the background simply goes off the top of the page. Here’s the CSS I’m using to do this (and I’ve tried it several other ways): html { width:100%; height: 100%; […]

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