Skip to content

Commit b546bc7

Browse files
Initial commit
1 parent 45f8666 commit b546bc7

33 files changed

+1114
-0
lines changed

ApacheHttpTestClient/.classpath

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
5+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
8+
<classpathentry kind="output" path="bin/classes"/>
9+
</classpath>

ApacheHttpTestClient/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin

ApacheHttpTestClient/.project

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>ApacheHttpTestClient</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.survivingwithandroid"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="11"
9+
android:targetSdkVersion="17" />
10+
<uses-permission android:name="android.permission.INTERNET"/>
11+
12+
<application
13+
android:allowBackup="true"
14+
android:icon="@drawable/ic_launcher"
15+
android:label="@string/app_name"
16+
android:theme="@style/AppTheme" >
17+
<activity
18+
android:name="com.survivingwithandroid.MainActivity"
19+
android:label="@string/app_name" >
20+
<intent-filter>
21+
<action android:name="android.intent.action.MAIN" />
22+
23+
<category android:name="android.intent.category.LAUNCHER" />
24+
</intent-filter>
25+
</activity>
26+
27+
<activity
28+
android:name="com.survivingwithandroid.DownloadActivity" />
29+
30+
<activity
31+
android:name="com.survivingwithandroid.UploadActivity" />
32+
33+
<activity
34+
android:name="com.survivingwithandroid.CookieActivity" />
35+
36+
</application>
37+
38+
</manifest>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** Automatically generated file. DO NOT MODIFY */
2+
package com.survivingwithandroid;
3+
4+
public final class BuildConfig {
5+
public final static boolean DEBUG = true;
6+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/* AUTO-GENERATED FILE. DO NOT MODIFY.
2+
*
3+
* This class was automatically generated by the
4+
* aapt tool from the resource data it found. It
5+
* should not be modified by hand.
6+
*/
7+
8+
package com.survivingwithandroid;
9+
10+
public final class R {
11+
public static final class attr {
12+
}
13+
public static final class dimen {
14+
/** Default screen margins, per the Android Design guidelines.
15+
16+
Customize dimensions originally defined in res/values/dimens.xml (such as
17+
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
18+
19+
*/
20+
public static final int activity_horizontal_margin=0x7f040000;
21+
public static final int activity_vertical_margin=0x7f040001;
22+
}
23+
public static final class drawable {
24+
public static final int ic_launcher=0x7f020000;
25+
public static final int logo=0x7f020001;
26+
}
27+
public static final class id {
28+
public static final int action_progress=0x7f080010;
29+
public static final int btnCookie=0x7f080009;
30+
public static final int btnDownload=0x7f080008;
31+
public static final int btnUpload=0x7f08000a;
32+
public static final int buttonSend=0x7f080004;
33+
public static final int editText1=0x7f080003;
34+
public static final int editText2=0x7f080007;
35+
public static final int editTextUpl1=0x7f08000b;
36+
public static final int editTextUpl2=0x7f08000c;
37+
public static final int edtResp=0x7f080005;
38+
public static final int imgView1=0x7f080001;
39+
public static final int progressBar=0x7f08000f;
40+
public static final int sendCookie=0x7f080000;
41+
public static final int textView1=0x7f080002;
42+
public static final int textView2=0x7f080006;
43+
public static final int textView3=0x7f08000e;
44+
public static final int upload=0x7f08000d;
45+
}
46+
public static final class layout {
47+
public static final int activity_cookie=0x7f030000;
48+
public static final int activity_download=0x7f030001;
49+
public static final int activity_main=0x7f030002;
50+
public static final int activity_upload=0x7f030003;
51+
public static final int progress=0x7f030004;
52+
}
53+
public static final class menu {
54+
public static final int main=0x7f070000;
55+
}
56+
public static final class string {
57+
public static final int action_settings=0x7f050001;
58+
public static final int app_name=0x7f050000;
59+
public static final int hello_world=0x7f050002;
60+
}
61+
public static final class style {
62+
/**
63+
Base application theme, dependent on API level. This theme is replaced
64+
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
65+
66+
67+
Theme customizations available in newer API levels can go in
68+
res/values-vXX/styles.xml, while customizations related to
69+
backward-compatibility can go here.
70+
71+
72+
Base application theme for API 11+. This theme completely replaces
73+
AppBaseTheme from res/values/styles.xml on API 11+ devices.
74+
75+
API 11 theme customizations can go here.
76+
77+
Base application theme for API 14+. This theme completely replaces
78+
AppBaseTheme from BOTH res/values/styles.xml and
79+
res/values-v11/styles.xml on API 14+ devices.
80+
81+
API 14 theme customizations can go here.
82+
*/
83+
public static final int AppBaseTheme=0x7f060000;
84+
/** Application theme.
85+
All customizations that are NOT specific to a particular API-level can go here.
86+
*/
87+
public static final int AppTheme=0x7f060001;
88+
}
89+
}
18.4 KB
Loading
Binary file not shown.
25.9 KB
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# To enable ProGuard in your project, edit project.properties
2+
# to define the proguard.config property as described in that file.
3+
#
4+
# Add project specific ProGuard rules here.
5+
# By default, the flags in this file are appended to flags specified
6+
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7+
# You can edit the include path and order by changing the ProGuard
8+
# include property in project.properties.
9+
#
10+
# For more details, see
11+
# http://developer.android.com/guide/developing/tools/proguard.html
12+
13+
# Add any project specific keep options here:
14+
15+
# If your project uses WebView with JS, uncomment the following
16+
# and specify the fully qualified class name to the JavaScript interface
17+
# class:
18+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19+
# public *;
20+
#}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=android-17
Loading
Loading
Loading
Loading
30.7 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:paddingBottom="@dimen/activity_vertical_margin"
6+
android:paddingLeft="@dimen/activity_horizontal_margin"
7+
android:paddingRight="@dimen/activity_horizontal_margin"
8+
android:paddingTop="@dimen/activity_vertical_margin"
9+
tools:context=".MainActivity" >
10+
11+
12+
13+
<Button
14+
android:id="@+id/sendCookie"
15+
android:layout_width="wrap_content"
16+
android:layout_height="wrap_content"
17+
android:layout_centerHorizontal="true"
18+
android:layout_centerVertical="true"
19+
android:text="Exchange cookie" />
20+
21+
22+
23+
</RelativeLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:paddingBottom="@dimen/activity_vertical_margin"
6+
android:paddingLeft="@dimen/activity_horizontal_margin"
7+
android:paddingRight="@dimen/activity_horizontal_margin"
8+
android:paddingTop="@dimen/activity_vertical_margin"
9+
tools:context=".MainActivity" >
10+
11+
<ImageView android:id="@+id/imgView1"
12+
android:layout_width="wrap_content"
13+
android:layout_height="wrap_content"/>
14+
</RelativeLayout>
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:paddingBottom="@dimen/activity_vertical_margin"
6+
android:paddingLeft="@dimen/activity_horizontal_margin"
7+
android:paddingRight="@dimen/activity_horizontal_margin"
8+
android:paddingTop="@dimen/activity_vertical_margin"
9+
tools:context=".MainActivity" >
10+
11+
<TextView
12+
android:id="@+id/textView1"
13+
android:layout_width="wrap_content"
14+
android:layout_height="wrap_content"
15+
android:layout_alignParentLeft="true"
16+
android:layout_alignParentTop="true"
17+
android:text="Name"
18+
android:textAppearance="?android:attr/textAppearanceMedium"
19+
android:layout_marginTop="15dp"/>
20+
21+
<EditText
22+
android:id="@+id/editText1"
23+
android:layout_width="wrap_content"
24+
android:layout_height="wrap_content"
25+
android:layout_alignBottom="@+id/textView1"
26+
android:layout_toRightOf="@+id/textView1"
27+
android:ems="10" >
28+
29+
<requestFocus />
30+
</EditText>
31+
32+
<Button
33+
android:id="@+id/buttonSend"
34+
android:layout_width="wrap_content"
35+
android:layout_height="wrap_content"
36+
android:layout_below="@+id/editText1"
37+
android:layout_centerHorizontal="true"
38+
android:text="Send" />
39+
40+
<EditText
41+
android:id="@+id/edtResp"
42+
android:layout_width="wrap_content"
43+
android:layout_height="wrap_content"
44+
android:layout_alignLeft="@+id/textView1"
45+
android:layout_alignRight="@+id/editText1"
46+
android:layout_below="@+id/buttonSend"
47+
android:layout_marginLeft="16dp"
48+
android:layout_marginTop="86dp"
49+
android:ems="10"
50+
android:inputType="textMultiLine"
51+
android:lines="6"
52+
android:editable="false"/>
53+
54+
<TextView
55+
android:id="@+id/textView2"
56+
android:layout_width="wrap_content"
57+
android:layout_height="wrap_content"
58+
android:layout_alignLeft="@+id/editText2"
59+
android:layout_below="@+id/buttonSend"
60+
android:layout_marginTop="55dp"
61+
android:text="Response"
62+
android:textAppearance="?android:attr/textAppearanceMedium" />
63+
64+
<Button
65+
android:id="@+id/btnDownload"
66+
android:layout_width="wrap_content"
67+
android:layout_height="wrap_content"
68+
android:layout_alignParentBottom="true"
69+
android:layout_alignParentLeft="true"
70+
android:text="Download" />
71+
72+
<Button
73+
android:id="@+id/btnCookie"
74+
android:layout_width="wrap_content"
75+
android:layout_height="wrap_content"
76+
android:layout_alignParentBottom="true"
77+
android:layout_toRightOf="@id/btnDownload"
78+
android:text="Cookie" />
79+
80+
<Button
81+
android:id="@+id/btnUpload"
82+
android:layout_width="wrap_content"
83+
android:layout_height="wrap_content"
84+
android:layout_alignBaseline="@+id/btnDownload"
85+
android:layout_alignBottom="@+id/btnDownload"
86+
android:layout_alignParentRight="true"
87+
android:layout_marginRight="22dp"
88+
android:text="Upload" />
89+
90+
</RelativeLayout>

0 commit comments

Comments
 (0)