blob: e6d815e9a5740ea9290a85065fc703169d4e9f94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<LinearLayout 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"
android:orientation="vertical" >
<TextView
android:id="@+id/statustext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/hello_msg"
tools:context=".MainActivity" />
<Button
android:id="@+id/start_scan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="startScannerActivity"
android:text="@string/start_scan"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/command" />
<EditText
android:id="@+id/command"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:imeOptions="actionDone"
android:imeActionLabel="Run" />
<Button
android:id="@+id/wificonfig"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="getWifiConfig"
android:text="@string/wificonfig"/>
<Button
android:id="@+id/ipconfig"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="getIpConfig"
android:text="@string/ipconfig"/>
<TextView
android:id="@+id/ipaddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/netmask"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/gateway"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/dns"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/sysinfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="getSysInfo"
android:text="@string/sysinfo"/>
<TextView
android:id="@+id/sysname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/systime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/macaddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/setup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="getWifiLink"
android:text="@string/setup"/>
<ListView
android:id="@+id/networks"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
|