Tag: cordova

Cordova Facebook Connect fail on init

The error is: Cordova Facebook Connect fail on init Something went wrong com.facebook.Session I am using this cordova plugin: https://github.com/phonegap/phonegap-facebook-plugin I also downloaded the latest FacebookSDK I also added the following to config.xml: <plugin name=”org.apache.cordova.facebook.Connect” value=”org.apache.cordova.facebook.ConnectPlugin” /> I also added the “facebooksdk.jar” to the “Referenced Libraries” to my project. I also changed the facebook id […]

AVD “use host GPU” cause black screen when testing apps

i created a new project of phonegap 2.7, and open the project by using eclipse and android emulator with use “use GPU option” , here is the screenshot If i don’t use “use GPU option”, the logo can be displayed, but the upper background is still in black. there should be a logo at center […]

Security Error with iframe

The following issue occurs in Android 4.4 devices and above. This is what our iframe looks like: <iframe frameborder=0 id=”myIFRAME”></iframe> The following is the way we are getting iframe programmatically: if(document.getElementById(“myIFRAME”)){ me.setMyIFRAME(document.getElementById(“myIFRAME”).contentWindow); } This is causing a security error related to Protocol mismatch: “Uncaught SecurityError: Blocked a frame with origin “https://www.google.com” from accessing a frame […]

How can I navigate between pages inside a PhoneGap application?

I am newbie with PhoneGap and I’m a little bit lost. I have installed and run the example app and it works ok. Now I want to change a little the default app. I want a button or link to change from the current page/view to another I have in the “www” folder. If I […]

HTML5 video – frame accurate seeking on Android devices?

I’m working on an app that requires frame accurate seeking on video in the browser, across desktop and mobile devices (including packaged apps with Cordova). Desktop browsers work fine as do iOS devices (both as a packaged app and through Safari) but Android devices only seem to show key frames (aka intra frames or i-frames) […]

How to use service workers in Cordova Android app?

I want to use a service worker in my Cordova Android add as a convenient way to sync some images to and from the server. I notice that this question states that this is not possible, since service workers must be loaded via https:, whereas Cordova will load files via file:. On the other hand, […]

Cordova App – build tool error – Gradle

I have a cordova application. Unable to compile it after a system re-install. I am having the error – Error:No installed build tools found. Please install the Android build tools version 19.1.0 or higher. My profile has export ANDROID_HOME=”/home/iamkhush/Android/Sdk/tools” export ANDROID_PLATFORM_TOOLS=”/home/iamkhush/Android/Sdk/platform-tools” export ANDROID_STUDIO=’/home/iamkhush/Downloads/work/android-studio/bin/’ I have dirs with names 19.1.0 and 23.0.1 in home/iamkhush/Android/Sdk/build-tools I have […]

How to implement Google Tag Manager In Cordova

I read Google Tag Manager v4 – Getting Started and Integrating Google Tag Manager and Google Analytics in a SPA I am not sure how it handle at the Javascript side even I could. So I want to handle at the native side. But Google’s documentation little bit confusing. I find nothing about Cordova and […]

IntelliJ SQLite permission denied on Android Lollipop, worked before

I updated Nexus 7 with Android Lollipop and now i can’t access SQLite db from IntelliJ IDEA 14. Everything was working fine before Lollipop update, even though Android wasn’t rooted i could access db from IntelliJ (but not pull it via ADB). The error i am getting when i try to connect is: Data Source […]

Is PhoneGap slow or it is a bug?

After I have compiled and deployed the demo application to my Samsung Galaxy S II I noticed that the Sample PhoneGap App which comes with PhoneGap was not very responsive when pressing buttons and scrolling. I also made a little app using PhoneGap and jQuery Mobile, with 4 buttons everything was ok, but when I […]

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