From: gumartinm Date: Mon, 19 Mar 2012 23:06:35 +0000 (+0100) Subject: First steps implementing my MobiAds Android app. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=a52e701ef2c84ec6c937f10cab51d7b6763a86c4;p=JavaForFun First steps implementing my MobiAds Android app. --- diff --git a/Android/MobiAds/AndroidManifest.xml b/Android/MobiAds/AndroidManifest.xml new file mode 100644 index 0000000..41b37c2 --- /dev/null +++ b/Android/MobiAds/AndroidManifest.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Android/MobiAds/gen/de/android/mobiads/R.java b/Android/MobiAds/gen/de/android/mobiads/R.java new file mode 100644 index 0000000..417c50b --- /dev/null +++ b/Android/MobiAds/gen/de/android/mobiads/R.java @@ -0,0 +1,52 @@ +/* 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.mobiads; + +public final class R { + public static final class attr { + } + public static final class drawable { + public static final int alert_dialog_icon=0x7f020000; + public static final int ic_launcher=0x7f020001; + } + public static final class id { + 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 mobiadsmain=0x7f030001; + } + public static final class string { + public static final int alert_dialog_cancel=0x7f040003; + public static final int app_description=0x7f040002; + public static final int app_name=0x7f040001; + public static final int button_cancel=0x7f04000e; + public static final int button_login=0x7f040008; + public static final int button_messagebind=0x7f040009; + public static final int button_messagestartservice=0x7f04000c; + public static final int button_messagestopservice=0x7f04000b; + public static final int button_messageunbind=0x7f04000a; + public static final int button_ok=0x7f04000d; + public static final int encoded_web_service=0x7f040014; + public static final int error_dialog_connection_error=0x7f040004; + public static final int error_dialog_userpwd_error=0x7f040005; + public static final int hello=0x7f040000; + public static final int password=0x7f040007; + public static final int remote_service_label=0x7f040011; + public static final int remote_service_started=0x7f04000f; + public static final int remote_service_stopped=0x7f040010; + public static final int url_login_web_service=0x7f040012; + public static final int user_agent_web_service=0x7f040013; + public static final int username=0x7f040006; + } +} diff --git a/Android/MobiAds/proguard.cfg b/Android/MobiAds/proguard.cfg new file mode 100644 index 0000000..b1cdf17 --- /dev/null +++ b/Android/MobiAds/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/MobiAds/project.properties b/Android/MobiAds/project.properties new file mode 100644 index 0000000..8da376a --- /dev/null +++ b/Android/MobiAds/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-15 diff --git a/Android/MobiAds/res/drawable-hdpi/alert_dialog_icon.png b/Android/MobiAds/res/drawable-hdpi/alert_dialog_icon.png new file mode 100755 index 0000000..fe54477 Binary files /dev/null and b/Android/MobiAds/res/drawable-hdpi/alert_dialog_icon.png differ diff --git a/Android/MobiAds/res/drawable-hdpi/ic_launcher.png b/Android/MobiAds/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..8074c4c Binary files /dev/null and b/Android/MobiAds/res/drawable-hdpi/ic_launcher.png differ diff --git a/Android/MobiAds/res/drawable-ldpi/ic_launcher.png b/Android/MobiAds/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..1095584 Binary files /dev/null and b/Android/MobiAds/res/drawable-ldpi/ic_launcher.png differ diff --git a/Android/MobiAds/res/drawable-mdpi/ic_launcher.png b/Android/MobiAds/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..a07c69f Binary files /dev/null and b/Android/MobiAds/res/drawable-mdpi/ic_launcher.png differ diff --git a/Android/MobiAds/res/layout/main.xml b/Android/MobiAds/res/layout/main.xml new file mode 100644 index 0000000..1e03635 --- /dev/null +++ b/Android/MobiAds/res/layout/main.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + +