Tag: cordova

How to use input type file in phonegap?

How to use html file attribute in phonegap ? so that i can browse any .txt file from my android device and upload it to the server?? I read file transfer method in phonegap documentation but according to that it is possible to upload files to the server only through url.But is it possible in […]

Cordova 5.0.0 android app can not connect to internet using android 4.0.0

I m developing the cordova applicatin using windows 7. The emulator can connect internet with browser but the app failed with network error check the [link here] Using the the latest cordova android 4.0.0 for devleopment Cordova 5.0.0 Cordova-android 4.0.0 I have already added the whitelist as a new plugin to the cordova project. check […]

Scroll bar in Phonegap?

I am new to Phonegap. I am displaying a list of data in a list view. The data is collected from a server and I want to add a scroll bar to the view. How to add a scroll bar in Phonegap and make the view scrolling sticky? Jow to make it smooth? Please guide […]

No decimal place in HTML5 number input on some Android devices / Chrome

On some Android devices creating an HTML5 number input field does not show any decimal place. <input type=”number” step=”0.001″ min=”0″ name=”foo” /> This is troublesome since I’m trying to write an HTML5 + Javascript app. It works on IOS at the moment as well as some (most?) Android devices. It’s just that some Android versions/brands […]

javascript + phoneGap – how to detect when in an active phone call

I searched for this question and it’s a question that has remained unanswered, I was wondering if anyone could help to figure this out… Using javascript libraries and phonegap, I would like to place a phone call and when the call is answered play an audio file to the recipient. This audio should only be […]

Cordova fails to build on android (GCM dependency)

I have already installed the latest Support Repository package for Android. However I cannot compile my new app with ionic/cordova (first build), and I get the following error: TR: ~/Documents/bitron/B-See tommaso$ ionic run –device android Running command: /Users/webdev1/Documents/bitron/B-See/hooks/after_prepare/010_add_platform_class.js /Users/webdev1/Documents/bitron/B-See add to body class: platform-android Running command: /Users/webdev1/Documents/bitron/B-See/platforms/android/cordova/run –device ANDROID_HOME=/usr/share/java/android-sdk-macosx JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home Running: /Users/webdev1/Documents/bitron/B-See/platforms/android/gradlew cdvBuildDebug -b /Users/webdev1/Documents/bitron/B-See/platforms/android/build.gradle […]

Android is force-killing my launcher on BT connect

I have written a launcher-app for Android with Apache cordova. It’s for a kiosk-like application and basically it’s working fine. Unfortunatelly there is a problem: Under certain circumstances Android is force killing my app and immediately restarting it. – It takes about 3 seconds to load, where it shows a white screen. It starts completely […]

Crosswalk crashes with AssertionFailedError

Crashlytics reports the following problem, that is affecting a good percentage of the users of my application: Fatal Exception: junit.framework.AssertionFailedError: Cannot call this method before xwalk is ready at junit.framework.Assert.fail(Assert.java:50) at org.xwalk.core.XWalkView.setZOrderOnTop(XWalkView.java:1271) at org.crosswalk.engine.XWalkWebViewEngine.initWebViewSettings(XWalkWebViewEngine.java:193) at org.crosswalk.engine.XWalkWebViewEngine.access$000(XWalkWebViewEngine.java:55) at org.crosswalk.engine.XWalkWebViewEngine$2.run(XWalkWebViewEngine.java:90) at org.xwalk.core.XWalkActivityDelegate.onActivateCompleted(XWalkActivityDelegate.java:179) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:314) at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:277) at android.os.AsyncTask.finish(AsyncTask.java:632) at android.os.AsyncTask.access$600(AsyncTask.java:177) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at […]

CrossWalk Webview not launching URL

I am using Cordova CrossWebViewEngine and creating XWalkCordovaView to launch my app in webview. But it is throwing an error saying 02-01 20:53:17.097: E/AndroidRuntime(2776): FATAL EXCEPTION: main 02-01 20:53:17.097: E/AndroidRuntime(2776): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.abc.securitySampleApp/com.abc.securitySampleApp.MainActivity}: java.lang.UnsupportedOperationException: load 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread.access$600(ActivityThread.java:130) 02-01 20:53:17.097: […]

Add user defined place in the input field by clicking a button to stop the geocomplete

My requirement is to put in a place name in a text field and show that in the map, so i used geocomplete js, which works well. Now my user should be able to put in user defined places like ‘my house’, for that I need to remove the geocomplete on clicking a ‘x’ button […]

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