From b9adc902c0bc631675993dcb5deaf644ce57c397 Mon Sep 17 00:00:00 2001 From: gumartinm Date: Thu, 3 May 2012 02:50:29 +0200 Subject: [PATCH] Latest changes in Android MobiAds. List with the received ads. --- Android/MobiAds/AndroidManifest.xml | 15 +++- Android/MobiAds/gen/de/android/mobiads/R.java | 36 ++++++--- Android/MobiAds/res/layout/mobiadslist.xml | 16 ++++ Android/MobiAds/res/layout/mobiadsmain.xml | 28 +++++-- .../MobiAds/res/layout/news_entry_list_item.xml | 40 +++++++++ Android/MobiAds/res/values/strings.xml | 5 +- .../de/android/mobiads/MobiAdsMainActivity.java | 29 ++++++- .../src/de/android/mobiads/batch/MobiAdsBatch.java | 9 ++- .../src/de/android/mobiads/list/AdsEntry.java | 42 ++++++++++ .../de/android/mobiads/list/AdsEntryAdapter.java | 94 ++++++++++++++++++++++ .../android/mobiads/list/MobiAdsListActivity.java | 74 +++++++++++++++++ .../src/de/android/mobiads/provider/Indexer.java | 12 +++ .../mobiads/provider/IndexerOpenHelper.java | 9 ++- .../android/mobiads/provider/IndexerProvider.java | 8 +- 14 files changed, 385 insertions(+), 32 deletions(-) create mode 100644 Android/MobiAds/res/layout/mobiadslist.xml create mode 100644 Android/MobiAds/res/layout/news_entry_list_item.xml create mode 100644 Android/MobiAds/src/de/android/mobiads/list/AdsEntry.java create mode 100644 Android/MobiAds/src/de/android/mobiads/list/AdsEntryAdapter.java create mode 100644 Android/MobiAds/src/de/android/mobiads/list/MobiAdsListActivity.java diff --git a/Android/MobiAds/AndroidManifest.xml b/Android/MobiAds/AndroidManifest.xml index af81fea..a6b0675 100644 --- a/Android/MobiAds/AndroidManifest.xml +++ b/Android/MobiAds/AndroidManifest.xml @@ -2,7 +2,8 @@ + android:versionName="1.0" + android:installLocation="internalOnly"> @@ -41,6 +42,18 @@ + + + + + + + diff --git a/Android/MobiAds/gen/de/android/mobiads/R.java b/Android/MobiAds/gen/de/android/mobiads/R.java index 93833a5..e3278a0 100644 --- a/Android/MobiAds/gen/de/android/mobiads/R.java +++ b/Android/MobiAds/gen/de/android/mobiads/R.java @@ -15,39 +15,55 @@ public final class R { public static final int ic_launcher=0x7f020001; } public static final class id { + public static final int ads_entry_icon=0x7f05000f; + public static final int ads_entry_text=0x7f050011; + public static final int ads_entry_title=0x7f050010; + public static final int button_bind=0x7f050007; + public static final int button_lislocalads=0x7f05000e; + public static final int button_startservice=0x7f05000c; + public static final int button_stopservice=0x7f05000a; + public static final int button_unbind=0x7f050008; public static final int cancel_button=0x7f050005; public static final int frameLayout1=0x7f050000; public static final int frameLayout2=0x7f050003; + public static final int frameLayout3=0x7f050009; + public static final int frameLayout4=0x7f05000b; + public static final int frameLayout5=0x7f05000d; + public static final int list=0x7f050006; 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 int mobiadslist=0x7f030001; + public static final int mobiadsmain=0x7f030002; + public static final int news_entry_list_item=0x7f030003; } 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_cancel=0x7f04000f; public static final int button_login=0x7f040008; public static final int button_messagebind=0x7f040009; + public static final int button_messagelistlocalads=0x7f04000d; 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=0x7f040015; + public static final int button_ok=0x7f04000e; + public static final int desc=0x7f040017; + public static final int encoded_web_service=0x7f040016; 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 url_web=0x7f040013; - public static final int user_agent_web_service=0x7f040014; + public static final int remote_service_label=0x7f040012; + public static final int remote_service_started=0x7f040010; + public static final int remote_service_stopped=0x7f040011; + public static final int url_login_web_service=0x7f040013; + public static final int url_web=0x7f040014; + public static final int user_agent_web_service=0x7f040015; public static final int username=0x7f040006; } } diff --git a/Android/MobiAds/res/layout/mobiadslist.xml b/Android/MobiAds/res/layout/mobiadslist.xml new file mode 100644 index 0000000..dd5ea07 --- /dev/null +++ b/Android/MobiAds/res/layout/mobiadslist.xml @@ -0,0 +1,16 @@ + + + + + + + + \ No newline at end of file diff --git a/Android/MobiAds/res/layout/mobiadsmain.xml b/Android/MobiAds/res/layout/mobiadsmain.xml index 552d337..962752c 100644 --- a/Android/MobiAds/res/layout/mobiadsmain.xml +++ b/Android/MobiAds/res/layout/mobiadsmain.xml @@ -15,46 +15,58 @@ android:layout_height="30dp">