aboutsummaryrefslogtreecommitdiffstats
path: root/testapps/legacyTest
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-03-07 15:20:12 -0800
committerXavier Ducrohet <xav@android.com>2012-03-07 15:46:38 -0800
commit8a3082c6750064eaab3e0a63816f136bb061b6c6 (patch)
tree6234eece3b136b3d7874bec97e160617ec742dc1 /testapps/legacyTest
parentbcf44e9429811b3e1f97d21ea92816957bce2601 (diff)
downloadsdk-8a3082c6750064eaab3e0a63816f136bb061b6c6.zip
sdk-8a3082c6750064eaab3e0a63816f136bb061b6c6.tar.gz
sdk-8a3082c6750064eaab3e0a63816f136bb061b6c6.tar.bz2
More changes to the test projects.
Change-Id: I823bcc19b7de6cea4c985f2c01feccddd6f8022d
Diffstat (limited to 'testapps/legacyTest')
-rw-r--r--testapps/legacyTest/.classpath9
-rw-r--r--testapps/legacyTest/.project33
-rw-r--r--testapps/legacyTest/AndroidManifest.xml23
-rw-r--r--testapps/legacyTest/ECLIPSEONLY0
-rw-r--r--testapps/legacyTest/SUCCESS0
-rw-r--r--testapps/legacyTest/libs/basicJar.jarbin0 -> 1788 bytes
-rw-r--r--testapps/legacyTest/project.properties14
-rw-r--r--testapps/legacyTest/res/drawable-hdpi/icon.pngbin0 -> 4147 bytes
-rw-r--r--testapps/legacyTest/res/drawable-ldpi/icon.pngbin0 -> 1723 bytes
-rw-r--r--testapps/legacyTest/res/drawable-mdpi/icon.pngbin0 -> 2574 bytes
-rw-r--r--testapps/legacyTest/res/layout/main.xml15
-rw-r--r--testapps/legacyTest/res/values/strings.xml6
-rw-r--r--testapps/legacyTest/src/com/android/tests/javaprojecttest/app/Main.java19
13 files changed, 119 insertions, 0 deletions
diff --git a/testapps/legacyTest/.classpath b/testapps/legacyTest/.classpath
new file mode 100644
index 0000000..1f92faf
--- /dev/null
+++ b/testapps/legacyTest/.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="lib" path="libs/basicJar.jar"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
diff --git a/testapps/legacyTest/.project b/testapps/legacyTest/.project
new file mode 100644
index 0000000..3e2af0e
--- /dev/null
+++ b/testapps/legacyTest/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>legacyTest</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/legacyTest/AndroidManifest.xml b/testapps/legacyTest/AndroidManifest.xml
new file mode 100644
index 0000000..36ec8fb
--- /dev/null
+++ b/testapps/legacyTest/AndroidManifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.tests.javaprojecttest.app"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk android:minSdkVersion="15" />
+
+ <application
+ android:icon="@drawable/icon"
+ android:label="@string/app_name" >
+ <activity
+ android:name="com.android.tests.javaprojecttest.app.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> \ No newline at end of file
diff --git a/testapps/legacyTest/ECLIPSEONLY b/testapps/legacyTest/ECLIPSEONLY
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testapps/legacyTest/ECLIPSEONLY
diff --git a/testapps/legacyTest/SUCCESS b/testapps/legacyTest/SUCCESS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testapps/legacyTest/SUCCESS
diff --git a/testapps/legacyTest/libs/basicJar.jar b/testapps/legacyTest/libs/basicJar.jar
new file mode 100644
index 0000000..6be0e7d
--- /dev/null
+++ b/testapps/legacyTest/libs/basicJar.jar
Binary files differ
diff --git a/testapps/legacyTest/project.properties b/testapps/legacyTest/project.properties
new file mode 100644
index 0000000..0840b4a
--- /dev/null
+++ b/testapps/legacyTest/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/legacyTest/res/drawable-hdpi/icon.png b/testapps/legacyTest/res/drawable-hdpi/icon.png
new file mode 100644
index 0000000..8074c4c
--- /dev/null
+++ b/testapps/legacyTest/res/drawable-hdpi/icon.png
Binary files differ
diff --git a/testapps/legacyTest/res/drawable-ldpi/icon.png b/testapps/legacyTest/res/drawable-ldpi/icon.png
new file mode 100644
index 0000000..1095584
--- /dev/null
+++ b/testapps/legacyTest/res/drawable-ldpi/icon.png
Binary files differ
diff --git a/testapps/legacyTest/res/drawable-mdpi/icon.png b/testapps/legacyTest/res/drawable-mdpi/icon.png
new file mode 100644
index 0000000..a07c69f
--- /dev/null
+++ b/testapps/legacyTest/res/drawable-mdpi/icon.png
Binary files differ
diff --git a/testapps/legacyTest/res/layout/main.xml b/testapps/legacyTest/res/layout/main.xml
new file mode 100644
index 0000000..3e65644
--- /dev/null
+++ b/testapps/legacyTest/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/legacyTest/res/values/strings.xml b/testapps/legacyTest/res/values/strings.xml
new file mode 100644
index 0000000..705a565
--- /dev/null
+++ b/testapps/legacyTest/res/values/strings.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_name">javaProjectTest-app</string>
+
+</resources> \ No newline at end of file
diff --git a/testapps/legacyTest/src/com/android/tests/javaprojecttest/app/Main.java b/testapps/legacyTest/src/com/android/tests/javaprojecttest/app/Main.java
new file mode 100644
index 0000000..5790753
--- /dev/null
+++ b/testapps/legacyTest/src/com/android/tests/javaprojecttest/app/Main.java
@@ -0,0 +1,19 @@
+package com.android.tests.javaprojecttest.app;
+
+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());
+ }
+} \ No newline at end of file