Base code for new sample added.
authorAlexander Smorkalov <no@email>
Fri, 27 Apr 2012 12:49:21 +0000 (12:49 +0000)
committerAlexander Smorkalov <no@email>
Fri, 27 Apr 2012 12:49:21 +0000 (12:49 +0000)
samples/android/color-blob-detection/.classpath [new file with mode: 0644]
samples/android/color-blob-detection/.project [new file with mode: 0644]
samples/android/color-blob-detection/AndroidManifest.xml [new file with mode: 0644]
samples/android/color-blob-detection/proguard-project.txt [new file with mode: 0644]
samples/android/color-blob-detection/project.properties [new file with mode: 0644]
samples/android/color-blob-detection/res/drawable-hdpi/ic_launcher.png [new file with mode: 0644]
samples/android/color-blob-detection/res/drawable-ldpi/ic_launcher.png [new file with mode: 0644]
samples/android/color-blob-detection/res/drawable-mdpi/ic_launcher.png [new file with mode: 0644]
samples/android/color-blob-detection/res/drawable-xhdpi/ic_launcher.png [new file with mode: 0644]
samples/android/color-blob-detection/res/layout/main.xml [new file with mode: 0644]
samples/android/color-blob-detection/res/values/strings.xml [new file with mode: 0644]

diff --git a/samples/android/color-blob-detection/.classpath b/samples/android/color-blob-detection/.classpath
new file mode 100644 (file)
index 0000000..e3c66ae
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="src" path="gen"/>
+       <classpathentry combineaccessrules="false" kind="src" path="/ColorBlobDetection"/>
+       <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+       <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+       <classpathentry kind="output" path="bin/classes"/>
+</classpath>
diff --git a/samples/android/color-blob-detection/.project b/samples/android/color-blob-detection/.project
new file mode 100644 (file)
index 0000000..72db74d
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>ColorBlobDetectionTest</name>
+       <comment></comment>
+       <projects>
+               <project>ColorBlobDetection</project>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+       </natures>
+</projectDescription>
diff --git a/samples/android/color-blob-detection/AndroidManifest.xml b/samples/android/color-blob-detection/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..fb92a86
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="org.opencv.example.colorblobdetect.test"
+    android:versionCode="1"
+    android:versionName="1.0" >
+
+    <uses-sdk android:minSdkVersion="8" />
+
+    <instrumentation
+        android:name="android.test.InstrumentationTestRunner"
+        android:targetPackage="org.opencv.example.colorblobdetect" />
+
+    <application
+        android:icon="@drawable/ic_launcher"
+        android:label="@string/app_name" >
+        <uses-library android:name="android.test.runner" />
+    </application>
+
+</manifest>
\ No newline at end of file
diff --git a/samples/android/color-blob-detection/proguard-project.txt b/samples/android/color-blob-detection/proguard-project.txt
new file mode 100644 (file)
index 0000000..f2fe155
--- /dev/null
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+#   http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+#   public *;
+#}
diff --git a/samples/android/color-blob-detection/project.properties b/samples/android/color-blob-detection/project.properties
new file mode 100644 (file)
index 0000000..85aac54
--- /dev/null
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-8
diff --git a/samples/android/color-blob-detection/res/drawable-hdpi/ic_launcher.png b/samples/android/color-blob-detection/res/drawable-hdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..96a442e
Binary files /dev/null and b/samples/android/color-blob-detection/res/drawable-hdpi/ic_launcher.png differ
diff --git a/samples/android/color-blob-detection/res/drawable-ldpi/ic_launcher.png b/samples/android/color-blob-detection/res/drawable-ldpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..9923872
Binary files /dev/null and b/samples/android/color-blob-detection/res/drawable-ldpi/ic_launcher.png differ
diff --git a/samples/android/color-blob-detection/res/drawable-mdpi/ic_launcher.png b/samples/android/color-blob-detection/res/drawable-mdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..359047d
Binary files /dev/null and b/samples/android/color-blob-detection/res/drawable-mdpi/ic_launcher.png differ
diff --git a/samples/android/color-blob-detection/res/drawable-xhdpi/ic_launcher.png b/samples/android/color-blob-detection/res/drawable-xhdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..71c6d76
Binary files /dev/null and b/samples/android/color-blob-detection/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/samples/android/color-blob-detection/res/layout/main.xml b/samples/android/color-blob-detection/res/layout/main.xml
new file mode 100644 (file)
index 0000000..bc12cd8
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
+
+    <TextView
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:text="@string/hello" />
+
+</LinearLayout>
\ No newline at end of file
diff --git a/samples/android/color-blob-detection/res/values/strings.xml b/samples/android/color-blob-detection/res/values/strings.xml
new file mode 100644 (file)
index 0000000..01fb28b
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <string name="hello">Hello World!</string>
+    <string name="app_name">ColorBlobDetectionTest</string>
+
+</resources>
\ No newline at end of file