From ca6ec915f5c06be8a338a19be9822d18ad1f958b Mon Sep 17 00:00:00 2001 From: gumartinm Date: Thu, 24 Nov 2011 01:53:07 +0100 Subject: [PATCH] First program with more than 1 activity. First steps with a http connection. Trying to use my WebService --- Android/Testing/Test1/AndroidManifest.xml | 16 +++++- Android/Testing/Test1/default.properties | 11 ++++ Android/Testing/Test1/gen/de/android/test1/R.java | 14 ++++- Android/Testing/Test1/res/layout/main.xml | 64 ++++++++++++++++------ Android/Testing/Test1/res/layout/main2.xml | 13 +++++ Android/Testing/Test1/res/values/strings.xml | 7 +++ .../Test1/src/de/android/test1/NextActivity.java | 13 +++++ .../Test1/src/de/android/test1/Test1Activity.java | 37 +++++++++++++ 8 files changed, 154 insertions(+), 21 deletions(-) create mode 100644 Android/Testing/Test1/default.properties create mode 100644 Android/Testing/Test1/res/layout/main2.xml create mode 100644 Android/Testing/Test1/src/de/android/test1/NextActivity.java diff --git a/Android/Testing/Test1/AndroidManifest.xml b/Android/Testing/Test1/AndroidManifest.xml index 0084493..2ff5f86 100644 --- a/Android/Testing/Test1/AndroidManifest.xml +++ b/Android/Testing/Test1/AndroidManifest.xml @@ -4,20 +4,30 @@ android:versionCode="1" android:versionName="1.0" > - + + android:name=".Test1Activity" + android:screenOrientation="portrait" + android:configChanges="touchscreen|keyboard" + android:theme="@android:style/Theme.Black" + android:permission="android.permission.ACCESS_FINE_LOCATION" + android:launchMode="standard"> - + + + + \ No newline at end of file diff --git a/Android/Testing/Test1/default.properties b/Android/Testing/Test1/default.properties new file mode 100644 index 0000000..ac9e1a0 --- /dev/null +++ b/Android/Testing/Test1/default.properties @@ -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-13 diff --git a/Android/Testing/Test1/gen/de/android/test1/R.java b/Android/Testing/Test1/gen/de/android/test1/R.java index 34d4ccc..2e84069 100644 --- a/Android/Testing/Test1/gen/de/android/test1/R.java +++ b/Android/Testing/Test1/gen/de/android/test1/R.java @@ -14,14 +14,24 @@ public final class R { public static final int ic_launcher=0x7f020000; } public static final class id { - public static final int ok=0x7f050000; + public static final int cancel_button=0x7f050005; + public static final int frameLayout1=0x7f050000; + public static final int frameLayout2=0x7f050003; + public static final int login_button=0x7f050004; + public static final int password=0x7f050002; + public static final int username=0x7f050001; } public static final class layout { public static final int main=0x7f030000; + public static final int main2=0x7f030001; } public static final class string { public static final int app_name=0x7f040001; - public static final int button_ok=0x7f040002; + public static final int button_cancel=0x7f040006; + public static final int button_login=0x7f040004; + public static final int button_ok=0x7f040005; public static final int hello=0x7f040000; + public static final int password=0x7f040003; + public static final int username=0x7f040002; } } diff --git a/Android/Testing/Test1/res/layout/main.xml b/Android/Testing/Test1/res/layout/main.xml index a372bc4..15264ad 100644 --- a/Android/Testing/Test1/res/layout/main.xml +++ b/Android/Testing/Test1/res/layout/main.xml @@ -1,21 +1,53 @@ - - - -