aboutsummaryrefslogtreecommitdiffstats
path: root/testapps/userLibTest
diff options
context:
space:
mode:
Diffstat (limited to 'testapps/userLibTest')
-rw-r--r--testapps/userLibTest/.classpath9
-rw-r--r--testapps/userLibTest/.project33
-rw-r--r--testapps/userLibTest/AndroidManifest.xml15
-rw-r--r--testapps/userLibTest/ECLIPSEONLY0
-rw-r--r--testapps/userLibTest/README.txt5
-rw-r--r--testapps/userLibTest/SUCCESS0
-rw-r--r--testapps/userLibTest/jars/basicJar.jarbin0 -> 1813 bytes
-rw-r--r--testapps/userLibTest/proguard-project.txt20
-rw-r--r--testapps/userLibTest/project.properties14
-rw-r--r--testapps/userLibTest/res/drawable-hdpi/ic_launcher.pngbin0 -> 4147 bytes
-rw-r--r--testapps/userLibTest/res/drawable-ldpi/ic_launcher.pngbin0 -> 1723 bytes
-rw-r--r--testapps/userLibTest/res/drawable-mdpi/ic_launcher.pngbin0 -> 2574 bytes
-rw-r--r--testapps/userLibTest/res/layout/main.xml15
-rw-r--r--testapps/userLibTest/res/values/strings.xml4
-rw-r--r--testapps/userLibTest/src/com/android/tests/userlibtest/Main.java19
15 files changed, 134 insertions, 0 deletions
diff --git a/testapps/userLibTest/.classpath b/testapps/userLibTest/.classpath
new file mode 100644
index 0000000..132d8c9
--- /dev/null
+++ b/testapps/userLibTest/.classpath
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/USERLIBTEST"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
diff --git a/testapps/userLibTest/.project b/testapps/userLibTest/.project
new file mode 100644
index 0000000..226edb7
--- /dev/null
+++ b/testapps/userLibTest/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>userLibTest</name>
+ <comment></comment>
+ <projects>
+ </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/testapps/userLibTest/AndroidManifest.xml b/testapps/userLibTest/AndroidManifest.xml
new file mode 100644
index 0000000..5883607
--- /dev/null
+++ b/testapps/userLibTest/AndroidManifest.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.tests.userlibtest"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
+ <activity android:name="Main"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+</manifest>
diff --git a/testapps/userLibTest/ECLIPSEONLY b/testapps/userLibTest/ECLIPSEONLY
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testapps/userLibTest/ECLIPSEONLY
diff --git a/testapps/userLibTest/README.txt b/testapps/userLibTest/README.txt
new file mode 100644
index 0000000..5d63f4e
--- /dev/null
+++ b/testapps/userLibTest/README.txt
@@ -0,0 +1,5 @@
+This test requires a workspace setup:
+
+- Create User Library called "USERLIBTEST"
+- Add to this library the jar located in jars/basicJar.jar
+- App should compile, and deploy on device and UI show show SUCCESS \ No newline at end of file
diff --git a/testapps/userLibTest/SUCCESS b/testapps/userLibTest/SUCCESS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testapps/userLibTest/SUCCESS
diff --git a/testapps/userLibTest/jars/basicJar.jar b/testapps/userLibTest/jars/basicJar.jar
new file mode 100644
index 0000000..a81b929
--- /dev/null
+++ b/testapps/userLibTest/jars/basicJar.jar
Binary files differ
diff --git a/testapps/userLibTest/proguard-project.txt b/testapps/userLibTest/proguard-project.txt
new file mode 100644
index 0000000..f2fe155
--- /dev/null
+++ b/testapps/userLibTest/proguard-project.txt
@@ -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/testapps/userLibTest/project.properties b/testapps/userLibTest/project.properties
new file mode 100644
index 0000000..0840b4a
--- /dev/null
+++ b/testapps/userLibTest/project.properties
@@ -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-15
diff --git a/testapps/userLibTest/res/drawable-hdpi/ic_launcher.png b/testapps/userLibTest/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..8074c4c
--- /dev/null
+++ b/testapps/userLibTest/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/testapps/userLibTest/res/drawable-ldpi/ic_launcher.png b/testapps/userLibTest/res/drawable-ldpi/ic_launcher.png
new file mode 100644
index 0000000..1095584
--- /dev/null
+++ b/testapps/userLibTest/res/drawable-ldpi/ic_launcher.png
Binary files differ
diff --git a/testapps/userLibTest/res/drawable-mdpi/ic_launcher.png b/testapps/userLibTest/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..a07c69f
--- /dev/null
+++ b/testapps/userLibTest/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/testapps/userLibTest/res/layout/main.xml b/testapps/userLibTest/res/layout/main.xml
new file mode 100644
index 0000000..3e65644
--- /dev/null
+++ b/testapps/userLibTest/res/layout/main.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/basicJar"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="\\?"
+ tools:ignore="HardcodedText" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/testapps/userLibTest/res/values/strings.xml b/testapps/userLibTest/res/values/strings.xml
new file mode 100644
index 0000000..549e4ea
--- /dev/null
+++ b/testapps/userLibTest/res/values/strings.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Main</string>
+</resources>
diff --git a/testapps/userLibTest/src/com/android/tests/userlibtest/Main.java b/testapps/userLibTest/src/com/android/tests/userlibtest/Main.java
new file mode 100644
index 0000000..b2f1be3
--- /dev/null
+++ b/testapps/userLibTest/src/com/android/tests/userlibtest/Main.java
@@ -0,0 +1,19 @@
+package com.android.tests.userlibtest;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.widget.TextView;
+
+import com.android.tests.basicjar.BasicJar;
+
+public class Main extends Activity {
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ TextView tv = (TextView) findViewById(R.id.basicJar);
+ tv.setText("BasicJar: " + BasicJar.getContent());
+ }
+}