diff --git a/samples/ContactManager/Android.mk b/samples/ContactManager/Android.mk new file mode 100644 index 000000000..c58571685 --- /dev/null +++ b/samples/ContactManager/Android.mk @@ -0,0 +1,16 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := samples + +# Only compile source java files in this apk. +LOCAL_SRC_FILES := $(call all-java-files-under, src) + +LOCAL_PACKAGE_NAME := ContactManager + +LOCAL_SDK_VERSION := current + +include $(BUILD_PACKAGE) + +# Use the following include to make our test apk. +include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/samples/ContactManager/AndroidManifest.xml b/samples/ContactManager/AndroidManifest.xml new file mode 100644 index 000000000..c0a01cd31 --- /dev/null +++ b/samples/ContactManager/AndroidManifest.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/samples/ContactManager/_index.html b/samples/ContactManager/_index.html new file mode 100644 index 000000000..1fd51f06f --- /dev/null +++ b/samples/ContactManager/_index.html @@ -0,0 +1,10 @@ +

A sample application that demonstrates how to manually query the system contacts provider using +the new ContactsContract API, as +well as manually insert contacts into a specific account.

+ +

In most cases, you will want to ask the existing Contacts activity to handle these tasks for you, +resulting in a more consistent user experience.

+ +Screenshot 1 +Screenshot 2 \ No newline at end of file diff --git a/samples/ContactManager/res/drawable-hdpi/icon.png b/samples/ContactManager/res/drawable-hdpi/icon.png new file mode 100644 index 000000000..8074c4c57 Binary files /dev/null and b/samples/ContactManager/res/drawable-hdpi/icon.png differ diff --git a/samples/ContactManager/res/drawable-ldpi/icon.png b/samples/ContactManager/res/drawable-ldpi/icon.png new file mode 100644 index 000000000..1095584ec Binary files /dev/null and b/samples/ContactManager/res/drawable-ldpi/icon.png differ diff --git a/samples/ContactManager/res/drawable-mdpi/icon.png b/samples/ContactManager/res/drawable-mdpi/icon.png new file mode 100644 index 000000000..a07c69fa5 Binary files /dev/null and b/samples/ContactManager/res/drawable-mdpi/icon.png differ diff --git a/samples/ContactManager/res/layout/account_entry.xml b/samples/ContactManager/res/layout/account_entry.xml new file mode 100644 index 000000000..435e73766 --- /dev/null +++ b/samples/ContactManager/res/layout/account_entry.xml @@ -0,0 +1,49 @@ + + + + + + + + diff --git a/samples/ContactManager/res/layout/contact_adder.xml b/samples/ContactManager/res/layout/contact_adder.xml new file mode 100644 index 000000000..92d06f305 --- /dev/null +++ b/samples/ContactManager/res/layout/contact_adder.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +