From: gumartinm Date: Wed, 23 Nov 2011 02:22:56 +0000 (+0100) Subject: First steps with Android. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=a4f9d9cf5c174c1a258784b36a78bb3df03b591f;p=JavaForFun First steps with Android. Playing with activities and tasks. --- diff --git a/Android/Testing/Test1/AndroidManifest.xml b/Android/Testing/Test1/AndroidManifest.xml new file mode 100644 index 0000000..0084493 --- /dev/null +++ b/Android/Testing/Test1/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Android/Testing/Test1/gen/de/android/test1/R.java b/Android/Testing/Test1/gen/de/android/test1/R.java new file mode 100644 index 0000000..34d4ccc --- /dev/null +++ b/Android/Testing/Test1/gen/de/android/test1/R.java @@ -0,0 +1,27 @@ +/* AUTO-GENERATED FILE. DO NOT MODIFY. + * + * This class was automatically generated by the + * aapt tool from the resource data it found. It + * should not be modified by hand. + */ + +package de.android.test1; + +public final class R { + public static final class attr { + } + public static final class drawable { + public static final int ic_launcher=0x7f020000; + } + public static final class id { + public static final int ok=0x7f050000; + } + public static final class layout { + public static final int main=0x7f030000; + } + public static final class string { + public static final int app_name=0x7f040001; + public static final int button_ok=0x7f040002; + public static final int hello=0x7f040000; + } +} diff --git a/Android/Testing/Test1/proguard.cfg b/Android/Testing/Test1/proguard.cfg new file mode 100644 index 0000000..b1cdf17 --- /dev/null +++ b/Android/Testing/Test1/proguard.cfg @@ -0,0 +1,40 @@ +-optimizationpasses 5 +-dontusemixedcaseclassnames +-dontskipnonpubliclibraryclasses +-dontpreverify +-verbose +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* + +-keep public class * extends android.app.Activity +-keep public class * extends android.app.Application +-keep public class * extends android.app.Service +-keep public class * extends android.content.BroadcastReceiver +-keep public class * extends android.content.ContentProvider +-keep public class * extends android.app.backup.BackupAgentHelper +-keep public class * extends android.preference.Preference +-keep public class com.android.vending.licensing.ILicensingService + +-keepclasseswithmembernames class * { + native ; +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +} diff --git a/Android/Testing/Test1/project.properties b/Android/Testing/Test1/project.properties new file mode 100644 index 0000000..730e911 --- /dev/null +++ b/Android/Testing/Test1/project.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, +# "ant.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-14 diff --git a/Android/Testing/Test1/res/drawable-hdpi/ic_launcher.png b/Android/Testing/Test1/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..8074c4c Binary files /dev/null and b/Android/Testing/Test1/res/drawable-hdpi/ic_launcher.png differ diff --git a/Android/Testing/Test1/res/drawable-ldpi/ic_launcher.png b/Android/Testing/Test1/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..1095584 Binary files /dev/null and b/Android/Testing/Test1/res/drawable-ldpi/ic_launcher.png differ diff --git a/Android/Testing/Test1/res/drawable-mdpi/ic_launcher.png b/Android/Testing/Test1/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..a07c69f Binary files /dev/null and b/Android/Testing/Test1/res/drawable-mdpi/ic_launcher.png differ diff --git a/Android/Testing/Test1/res/layout/main.xml b/Android/Testing/Test1/res/layout/main.xml new file mode 100644 index 0000000..a372bc4 --- /dev/null +++ b/Android/Testing/Test1/res/layout/main.xml @@ -0,0 +1,21 @@ + + + + + +