I have developed a phonegap application that I have run and tested successfully on the iOS simulator. I am attempting to now verify the functionality within the android environment.
I am using eclipse so I created a new android project from existing source using the 'example' code from within phonegap/lib/android folder for cordova-1.7.0. I then copy over my code that is running correctly on iOS (except i leave the cordova.js from the example as-is and make sure this is the same js file linked from my index.html).
I've verified the manifest requests appropriate permissions:
I've attempted this both within an emulator and separately on a device (all be it an older motorola backflip, running version 2.1).
Here is the sample code that fails on Android:
...
function getAllContacts() {
// find all contacts with 'Bob' in any name field
var options = new ContactFindOptions();
options.filter='';
options.multiple = true;
var fields = ["id", "displayName", "givenName", "lastName"];
navigator.contacts.find(fields, onFindAllContactsSuccess, onFindAllContactsError, options);
}
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Hey Cher,
I would suggest using the Debug feature for PhoneGap (http://debug.phonegap.com). Most developer's here use PhoneGap build and dependencies such as PhoneGap versions and builds are handled automatically.
I would suggest the Google Group for this question as you maybe able to get a more prompt response.
Most developer's who monitor these support forums work on build and hence do not use/work with Cordova/Phonegap on a daily basis, and may not be able to respond with a sufficient answer to you question.
Hardeep Shoker -
Loading Profile...



EMPLOYEE

https://groups.google.com/forum/?from...