I'm new to Titanium. Currently I'm working on a project in this the user needs to use the contact details from iOS contacts App.
My app.js looks like this
Window = require('ui/handheld/ApplicationWindow');
var win = Window();
win.open();
var button = Ti.UI.createButton({
title : 'Show Contacts',
width : 100,
height: 50,
});
win.add(button);
button.addEventListener('click',function(e){
Titanium.Contacts.showContacts({ });
});
When I click on a button the following code is displayed:
And when I select an contact the detail is displayed on the other screen:
But I don't want this, When the user selects an individual contact the details should be passed to my app.js file. And no need to go to the details page.
Is there any way to do this ? Please help me. Thanks in advance.