Skip to Main Content
PhoneGap Build
book

PhoneGap Build

by Bintu Harwani
November 2013
Intermediate to advanced content levelIntermediate to advanced
303 pages
8h 45m
English
Auerbach Publications
Content preview from PhoneGap Build
98 ◾  PhoneGap Build
contact(s). e onSuccess callback method returns an array of Contact objects that meet the
specified filter and options. e name of the contacts, that is, displayName property, is
accessed from the array of Contact objects and displayed through the <div> element of the ID
contactsinfo.
To invoke the index.html file that we created in the assets/www directory, the code as
shown in Listing 5.2 is written in the Java activity file PGContactsReadAppActivity.java.
Listing 5.2 Code Written in the Java Activity File: PGContactsReadAppActivity.java
package com.phonegap.pgcontactsreadapp;
import android.os.Bundle;
import org.apache.cordova.DroidGap;
public class PGContactsReadAppActivity extends DroidGap {
@Override
public void onCreate(Bundle ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning App Development with Parse and Phonegap

Beginning App Development with Parse and Phonegap

Wilkins Fernandez, Stephan Alber
Ajax For Dummies®

Ajax For Dummies®

PhD Steve Holzner

Publisher Resources

ISBN: 9781466589742