I wrote the Cordova.exe code in a function hello(). The control is going inside the function but unable to call the cordova.exe.
Expand|Select|Wrap|Line Numbers
- function openContact(successCallback, errorCallback,options){
- alert('contacts...');
- cordova.exec(sayHelloSuccess, sayHelloFailure, "Contacts", "pickContact",[ options ]);
- }
- function sayHelloSuccess(data) {
- alert('sucess:'+data);
- $('#NameInput').value(data);
- $('#abc').text(data);
- }
- function sayHelloFailure(data) {
- alert('error' + JSON.stringify(data));
Have implemented the contacts.cs and config.xml according to the cordova functionality.
Please help if any other settings are missed???
Thanks,
Divyaravind.