Tag: cordova

html phonegap android : numeric soft keyboard has next instead of go button

This is driving me crazy and I can’t find the answer anywhere. I have forms in my phonegap app. If the input type=”text”, the text keyboard pops up and “go” is displayed in the corner. When you click go, it submits the form. That all works as I would expect. But if I use input […]

Detect user's gesture such as swipe

I am using phonegap for build android apps. I would like to detect user’s gesture such as a user’s swipe. Is there an event i can call from javascript? Thanks!

Storage of SQLite database using Android and Phonegap

I’m developing a Android Cordova/Phonegap app where I want to use a SQLite database. I used the example from the official documentation. // Wait for device API libraries to load // document.addEventListener(“deviceready”, onDeviceReady, false); // Populate the database // function populateDB(tx) { tx.executeSql(‘DROP TABLE IF EXISTS DEMO’); tx.executeSql(‘CREATE TABLE IF NOT EXISTS DEMO (id unique, […]

Android–Webview, Input boxes doubled?

I’m trying to create an Android app that uses a webview to allow users to enter their username/password, but on tapping the input boxes they get doubled (see the picture below). I’m using the iScroll jQuery plugin to allow users to scroll the page up when the keyboard comes up and blocks the input area. […]

How slow or fast is Qt mobile for android

I would like to know the advantages and disadvantages of Qt mobile. I have heard things, like the performance is better than native apps. However I am not sure if I can trust that. I am not a c++ developer. In fact I have no experience with c, java, c++.. I am only a web […]

How do cross-platform mobile app development frameworks work?

How are Rhodes, Phonegap, and Appcelerator able to take Javascript or Ruby, and compile them into binaries for app SDKs that normally require apps to be written in Obj-C, Java, and others?

Cannot read property 'getPicture' of undefined – ionic camera

this code returns: Cannot read property ‘getPicture’ of undefined Have no idea what im doing wrong, can you please help me with the code? My App: angular.module(‘Todo’, [‘ionic’, ‘Todo.controllers’,’ngStorage’, ‘Todo.services’, ‘ngCordova’]) my Controller: .controller(‘profileEditCtrl’, function($scope,Camera, $localStorage, $cordovaCamera) { $scope.$storage = $localStorage.$default({ data:[]}); $scope.takePicture = function() { navigator.camera.getPicture(onSuccess, onFail, { quality: 50, destinationType: Camera.DestinationType.DATA_URL }); function […]

[Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually

Im using Cordova in Linux mint 17 I installed android sdk , cordova , android studio , nodejs 4 problem is here when i wanna build app in codova and run this on terminal : sudo cordova build android it shows Running command: /home/tnt/hello12/platforms/android/cordova/build [Error: Failed to find ‘ANDROID_HOME’ environment variable. Try setting setting it […]

Cordova/Phonegap/Ionic App – local store of remote images

I’m building an app using Ionic/AngularJS and would pull down remote data (JSON) on app start. For examples sake: [{“id”:1,”name”:”Retriever”,”image”:”http://server.com/images/image1.jpg”}, {“id”:2,”name”:”Collie”,”image”:”http://server.com/images/image2.jpg”}, {“id”:3,”name”:”Poodle”,”image”:”http://server.com/images/image3.jpg”}] This data has a number of images – What is the recommended way to store these locally on the device (and update the filepaths in the JSON as this is used for filtering […]

How can you move this buggy native crop box in a hybrid app?

We have an Ionic app that accesses $cordovaCamera like so: $cordovaCamera.getPicture({ allowEdit: true }); There are more options passed in, etc., but the above is just showing that we’re passing in the allowEdit flag. If anyone is unfamiliar, here’s what the docs say: allowEdit: Allow simple editing of image before selection. (Boolean) This works perfectly. […]

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