# HG changeset patch # User Thinker K.F. Li # Date 1259679308 -28800 # Node ID e505597c17fb0cb072d898a0d8f70e2ecb354651 # Parent f06eba21db1cde767c19975b5aa9f9d0e4073f04 testpath is an Android Java application for demo MadButterfly. diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/AndroidManifest.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/AndroidManifest.xml Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/build.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/build.properties Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,20 @@ +# This file is used to override default values used by the Ant build system. +# +# This file must be checked in Version Control Systems, as it is +# integral to the build system of your project. + +# This file is only used by the Ant script. + +# You can use this to override default values such as +# 'source-folder' for the location of your java source folder and +# 'out-folder' for the location of your output folder. + +# You can also use it define how the release builds are signed by declaring +# the following properties: +# 'key.store' for the location of your keystore and +# 'key.alias' for the name of the key to use. +# The password will be asked during the build when you use the 'release' target. + +# The name of your application package as defined in the manifest. +# Used by the 'uninstall' rule. +application-package=org.madbutterfly.android.examples.testpath diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/build.xml Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/default.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/default.properties Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,11 @@ +# 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 use, +# "build.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-4 diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/local.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/local.properties Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,10 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must *NOT* be checked in Version Control Systems, +# as it contains information specific to your local configuration. + +# location of the SDK. This is only used by Ant +# For customization when using a Version Control System, please read the +# header note. +sdk-location=/home/thinker/progm/Android/out/host/freebsd-x86/sdk/android-sdk_eng.thinker_freebsd-x86 diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/res/layout/main.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/res/layout/main.xml Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,13 @@ + + + + + diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/res/values/strings.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/res/values/strings.xml Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,4 @@ + + + testpath + diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/src/org/madbutterfly/android/examples/testpath/testpath.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/src/org/madbutterfly/android/examples/testpath/testpath.java Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,28 @@ +package org.madbutterfly.android.examples.testpath; + +import android.app.Activity; +import android.content.Context; +import android.os.Bundle; +import org.madbutterfly.MBView; +import org.madbutterfly.redraw_man; + +public class testpath extends Activity +{ + class myview extends MBView { + public myview(Context ctx) { + super(ctx); + } + } + + MBView main_view; + + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + // setContentView(R.layout.main); + main_view = new myview(this); + setContentView(main_view); + } +} diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/tests/AndroidManifest.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/tests/AndroidManifest.xml Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,21 @@ + + + + + + + + + + diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/tests/build.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/tests/build.properties Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,20 @@ +# This file is used to override default values used by the Ant build system. +# +# This file must be checked in Version Control Systems, as it is +# integral to the build system of your project. + +# This file is only used by the Ant script. + +# You can use this to override default values such as +# 'source-folder' for the location of your java source folder and +# 'out-folder' for the location of your output folder. + +# You can also use it define how the release builds are signed by declaring +# the following properties: +# 'key.store' for the location of your keystore and +# 'key.alias' for the name of the key to use. +# The password will be asked during the build when you use the 'release' target. + +# The name of your application package as defined in the manifest. +# Used by the 'uninstall' rule. +application-package=org.madbutterfly.android.examples.testpath diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/tests/build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/tests/build.xml Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/tests/default.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/tests/default.properties Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,11 @@ +# 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 use, +# "build.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-4 diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/tests/local.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/tests/local.properties Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,10 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must *NOT* be checked in Version Control Systems, +# as it contains information specific to your local configuration. + +# location of the SDK. This is only used by Ant +# For customization when using a Version Control System, please read the +# header note. +sdk-location=/home/thinker/progm/Android/out/host/freebsd-x86/sdk/android-sdk_eng.thinker_freebsd-x86 diff -r f06eba21db1c -r e505597c17fb Android/examples/testpath/tests/src/org/madbutterfly/android/examples/testpath/testpathTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/examples/testpath/tests/src/org/madbutterfly/android/examples/testpath/testpathTest.java Tue Dec 01 22:55:08 2009 +0800 @@ -0,0 +1,21 @@ +package org.madbutterfly.android.examples.testpath; + +import android.test.ActivityInstrumentationTestCase2; + +/** + * This is a simple framework for a test of an Application. See + * {@link android.test.ApplicationTestCase ApplicationTestCase} for more information on + * how to write and extend Application tests. + *

+ * To run this test, you can type: + * adb shell am instrument -w \ + * -e class org.madbutterfly.android.examples.testpath.testpathTest \ + * org.madbutterfly.android.examples.testpath.tests/android.test.InstrumentationTestRunner + */ +public class testpathTest extends ActivityInstrumentationTestCase2 { + + public testpathTest() { + super("org.madbutterfly.android.examples.testpath", testpath.class); + } + +}