diff options
author | Koushik Dutta <koushd@gmail.com> | 2012-08-24 09:39:47 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2012-08-24 09:39:47 -0700 |
commit | 7b7540379004272830dab781ab442d4870fbb7a2 (patch) | |
tree | b07dd78d2af4276081d734f97348a7e7ab457276 /AndroidAsyncSample | |
parent | 49c71bfea06f9e27d3f1390a14890f871bb44e7f (diff) | |
download | AndroidAsync-7b7540379004272830dab781ab442d4870fbb7a2.tar.gz AndroidAsync-7b7540379004272830dab781ab442d4870fbb7a2.tar.bz2 AndroidAsync-7b7540379004272830dab781ab442d4870fbb7a2.zip |
sample
Diffstat (limited to 'AndroidAsyncSample')
24 files changed, 242 insertions, 0 deletions
diff --git a/AndroidAsyncSample/.classpath b/AndroidAsyncSample/.classpath new file mode 100644 index 0000000..3f9691c --- /dev/null +++ b/AndroidAsyncSample/.classpath @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> + <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="src" path="gen"/> + <classpathentry kind="output" path="bin/classes"/> +</classpath> diff --git a/AndroidAsyncSample/.project b/AndroidAsyncSample/.project new file mode 100644 index 0000000..14bc456 --- /dev/null +++ b/AndroidAsyncSample/.project @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>AndroidAsyncSample</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>com.android.ide.eclipse.adt.ApkBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>com.android.ide.eclipse.adt.AndroidNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/AndroidAsyncSample/AndroidManifest.xml b/AndroidAsyncSample/AndroidManifest.xml new file mode 100644 index 0000000..e92f241 --- /dev/null +++ b/AndroidAsyncSample/AndroidManifest.xml @@ -0,0 +1,25 @@ +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.koushikdutta.async.test" + android:versionCode="1" + android:versionName="1.0" > + + <uses-sdk + android:minSdkVersion="8" + android:targetSdkVersion="15" /> + + <application + android:icon="@drawable/ic_launcher" + android:label="@string/app_name" + android:theme="@style/AppTheme" > + <activity + android:name=".MainActivity" + android:label="@string/title_activity_main" > + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest>
\ No newline at end of file diff --git a/AndroidAsyncSample/gen/com/koushikdutta/async/R.java b/AndroidAsyncSample/gen/com/koushikdutta/async/R.java new file mode 100644 index 0000000..fd5a33a --- /dev/null +++ b/AndroidAsyncSample/gen/com/koushikdutta/async/R.java @@ -0,0 +1,36 @@ +/* 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 com.koushikdutta.async; + +public final class R { + public static final class attr { + } + public static final class drawable { + public static final int ic_action_search=0x7f020000; + public static final int ic_launcher=0x7f020001; + } + public static final class id { + public static final int menu_settings=0x7f070000; + } + public static final class layout { + public static final int activity_main=0x7f030000; + } + public static final class menu { + public static final int activity_main=0x7f060000; + } + public static final class string { + public static final int app_name=0x7f040001; + public static final int hello_world=0x7f040002; + public static final int menu_settings=0x7f040003; + public static final int name=0x7f040000; + public static final int title_activity_main=0x7f040004; + } + public static final class style { + public static final int AppTheme=0x7f050000; + } +} diff --git a/AndroidAsyncSample/gen/com/koushikdutta/async/test/BuildConfig.java b/AndroidAsyncSample/gen/com/koushikdutta/async/test/BuildConfig.java new file mode 100644 index 0000000..b92f35f --- /dev/null +++ b/AndroidAsyncSample/gen/com/koushikdutta/async/test/BuildConfig.java @@ -0,0 +1,6 @@ +/** Automatically generated file. DO NOT MODIFY */ +package com.koushikdutta.async.test; + +public final class BuildConfig { + public final static boolean DEBUG = true; +}
\ No newline at end of file diff --git a/AndroidAsyncSample/gen/com/koushikdutta/async/test/R.java b/AndroidAsyncSample/gen/com/koushikdutta/async/test/R.java new file mode 100644 index 0000000..4972632 --- /dev/null +++ b/AndroidAsyncSample/gen/com/koushikdutta/async/test/R.java @@ -0,0 +1,36 @@ +/* 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 com.koushikdutta.async.test; + +public final class R { + public static final class attr { + } + public static final class drawable { + public static final int ic_action_search=0x7f020000; + public static final int ic_launcher=0x7f020001; + } + public static final class id { + public static final int menu_settings=0x7f070000; + } + public static final class layout { + public static final int activity_main=0x7f030000; + } + public static final class menu { + public static final int activity_main=0x7f060000; + } + public static final class string { + public static final int app_name=0x7f040001; + public static final int hello_world=0x7f040002; + public static final int menu_settings=0x7f040003; + public static final int name=0x7f040000; + public static final int title_activity_main=0x7f040004; + } + public static final class style { + public static final int AppTheme=0x7f050000; + } +} diff --git a/AndroidAsyncSample/ic_launcher-web.png b/AndroidAsyncSample/ic_launcher-web.png Binary files differnew file mode 100644 index 0000000..c37372a --- /dev/null +++ b/AndroidAsyncSample/ic_launcher-web.png diff --git a/AndroidAsyncSample/libs/android-support-v4.jar b/AndroidAsyncSample/libs/android-support-v4.jar Binary files differnew file mode 100644 index 0000000..feaf44f --- /dev/null +++ b/AndroidAsyncSample/libs/android-support-v4.jar diff --git a/AndroidAsyncSample/proguard-project.txt b/AndroidAsyncSample/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/AndroidAsyncSample/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/AndroidAsyncSample/project.properties b/AndroidAsyncSample/project.properties new file mode 100644 index 0000000..cf0295b --- /dev/null +++ b/AndroidAsyncSample/project.properties @@ -0,0 +1,15 @@ +# 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 edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-16 +android.library.reference.1=../AndroidAsync diff --git a/AndroidAsyncSample/res/drawable-hdpi/ic_action_search.png b/AndroidAsyncSample/res/drawable-hdpi/ic_action_search.png Binary files differnew file mode 100644 index 0000000..67de12d --- /dev/null +++ b/AndroidAsyncSample/res/drawable-hdpi/ic_action_search.png diff --git a/AndroidAsyncSample/res/drawable-hdpi/ic_launcher.png b/AndroidAsyncSample/res/drawable-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..a301d57 --- /dev/null +++ b/AndroidAsyncSample/res/drawable-hdpi/ic_launcher.png diff --git a/AndroidAsyncSample/res/drawable-ldpi/ic_launcher.png b/AndroidAsyncSample/res/drawable-ldpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..2c2a58b --- /dev/null +++ b/AndroidAsyncSample/res/drawable-ldpi/ic_launcher.png diff --git a/AndroidAsyncSample/res/drawable-mdpi/ic_action_search.png b/AndroidAsyncSample/res/drawable-mdpi/ic_action_search.png Binary files differnew file mode 100644 index 0000000..134d549 --- /dev/null +++ b/AndroidAsyncSample/res/drawable-mdpi/ic_action_search.png diff --git a/AndroidAsyncSample/res/drawable-mdpi/ic_launcher.png b/AndroidAsyncSample/res/drawable-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..f91f736 --- /dev/null +++ b/AndroidAsyncSample/res/drawable-mdpi/ic_launcher.png diff --git a/AndroidAsyncSample/res/drawable-xhdpi/ic_action_search.png b/AndroidAsyncSample/res/drawable-xhdpi/ic_action_search.png Binary files differnew file mode 100644 index 0000000..d699c6b --- /dev/null +++ b/AndroidAsyncSample/res/drawable-xhdpi/ic_action_search.png diff --git a/AndroidAsyncSample/res/drawable-xhdpi/ic_launcher.png b/AndroidAsyncSample/res/drawable-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..96095ec --- /dev/null +++ b/AndroidAsyncSample/res/drawable-xhdpi/ic_launcher.png diff --git a/AndroidAsyncSample/res/layout/activity_main.xml b/AndroidAsyncSample/res/layout/activity_main.xml new file mode 100644 index 0000000..8f4c7f8 --- /dev/null +++ b/AndroidAsyncSample/res/layout/activity_main.xml @@ -0,0 +1,14 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" + android:text="@string/hello_world" + tools:context=".MainActivity" /> + +</RelativeLayout> diff --git a/AndroidAsyncSample/res/menu/activity_main.xml b/AndroidAsyncSample/res/menu/activity_main.xml new file mode 100644 index 0000000..cfc10fd --- /dev/null +++ b/AndroidAsyncSample/res/menu/activity_main.xml @@ -0,0 +1,6 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/menu_settings" + android:title="@string/menu_settings" + android:orderInCategory="100" + android:showAsAction="never" /> +</menu> diff --git a/AndroidAsyncSample/res/values-v11/styles.xml b/AndroidAsyncSample/res/values-v11/styles.xml new file mode 100644 index 0000000..d408cbc --- /dev/null +++ b/AndroidAsyncSample/res/values-v11/styles.xml @@ -0,0 +1,5 @@ +<resources> + + <style name="AppTheme" parent="android:Theme.Holo.Light" /> + +</resources>
\ No newline at end of file diff --git a/AndroidAsyncSample/res/values-v14/styles.xml b/AndroidAsyncSample/res/values-v14/styles.xml new file mode 100644 index 0000000..1c089a7 --- /dev/null +++ b/AndroidAsyncSample/res/values-v14/styles.xml @@ -0,0 +1,5 @@ +<resources> + + <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" /> + +</resources>
\ No newline at end of file diff --git a/AndroidAsyncSample/res/values/strings.xml b/AndroidAsyncSample/res/values/strings.xml new file mode 100644 index 0000000..2022835 --- /dev/null +++ b/AndroidAsyncSample/res/values/strings.xml @@ -0,0 +1,8 @@ +<resources> + + <string name="app_name">AndroidAsyncSample</string> + <string name="hello_world">Hello world!</string> + <string name="menu_settings">Settings</string> + <string name="title_activity_main">MainActivity</string> + +</resources>
\ No newline at end of file diff --git a/AndroidAsyncSample/res/values/styles.xml b/AndroidAsyncSample/res/values/styles.xml new file mode 100644 index 0000000..4dba0d0 --- /dev/null +++ b/AndroidAsyncSample/res/values/styles.xml @@ -0,0 +1,5 @@ +<resources> + + <style name="AppTheme" parent="android:Theme.Light" /> + +</resources>
\ No newline at end of file diff --git a/AndroidAsyncSample/src/com/koushikdutta/async/test/MainActivity.java b/AndroidAsyncSample/src/com/koushikdutta/async/test/MainActivity.java new file mode 100644 index 0000000..00d6a19 --- /dev/null +++ b/AndroidAsyncSample/src/com/koushikdutta/async/test/MainActivity.java @@ -0,0 +1,20 @@ +package com.koushikdutta.async.test; + +import android.os.Bundle; +import android.app.Activity; +import android.view.Menu; + +public class MainActivity extends Activity { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + getMenuInflater().inflate(R.menu.activity_main, menu); + return true; + } +} |