Tag: cordova

Android – Fix screen orientation for 1 page only (phonegap)

I am having an issue with fixing the screen orientation for my index.html page only. I want to allow the app to rotate except on the home page. I understand that adding the following into you activity – android:screenOrientation=”portrait” stops the screen from rotating. However, I need to set this so it is page specific. […]

'Connection to the server was unsuccessful' error when launching phonegap app on android emulator

I am using PhoneGap to build an Android application, the application is a combination of phonegap + jquery mobile. The application successfully launches in the emulator and I was able to debug the application, until yesterday. Today the application just refuses to launch on the emulator, and I keep getting this error 06-25 09:03:24.453: INFO/System.out(305): […]

Phonegap error android sdk build.xml:950 : null returned: 1

I’m trying to launch phonegap android app in android sdk, but I am receiving an error: [phonegap] detecting Android SDK environment… [phonegap] using the local environment [phonegap] compiling Android… [error] An error occurred while building the android project.Error executing “ant debug -f “/Users/me/Projects/one/platforms/android/build.xml””: BUILD FAILED /Applications/Android/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:932: The following error occurred while executing this line: /Applications/Android/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:950: […]

Phonegap Android LocalFileSystem is not defined

I have a problem for accessing Android File System for storage purpose in my phonegap application. I’ve searched and found lots of not-my-situation solutions! I know about the necessity of deviceready to be fired and checked and it got fired. So the phonegap.js is loaded perfectly! I think I requested the file permissions and have […]

phonegap.js crashes android app

I’m having this weird problem, where including the phonegap.js file in my project causes the app to crash on both the android emulator and my phone. I got the latest file from GitHub, so I can’t see why this isn’t working. This happens even if I try to build the sample project that’s included in […]

Phonegap 2.4.0 with Android 4.2 – strange double click behaviour

I’m using phonegap 2.4.0 to create an Android and iOS App. Now I recognized that the onclick event in links is fired twice inside the Android App using Android 4.2.2 on a Nexus 4 device, like a double click (althoug I tapped it only once!). <a href=”#” onclick=”$(this).append(‘test’); return false;” style=”some styles…”>some text</a> libs in […]

Can I use polymer/web components in a native android app w/o Cordova?

If I’m not mistaken, you need a web server to use/test Polymer’s web components (such as the paper elements) on your computer due to browser permissions issues stemming from loading local file://s. (A simple solution is to navigate to the directory where the polymer files are you want to try and type python -m SimpleHTTPServer […]

Blinking/flickering with JQM and PhoneGap on Android

I am using PhoneGap 2.2.0 in combination with jQuery Mobile 1.2.0 for my app on the Android platform (version 2.3.3 and up). On the pages I use fixed headers, and no transitions at all. Rest is pretty much standard jQuery. When I am navigating from page to page I get a white blink (entire page), […]

PhoneGap for Android does not accept the 9 key

I have a strange problem in my PhoneGap-based android app. On certain screens, the number 9 key is completely ignored. This happens on all my Android 2.X devices. I have tried with previous versions of PG and found that the problem first occurred in v1.2. Here is the code to a sample index.html file that […]

Change the icon of the push notification status bar on Android and IOS

My app icon is blue/red and when I receive a push notification the icon on status bar is the same app icon(blue/red). I want the icon of the status bar be a transparent and white version. My ionic project is using this cordova plugin to receive push notifications. The official docs of the plugin theres […]

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