Sample: mobile Contacts
This sample contains a Cordova application that uses a
Cordova plugin to manage the contacts list in the device, and also
uses jQuery Mobile to create the user interface. This sample can be
run in a device emulator.
10 minutes
Before you can import and use this sample,
you must configure your environment for mobile.
- Download the Android SDK from http://developer.android.com/sdk/index.html#download, and select DOWNLOAD FOR OTHER PLATFORMS, and download the archive file from the SDK tools only.
- Extract the Android SDK to a directory in your workstation.
- Create an AVD: Open the Android SDK folder, and navigate
to the SDK Manager.exe. Double click SDK
Manager.exe. The Android SDK manager opens.

- Click Install <num> packages, and click Accept License, and then click Install.
- Once the installation is complete, select .
- Click New.
- In the AVD name field, type a name for your emulator.
- In the Device field, select the device you are using.
- In the Target field, select the target Android version.
- In the RAM memory field, type 768, and type OK.

- Highlight the Android virtual device you just created and click Start. Whenever you want to create and run a project using the Android virtual device, you must start it first.
- On the Launch options page, click Launch.

- Once you have installed the Android virtual device, you can Setting Cordova preferences, and point to the directory where you installed Android.
To use the sample, click Import sample, and save the compressed file to a directory on your workstation. After downloading the sample, import the sample project into your workspace: Click , and then click Browse to find the downloaded sample project file.
In the Import Projects page, clear ContactsSample-CordovaLib (CordovaLib) from Projects; this project is not needed for the sample to work:
