From d7be1ca88d40a3d9a3320f3c3c6c58e98d3a08bb Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Tue, 4 Aug 2015 16:45:56 -0700 Subject: cmsdk: Add sample Profiles application. Change-Id: I504f6c278055564a711a9bae18065f3d7989ccdd --- samples/profiles/Android.mk | 11 ++ samples/profiles/AndroidManifest.xml | 19 +++ samples/profiles/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 9397 bytes samples/profiles/res/drawable-ldpi/ic_launcher.png | Bin 0 -> 2729 bytes samples/profiles/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 5237 bytes .../profiles/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 14383 bytes samples/profiles/res/layout/main.xml | 19 +++ samples/profiles/res/values/strings.xml | 5 + .../cyanogenmod/samples/profiles/MainActivity.java | 137 +++++++++++++++++++++ 9 files changed, 191 insertions(+) create mode 100644 samples/profiles/Android.mk create mode 100644 samples/profiles/AndroidManifest.xml create mode 100644 samples/profiles/res/drawable-hdpi/ic_launcher.png create mode 100644 samples/profiles/res/drawable-ldpi/ic_launcher.png create mode 100644 samples/profiles/res/drawable-mdpi/ic_launcher.png create mode 100644 samples/profiles/res/drawable-xhdpi/ic_launcher.png create mode 100644 samples/profiles/res/layout/main.xml create mode 100644 samples/profiles/res/values/strings.xml create mode 100644 samples/profiles/src/org/cyanogenmod/samples/profiles/MainActivity.java (limited to 'samples') diff --git a/samples/profiles/Android.mk b/samples/profiles/Android.mk new file mode 100644 index 0000000..1cdb0c2 --- /dev/null +++ b/samples/profiles/Android.mk @@ -0,0 +1,11 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_STATIC_JAVA_LIBRARIES := \ + org.cyanogenmod.platform.sdk + +LOCAL_SRC_FILES := $(call all-subdir-java-files) + +LOCAL_PACKAGE_NAME := CMProfiles + +include $(BUILD_PACKAGE) \ No newline at end of file diff --git a/samples/profiles/AndroidManifest.xml b/samples/profiles/AndroidManifest.xml new file mode 100644 index 0000000..6f1e673 --- /dev/null +++ b/samples/profiles/AndroidManifest.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + diff --git a/samples/profiles/res/drawable-hdpi/ic_launcher.png b/samples/profiles/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..96a442e Binary files /dev/null and b/samples/profiles/res/drawable-hdpi/ic_launcher.png differ diff --git a/samples/profiles/res/drawable-ldpi/ic_launcher.png b/samples/profiles/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..9923872 Binary files /dev/null and b/samples/profiles/res/drawable-ldpi/ic_launcher.png differ diff --git a/samples/profiles/res/drawable-mdpi/ic_launcher.png b/samples/profiles/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..359047d Binary files /dev/null and b/samples/profiles/res/drawable-mdpi/ic_launcher.png differ diff --git a/samples/profiles/res/drawable-xhdpi/ic_launcher.png b/samples/profiles/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..71c6d76 Binary files /dev/null and b/samples/profiles/res/drawable-xhdpi/ic_launcher.png differ diff --git a/samples/profiles/res/layout/main.xml b/samples/profiles/res/layout/main.xml new file mode 100644 index 0000000..ea0ac53 --- /dev/null +++ b/samples/profiles/res/layout/main.xml @@ -0,0 +1,19 @@ + + +