diff --git a/build/sdk.atree b/build/sdk.atree index b58aba865..88e72a957 100644 --- a/build/sdk.atree +++ b/build/sdk.atree @@ -73,7 +73,7 @@ sdk/files/android.el tools/lib/android.el # samples development/apps/GestureBuilder platforms/${PLATFORM_NAME}/samples/GestureBuilder -development/samples/HelloActivity platforms/${PLATFORM_NAME}/samples/HelloActivity +development/samples/BluetoothChat platforms/${PLATFORM_NAME}/samples/BluetoothChat development/samples/Home platforms/${PLATFORM_NAME}/samples/Home development/samples/LunarLander platforms/${PLATFORM_NAME}/samples/LunarLander development/samples/NotePad platforms/${PLATFORM_NAME}/samples/NotePad diff --git a/samples/BluetoothChat/Android.mk b/samples/BluetoothChat/Android.mk new file mode 100644 index 000000000..f1b3a2714 --- /dev/null +++ b/samples/BluetoothChat/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 := BluetoothChat + +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/BluetoothChat/AndroidManifest.xml b/samples/BluetoothChat/AndroidManifest.xml new file mode 100644 index 000000000..44f991188 --- /dev/null +++ b/samples/BluetoothChat/AndroidManifest.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + diff --git a/samples/BluetoothChat/_index.html b/samples/BluetoothChat/_index.html new file mode 100644 index 000000000..588cccd5d --- /dev/null +++ b/samples/BluetoothChat/_index.html @@ -0,0 +1,14 @@ +

This application allows two Android devices to carry out +two-way text chat over Bluetooth. It demonstrates all the fundamental Bluetooth +API capabilites, such as:

+ + + + + \ No newline at end of file diff --git a/samples/BluetoothChat/res/drawable-hdpi/app_icon.png b/samples/BluetoothChat/res/drawable-hdpi/app_icon.png new file mode 100644 index 000000000..8836ff659 Binary files /dev/null and b/samples/BluetoothChat/res/drawable-hdpi/app_icon.png differ diff --git a/samples/BluetoothChat/res/drawable/app_icon.png b/samples/BluetoothChat/res/drawable/app_icon.png new file mode 100644 index 000000000..d3e09a5bb Binary files /dev/null and b/samples/BluetoothChat/res/drawable/app_icon.png differ diff --git a/samples/BluetoothChat/res/layout/custom_title.xml b/samples/BluetoothChat/res/layout/custom_title.xml new file mode 100644 index 000000000..6b7dca54a --- /dev/null +++ b/samples/BluetoothChat/res/layout/custom_title.xml @@ -0,0 +1,39 @@ + + + + + + \ No newline at end of file diff --git a/samples/BluetoothChat/res/layout/device_list.xml b/samples/BluetoothChat/res/layout/device_list.xml new file mode 100644 index 000000000..e7b84b935 --- /dev/null +++ b/samples/BluetoothChat/res/layout/device_list.xml @@ -0,0 +1,56 @@ + + + + + + + +