Skip to content

Commit 7bc6ece

Browse files
committed
create
1 parent 1d21bc5 commit 7bc6ece

29 files changed

+1457
-0
lines changed

SocketClient-Android/.classpath

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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 kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7+
<classpathentry kind="output" path="bin/classes"/>
8+
</classpath>

SocketClient-Android/.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>SocketClient-Android</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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#Sun Feb 22 14:43:28 CST 2015
2+
eclipse.preferences.version=1
3+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
5+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6+
org.eclipse.jdt.core.compiler.compliance=1.6
7+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12+
org.eclipse.jdt.core.compiler.source=1.6
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.demo.main"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk android:minSdkVersion="10" />
8+
9+
<uses-permission android:name="android.permission.INTERNET" />
10+
11+
<application
12+
android:icon="@drawable/ic_launcher"
13+
android:label="@string/app_name" >
14+
<activity
15+
android:name=".MainActivity"
16+
android:label="@string/app_name"
17+
android:theme="@android:style/Theme.Light.NoTitleBar" >
18+
<intent-filter>
19+
<action android:name="android.intent.action.MAIN" />
20+
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
</intent-filter>
23+
</activity>
24+
</application>
25+
26+
</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.demo.main;
3+
4+
public final class BuildConfig {
5+
public final static boolean DEBUG = true;
6+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.demo.main;
9+
10+
public final class R {
11+
public static final class attr {
12+
}
13+
public static final class drawable {
14+
public static final int ic_launcher=0x7f020000;
15+
}
16+
public static final class id {
17+
public static final int LinearLayout1=0x7f050000;
18+
public static final int bn_connect=0x7f050005;
19+
public static final int bn_send=0x7f050007;
20+
public static final int ed_dat=0x7f050006;
21+
public static final int ed_ip=0x7f050002;
22+
public static final int ed_port=0x7f050004;
23+
public static final int scrollView1=0x7f050009;
24+
public static final int textView1=0x7f050001;
25+
public static final int textView2=0x7f050003;
26+
public static final int textView4=0x7f050008;
27+
public static final int tx_receive=0x7f05000a;
28+
}
29+
public static final class layout {
30+
public static final int activity_main=0x7f030000;
31+
}
32+
public static final class string {
33+
public static final int app_name=0x7f040001;
34+
public static final int hello=0x7f040000;
35+
}
36+
}
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-15
Loading
Loading
Loading
Loading
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:id="@+id/LinearLayout1"
4+
android:layout_width="fill_parent"
5+
android:layout_height="match_parent"
6+
android:gravity="center_horizontal"
7+
android:orientation="vertical" >
8+
9+
<LinearLayout
10+
android:layout_width="match_parent"
11+
android:layout_height="wrap_content" >
12+
13+
<TextView
14+
android:id="@+id/textView1"
15+
android:layout_width="0dp"
16+
android:layout_height="wrap_content"
17+
android:layout_weight="1"
18+
android:text="IP地址"
19+
android:textAppearance="?android:attr/textAppearanceLarge" />
20+
21+
<EditText
22+
android:id="@+id/ed_ip"
23+
android:layout_width="0dp"
24+
android:layout_height="wrap_content"
25+
android:layout_weight="2.5"
26+
android:ems="10"
27+
android:hint="192.168.1.1"
28+
android:text="192.168.1.1" >
29+
</EditText>
30+
</LinearLayout>
31+
32+
<LinearLayout
33+
android:layout_width="match_parent"
34+
android:layout_height="wrap_content" >
35+
36+
<TextView
37+
android:id="@+id/textView2"
38+
android:layout_width="0dp"
39+
android:layout_height="wrap_content"
40+
android:layout_weight="1"
41+
android:text="端口号"
42+
android:textAppearance="?android:attr/textAppearanceLarge" />
43+
44+
<EditText
45+
android:id="@+id/ed_port"
46+
android:layout_width="0dp"
47+
android:layout_height="wrap_content"
48+
android:layout_weight="1.5"
49+
android:ems="10"
50+
android:hint="1234"
51+
android:inputType="number"
52+
android:text="1234" />
53+
54+
<Button
55+
android:id="@+id/bn_connect"
56+
android:layout_width="0dp"
57+
android:layout_height="wrap_content"
58+
android:layout_weight="1"
59+
android:text="连接"
60+
android:textSize="20sp" />
61+
</LinearLayout>
62+
63+
<LinearLayout
64+
android:layout_width="match_parent"
65+
android:layout_height="wrap_content" >
66+
67+
<EditText
68+
android:id="@+id/ed_dat"
69+
android:layout_width="0dp"
70+
android:layout_height="wrap_content"
71+
android:layout_weight="1"
72+
android:hint="data to send..."
73+
android:inputType="textMultiLine"
74+
android:minLines="3"
75+
android:scrollHorizontally="true"
76+
android:text="test_data" />
77+
78+
<Button
79+
android:id="@+id/bn_send"
80+
android:layout_width="wrap_content"
81+
android:layout_height="wrap_content"
82+
android:text="发送"
83+
android:textSize="30sp" />
84+
</LinearLayout>
85+
86+
<TextView
87+
android:id="@+id/textView4"
88+
android:layout_width="wrap_content"
89+
android:layout_height="wrap_content"
90+
android:text="接收到的数据(点击可清除):"
91+
android:textSize="20sp" />
92+
93+
<ScrollView
94+
android:id="@+id/scrollView1"
95+
android:layout_width="match_parent"
96+
android:layout_height="fill_parent" >
97+
98+
<TextView
99+
android:id="@+id/tx_receive"
100+
android:layout_width="fill_parent"
101+
android:layout_height="wrap_content" />
102+
</ScrollView>
103+
104+
</LinearLayout>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="hello">Hello World, MainActivity!</string>
5+
<string name="app_name">SocketClient-Android</string>
6+
7+
</resources>

0 commit comments

Comments
 (0)