├── .classpath
├── .gradle
└── 1.9
│ └── taskArtifacts
│ ├── cache.properties
│ ├── cache.properties.lock
│ ├── fileHashes.bin
│ ├── fileSnapshots.bin
│ ├── outputFileStates.bin
│ └── taskArtifacts.bin
├── .idea
├── .name
├── compiler.xml
├── copyright
│ └── profiles_settings.xml
├── encodings.xml
├── gradle.xml
├── misc.xml
├── modules.xml
├── scopes
│ └── scope_settings.xml
├── vcs.xml
└── workspace.xml
├── .project
├── Home-Anywhere.iml
├── README.md
├── android.iml
├── app
├── .idea
│ ├── .name
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── dictionaries
│ │ └── phodal.xml
│ ├── encodings.xml
│ ├── gradle.xml
│ ├── libraries
│ │ ├── android_async_http_1_4_2.xml
│ │ ├── gson_2_2_2.xml
│ │ └── support_v4_13_0_0.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── scopes
│ │ └── scope_settings.xml
│ ├── vcs.xml
│ └── workspace.xml
├── app.iml
├── build.gradle
├── build
│ ├── apk
│ │ ├── app-debug-unaligned.apk
│ │ └── app-release-unsigned.apk
│ ├── classes
│ │ ├── debug
│ │ │ └── com
│ │ │ │ └── mokcy
│ │ │ │ └── hello
│ │ │ │ ├── About.class
│ │ │ │ ├── BuildConfig.class
│ │ │ │ ├── GetData$typePhoData.class
│ │ │ │ ├── GetData.class
│ │ │ │ ├── MainActivity$1.class
│ │ │ │ ├── MainActivity$2.class
│ │ │ │ ├── MainActivity$3.class
│ │ │ │ ├── MainActivity$4.class
│ │ │ │ ├── MainActivity.class
│ │ │ │ ├── R$attr.class
│ │ │ │ ├── R$dimen.class
│ │ │ │ ├── R$drawable.class
│ │ │ │ ├── R$id.class
│ │ │ │ ├── R$layout.class
│ │ │ │ ├── R$menu.class
│ │ │ │ ├── R$string.class
│ │ │ │ ├── R$style.class
│ │ │ │ ├── R.class
│ │ │ │ ├── RestClient$1.class
│ │ │ │ ├── RestClient$RequestMethod.class
│ │ │ │ ├── RestClient.class
│ │ │ │ ├── handlerData$typePhoData.class
│ │ │ │ └── handlerData.class
│ │ └── release
│ │ │ └── com
│ │ │ └── mokcy
│ │ │ └── hello
│ │ │ ├── About.class
│ │ │ ├── BuildConfig.class
│ │ │ ├── GetData$typePhoData.class
│ │ │ ├── GetData.class
│ │ │ ├── MainActivity$1.class
│ │ │ ├── MainActivity$2.class
│ │ │ ├── MainActivity$3.class
│ │ │ ├── MainActivity$4.class
│ │ │ ├── MainActivity.class
│ │ │ ├── R$attr.class
│ │ │ ├── R$dimen.class
│ │ │ ├── R$drawable.class
│ │ │ ├── R$id.class
│ │ │ ├── R$layout.class
│ │ │ ├── R$menu.class
│ │ │ ├── R$string.class
│ │ │ ├── R$style.class
│ │ │ ├── R$xml.class
│ │ │ ├── R.class
│ │ │ ├── RestClient$1.class
│ │ │ ├── RestClient$RequestMethod.class
│ │ │ ├── RestClient.class
│ │ │ └── temViewActivity.class
│ ├── incremental
│ │ ├── aidl
│ │ │ ├── debug
│ │ │ │ └── dependency.store
│ │ │ └── release
│ │ │ │ └── dependency.store
│ │ ├── mergeAssets
│ │ │ ├── debug
│ │ │ │ └── merger.xml
│ │ │ └── release
│ │ │ │ └── merger.xml
│ │ └── mergeResources
│ │ │ ├── debug
│ │ │ └── merger.xml
│ │ │ └── release
│ │ │ └── merger.xml
│ ├── libs
│ │ ├── app-debug.ap_
│ │ ├── app-debug.dex
│ │ ├── app-release.ap_
│ │ └── app-release.dex
│ ├── lint-results.html
│ ├── lint-results.xml
│ ├── lint-results_files
│ │ ├── hololike.css
│ │ ├── lint-error.png
│ │ ├── lint-run.png
│ │ └── lint-warning.png
│ ├── manifests
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── release
│ │ │ └── AndroidManifest.xml
│ ├── pre-dexed
│ │ ├── debug
│ │ │ ├── android-async-http-1.4.2-a2b8fac43acd348c43688140d281a90e.jar
│ │ │ ├── gson-2.2.2-317a455f6da8b4725a22f2edd953e9cd.jar
│ │ │ └── support-v4-13.0.0-b6bae00572050bd420ec5c376255fbe0.jar
│ │ └── release
│ │ │ ├── android-async-http-1.4.2-02faa4f8c22cd295a766a99010bf3832.jar
│ │ │ ├── gson-2.2.2-317a455f6da8b4725a22f2edd953e9cd.jar
│ │ │ └── support-v4-13.0.0-b6bae00572050bd420ec5c376255fbe0.jar
│ ├── res
│ │ └── all
│ │ │ ├── debug
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── ic_action_search.png
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-ldpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── ic_action_search.png
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── ic_action_search.png
│ │ │ │ └── ic_launcher.png
│ │ │ ├── layout
│ │ │ │ ├── about.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ ├── data_view.xml
│ │ │ │ └── getdata.xml
│ │ │ ├── menu
│ │ │ │ └── activity_main.xml
│ │ │ ├── values-large
│ │ │ │ └── values.xml
│ │ │ └── values
│ │ │ │ └── values.xml
│ │ │ └── release
│ │ │ ├── drawable-hdpi
│ │ │ ├── ic_action_search.png
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-ldpi
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-mdpi
│ │ │ ├── ic_action_search.png
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ ├── ic_action_search.png
│ │ │ └── ic_launcher.png
│ │ │ ├── layout
│ │ │ ├── about.xml
│ │ │ ├── activity_main.xml
│ │ │ ├── data_view.xml
│ │ │ ├── getdata.xml
│ │ │ ├── ledview.xml
│ │ │ ├── tempview.xml
│ │ │ └── temview.xml
│ │ │ ├── menu
│ │ │ └── activity_main.xml
│ │ │ ├── values-large
│ │ │ └── values.xml
│ │ │ ├── values
│ │ │ └── values.xml
│ │ │ └── xml
│ │ │ └── accessory_filter.xml
│ └── source
│ │ ├── buildConfig
│ │ ├── debug
│ │ │ └── com
│ │ │ │ └── mokcy
│ │ │ │ └── hello
│ │ │ │ └── BuildConfig.java
│ │ └── release
│ │ │ └── com
│ │ │ └── mokcy
│ │ │ └── hello
│ │ │ └── BuildConfig.java
│ │ └── r
│ │ ├── debug
│ │ └── com
│ │ │ └── mokcy
│ │ │ └── hello
│ │ │ └── R.java
│ │ └── release
│ │ └── com
│ │ └── mokcy
│ │ └── hello
│ │ └── R.java
├── libs
│ ├── android-async-http-1.4.2.jar
│ └── robotium-solo-4.3.1.jar
├── local.properties
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── mokcy
│ │ └── hello
│ │ ├── About.java
│ │ ├── GetData.java
│ │ ├── MainActivity.java
│ │ ├── RestClient.java
│ │ └── handlerData.java
│ └── res
│ ├── drawable-hdpi
│ ├── ic_action_search.png
│ └── ic_launcher.png
│ ├── drawable-ldpi
│ └── ic_launcher.png
│ ├── drawable-mdpi
│ ├── ic_action_search.png
│ └── ic_launcher.png
│ ├── drawable-xhdpi
│ ├── ic_action_search.png
│ └── ic_launcher.png
│ ├── layout
│ ├── about.xml
│ ├── activity_main.xml
│ ├── data_view.xml
│ └── getdata.xml
│ ├── menu
│ └── activity_main.xml
│ ├── values-large
│ └── dimens.xml
│ └── values
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
├── build.gradle
├── gradle
├── gradle.iml
├── local.properties
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── import-summary.txt
├── local.properties
└── settings.gradle
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.gradle/1.9/taskArtifacts/cache.properties:
--------------------------------------------------------------------------------
1 | #Thu Dec 26 19:30:54 CST 2013
2 |
--------------------------------------------------------------------------------
/.gradle/1.9/taskArtifacts/cache.properties.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/.gradle/1.9/taskArtifacts/cache.properties.lock
--------------------------------------------------------------------------------
/.gradle/1.9/taskArtifacts/fileHashes.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/.gradle/1.9/taskArtifacts/fileHashes.bin
--------------------------------------------------------------------------------
/.gradle/1.9/taskArtifacts/fileSnapshots.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/.gradle/1.9/taskArtifacts/fileSnapshots.bin
--------------------------------------------------------------------------------
/.gradle/1.9/taskArtifacts/outputFileStates.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/.gradle/1.9/taskArtifacts/outputFileStates.bin
--------------------------------------------------------------------------------
/.gradle/1.9/taskArtifacts/taskArtifacts.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/.gradle/1.9/taskArtifacts/taskArtifacts.bin
--------------------------------------------------------------------------------
/.idea/.name:
--------------------------------------------------------------------------------
1 | gradle
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | $USER_HOME$/.subversion
25 | false
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 | JDK
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 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/workspace.xml:
--------------------------------------------------------------------------------
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 |
93 |
94 |
95 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 | localhost
304 | 5050
305 |
306 |
307 |
308 |
309 |
310 |
311 | 1388057338935
312 | 1388057338935
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Home-Anywhere.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ##最小物联网系统 Android客户端示例
2 |
3 | 主要依赖库:
4 |
5 | - GSON
6 |
7 | ##分支说明
8 |
9 | ###Master分支
10 |
11 | 原始的获取数据的代码。
12 |
13 | ###School分支
14 |
15 | 这是参加比赛时候写的,包含电话报警等功能
16 |
17 | ###xt300
18 |
19 | 适用于Motor xt300手机的代码。
20 |
21 |
22 | ##其他
23 |
24 | 最初的代码写在两年前,而且有一些时候没有在Android开发,所以可能会有些问题,请见谅。
25 |
26 | [1]:http://www.phodal.com
27 |
--------------------------------------------------------------------------------
/android.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/.idea/.name:
--------------------------------------------------------------------------------
1 | Home-Anywhere
--------------------------------------------------------------------------------
/app/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/.idea/dictionaries/phodal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/app/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/.idea/libraries/android_async_http_1_4_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/.idea/libraries/gson_2_2_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/.idea/libraries/support_v4_13_0_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/.idea/misc.xml:
--------------------------------------------------------------------------------
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 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 | localhost
150 | 5050
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 | $USER_HOME$/.subversion
169 | false
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 | JDK
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
--------------------------------------------------------------------------------
/app/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/app.iml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'android'
2 |
3 | android {
4 | compileSdkVersion 19
5 | buildToolsVersion "19.0.0"
6 |
7 | defaultConfig {
8 | minSdkVersion 9
9 | targetSdkVersion 15
10 | }
11 |
12 | buildTypes {
13 | release {
14 | runProguard false
15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
16 | }
17 | }
18 | }
19 |
20 | dependencies {
21 | compile 'com.google.code.gson:gson:2.2.2'
22 | compile 'com.android.support:support-v4:+'
23 | compile files('libs/android-async-http-1.4.2.jar')
24 | }
--------------------------------------------------------------------------------
/app/build/apk/app-debug-unaligned.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/apk/app-debug-unaligned.apk
--------------------------------------------------------------------------------
/app/build/apk/app-release-unsigned.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/apk/app-release-unsigned.apk
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/About.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/About.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/BuildConfig.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/GetData$typePhoData.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/GetData$typePhoData.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/GetData.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/GetData.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/MainActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/MainActivity$1.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/MainActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/MainActivity$2.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/MainActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/MainActivity$3.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/MainActivity$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/MainActivity$4.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/MainActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/MainActivity.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R$attr.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R$dimen.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R$dimen.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R$drawable.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R$id.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R$layout.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R$menu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R$menu.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R$string.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R$style.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R$style.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/R.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/RestClient$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/RestClient$1.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/RestClient$RequestMethod.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/RestClient$RequestMethod.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/RestClient.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/RestClient.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/handlerData$typePhoData.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/handlerData$typePhoData.class
--------------------------------------------------------------------------------
/app/build/classes/debug/com/mokcy/hello/handlerData.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/debug/com/mokcy/hello/handlerData.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/About.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/About.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/BuildConfig.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/GetData$typePhoData.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/GetData$typePhoData.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/GetData.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/GetData.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/MainActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/MainActivity$1.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/MainActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/MainActivity$2.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/MainActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/MainActivity$3.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/MainActivity$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/MainActivity$4.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/MainActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/MainActivity.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$attr.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$dimen.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$dimen.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$drawable.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$id.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$layout.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$menu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$menu.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$string.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$style.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$style.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R$xml.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R$xml.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/R.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/RestClient$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/RestClient$1.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/RestClient$RequestMethod.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/RestClient$RequestMethod.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/RestClient.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/RestClient.class
--------------------------------------------------------------------------------
/app/build/classes/release/com/mokcy/hello/temViewActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/classes/release/com/mokcy/hello/temViewActivity.class
--------------------------------------------------------------------------------
/app/build/incremental/aidl/debug/dependency.store:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/build/incremental/aidl/release/dependency.store:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/build/incremental/mergeAssets/debug/merger.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/build/incremental/mergeAssets/release/merger.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/build/incremental/mergeResources/debug/merger.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
16 |
21 |
26 |
31 |
36 |
41 |
46 |
51 |
56 |
61 |
66 |
69 | 8dp
70 |
71 | 16dp
72 |
73 | 16dp
74 |
75 |
76 |
79 |
80 |
83 |
84 |
87 | GET DATA TEXT
88 |
89 | Stay at Home
90 |
91 | 查看温度
92 |
93 | 设置
94 |
95 | Get Data
96 |
97 | Get data title
98 |
99 | 当前状态
100 |
101 | 最小物联网系统
102 |
103 | LED Off
104 |
105 | dataView
106 |
107 | About
108 |
109 | 获取数据
110 |
111 | ToggleButton
112 |
113 | LED On
114 |
115 | Home Anywhere
116 |
117 | dataGetButton
118 |
119 | Welcome~~
120 |
121 | Say Hello to the
122 |
123 | test for new about
124 |
125 | LED控制示例
126 |
127 | 设置
128 |
129 | showdta text
130 |
131 |
132 |
135 | 8dp
136 |
137 | 8dp
138 |
139 | 16dp
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
--------------------------------------------------------------------------------
/app/build/incremental/mergeResources/release/merger.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
16 |
21 |
26 |
31 |
36 |
41 |
46 |
51 |
56 |
61 |
66 |
71 |
76 |
81 |
86 |
89 | 8dp
90 |
91 | 16dp
92 |
93 | 16dp
94 |
95 |
96 |
99 |
100 |
103 |
104 |
107 | GET DATA TEXT
108 |
109 | Stay at Home
110 |
111 | 查看温度
112 |
113 | 设置
114 |
115 | Get Data
116 |
117 | Get data title
118 |
119 | 当前状态
120 |
121 | afaslkfjsalfjaslkfjasl;fjkl;vksjziosyweoitw
122 |
123 | LED Off
124 |
125 | dataView
126 |
127 | About
128 |
129 | 获取数据
130 |
131 | ToggleButton
132 |
133 | LED On
134 |
135 | Home Anywhere
136 |
137 | dataGetButton
138 |
139 | Welcome~~
140 |
141 | Say Hello to the
142 |
143 | test for new about
144 |
145 | LED控制示例
146 |
147 | 设置
148 |
149 | showdta text
150 |
151 |
152 |
155 | 8dp
156 |
157 | 8dp
158 |
159 | 16dp
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
--------------------------------------------------------------------------------
/app/build/libs/app-debug.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/libs/app-debug.ap_
--------------------------------------------------------------------------------
/app/build/libs/app-debug.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/libs/app-debug.dex
--------------------------------------------------------------------------------
/app/build/libs/app-release.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/libs/app-release.ap_
--------------------------------------------------------------------------------
/app/build/libs/app-release.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/libs/app-release.dex
--------------------------------------------------------------------------------
/app/build/lint-results.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
20 |
21 |
22 |
34 |
38 |
39 |
40 |
54 |
58 |
59 |
60 |
74 |
78 |
79 |
80 |
94 |
98 |
99 |
100 |
114 |
118 |
119 |
120 |
134 |
138 |
139 |
140 |
154 |
158 |
159 |
160 |
181 |
185 |
186 |
187 |
208 |
212 |
213 |
214 |
222 |
224 |
225 |
226 |
234 |
236 |
237 |
238 |
246 |
248 |
249 |
250 |
258 |
260 |
261 |
262 |
272 |
276 |
280 |
281 |
282 |
292 |
296 |
300 |
301 |
302 |
312 |
316 |
320 |
321 |
322 |
332 |
336 |
340 |
341 |
342 |
350 |
352 |
353 |
354 |
362 |
364 |
365 |
366 |
376 |
380 |
381 |
382 |
392 |
396 |
397 |
398 |
408 |
412 |
413 |
414 |
424 |
428 |
429 |
430 |
440 |
444 |
445 |
446 |
456 |
460 |
461 |
462 |
472 |
476 |
477 |
478 |
488 |
492 |
493 |
494 |
504 |
508 |
509 |
510 |
520 |
524 |
525 |
526 |
536 |
540 |
541 |
542 |
552 |
556 |
557 |
558 |
568 |
572 |
573 |
574 |
584 |
588 |
589 |
590 |
600 |
604 |
605 |
606 |
616 |
620 |
621 |
622 |
630 |
632 |
633 |
634 |
642 |
644 |
645 |
646 |
657 |
661 |
662 |
663 |
674 |
678 |
679 |
680 |
681 |
--------------------------------------------------------------------------------
/app/build/lint-results_files/hololike.css:
--------------------------------------------------------------------------------
1 | body {
2 | max-width: 800px;
3 | background-color: #000000;
4 | background: -webkit-gradient(linear, left top, left bottom, from(#000000), to(#272d33));
5 | background: -moz-linear-gradient(top, #000000, #272d33);
6 | color: #f3f3f3;
7 | font-family: 'Roboto', Sans-Serif;
8 | }
9 | .issue {
10 | margin-top: 10px;
11 | margin-bottom: 10px;
12 | padding: 5px 0px 5px 5px;
13 | }
14 | .id {
15 | font-size: 14pt;
16 | color: #bebebe;
17 | margin: 5px 0px 5px 0px;
18 | }
19 | .category {
20 | font-size: 18pt;
21 | color: #bebebe;
22 | margin: 10px 0px 5px 0px;
23 | }
24 | .explanation {
25 | margin-top: 10px;
26 | }
27 | .explanation b {
28 | color: #ffbbbb;
29 | }
30 | .explanation code {
31 | color: #bebebe;
32 | font-family: 'Roboto', Sans-Serif;
33 | }
34 | pre {
35 | background-color: #282828;
36 | margin: 5px 0px 5px 5px;
37 | padding: 5px 5px 5px 0px;
38 | overflow: hidden;
39 | }
40 | .lineno {
41 | color: #4f4f4f;
42 | }
43 | .embedimage {
44 | max-width: 200px;
45 | max-height: 200px;
46 | }
47 | th { font-weight: normal; }
48 | table { border: none; }
49 | .metadata {
50 | }
51 | .location {
52 | color: #bebebe;
53 | }
54 | .message { }
55 | .errorspan { color: #33b5e5; }
56 | .errorline { color: #33b5e5; }
57 | .warningslist { margin-bottom: 20px; }
58 | .overview {
59 | padding: 10pt;
60 | width: 100%;
61 | overflow: auto;
62 | border-collapse:collapse;
63 | }
64 | .overview tr {
65 | border-top: solid 1px #39393a;
66 | border-bottom: solid 1px #39393a;
67 | }
68 | .countColumn {
69 | text-align: right;
70 | padding-right: 20px;
71 | }
72 | .issueColumn {
73 | padding-left: 16px;
74 | }
75 | .categoryColumn {
76 | position: relative;
77 | left: -50px;
78 | padding-top: 20px;
79 | padding-bottom: 5px;
80 | }
81 | .titleSeparator {
82 | background-color: #33b5e5;
83 | height: 3px;
84 | margin-bottom: 10px;
85 | }
86 | .categorySeparator {
87 | background-color: #33b5e5;
88 | height: 3px;
89 | margin-bottom: 10px;
90 | }
91 | .issueSeparator {
92 | background-color: #39393a;
93 | height: 2px;
94 | margin-bottom: 10px;
95 | }
96 | .location a:link {
97 | text-decoration: none;
98 | color: #bebebe;
99 | }
100 | .location a:hover {
101 | text-decoration: underline;
102 | color: #f3f3f3;
103 | }
104 | a:link {
105 | text-decoration: none;
106 | color: #f3f3f3;
107 | }
108 | a:visited {
109 | text-decoration: none;
110 | color: #bebebe;
111 | }
112 | a:hover {
113 | text-decoration: underline;
114 | color: #f3f3f3;
115 | }
116 | a:active {
117 | text-decoration: underline;
118 | color: #f3f3f3;
119 | }
120 | .moreinfo a:link {
121 | text-decoration: underline;
122 | color: #33b5e5;
123 | }
124 | .moreinfo a:visited {
125 | text-decoration: underline;
126 | color: #33b5e5;
127 | }
128 | .issue a:link {
129 | text-decoration: underline;
130 | }
131 | .issue a:visited {
132 | text-decoration: underline;
133 | }
134 | .id a:link {
135 | text-decoration: none;
136 | color: #bebebe;
137 | }
138 | .id a:visited {
139 | text-decoration: none;
140 | color: #bebebe;
141 | }
142 | .id a:hover {
143 | text-decoration: underline;
144 | color: #f3f3f3;
145 | }
146 | .id a:active {
147 | text-decoration: underline;
148 | color: #bebebe;
149 | }
150 | .category a:link {
151 | text-decoration: none;
152 | color: #bebebe;
153 | }
154 | .category a:visited {
155 | text-decoration: none;
156 | color: #bebebe;
157 | }
158 | .category a:hover {
159 | text-decoration: underline;
160 | color: #f3f3f3;
161 | }
162 | .category a:active {
163 | text-decoration: underline;
164 | color: #bebebe;
165 | }
166 | button {
167 | color: #ffffff;
168 | background-color: #353535;
169 | border-left: none;
170 | border-right: none;
171 | border-bottom: none;
172 | border-top: solid 1px #5b5b5b;
173 | font-family: 'Roboto', Sans-Serif;
174 | font-size: 12pt;
175 | }
176 |
--------------------------------------------------------------------------------
/app/build/lint-results_files/lint-error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/lint-results_files/lint-error.png
--------------------------------------------------------------------------------
/app/build/lint-results_files/lint-run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/lint-results_files/lint-run.png
--------------------------------------------------------------------------------
/app/build/lint-results_files/lint-warning.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/lint-results_files/lint-warning.png
--------------------------------------------------------------------------------
/app/build/manifests/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/app/build/manifests/release/AndroidManifest.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/app/build/pre-dexed/debug/android-async-http-1.4.2-a2b8fac43acd348c43688140d281a90e.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/pre-dexed/debug/android-async-http-1.4.2-a2b8fac43acd348c43688140d281a90e.jar
--------------------------------------------------------------------------------
/app/build/pre-dexed/debug/gson-2.2.2-317a455f6da8b4725a22f2edd953e9cd.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/pre-dexed/debug/gson-2.2.2-317a455f6da8b4725a22f2edd953e9cd.jar
--------------------------------------------------------------------------------
/app/build/pre-dexed/debug/support-v4-13.0.0-b6bae00572050bd420ec5c376255fbe0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/pre-dexed/debug/support-v4-13.0.0-b6bae00572050bd420ec5c376255fbe0.jar
--------------------------------------------------------------------------------
/app/build/pre-dexed/release/android-async-http-1.4.2-02faa4f8c22cd295a766a99010bf3832.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/pre-dexed/release/android-async-http-1.4.2-02faa4f8c22cd295a766a99010bf3832.jar
--------------------------------------------------------------------------------
/app/build/pre-dexed/release/gson-2.2.2-317a455f6da8b4725a22f2edd953e9cd.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/pre-dexed/release/gson-2.2.2-317a455f6da8b4725a22f2edd953e9cd.jar
--------------------------------------------------------------------------------
/app/build/pre-dexed/release/support-v4-13.0.0-b6bae00572050bd420ec5c376255fbe0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/pre-dexed/release/support-v4-13.0.0-b6bae00572050bd420ec5c376255fbe0.jar
--------------------------------------------------------------------------------
/app/build/res/all/debug/drawable-hdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/debug/drawable-hdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/build/res/all/debug/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/debug/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/build/res/all/debug/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/debug/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/build/res/all/debug/drawable-mdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/debug/drawable-mdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/build/res/all/debug/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/debug/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/build/res/all/debug/drawable-xhdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/debug/drawable-xhdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/build/res/all/debug/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/debug/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/build/res/all/debug/layout/about.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/build/res/all/debug/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
8 |
14 |
21 |
22 |
23 |
24 |
29 |
30 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/build/res/all/debug/layout/data_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
15 |
--------------------------------------------------------------------------------
/app/build/res/all/debug/layout/getdata.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
19 |
20 |
24 |
25 |
29 |
30 |
34 |
35 |
39 |
--------------------------------------------------------------------------------
/app/build/res/all/debug/menu/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/build/res/all/debug/values-large/values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 16dp
8 | 16dp
9 | 8dp
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/build/res/all/debug/values/values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 16dp
8 | 8dp
9 | 8dp
10 |
11 |
12 |
13 | ToggleButton
14 | About
15 | 最小物联网系统
16 | test for new about
17 | Home Anywhere
18 | dataGetButton
19 | dataView
20 | Get Data
21 | GET DATA TEXT
22 | Get data title
23 | Welcome~~
24 | LED控制示例
25 | LED Off
26 | LED On
27 | 获取数据
28 | 设置
29 | 设置
30 | Say Hello to the
31 | showdta text
32 | 当前状态
33 | Stay at Home
34 | 查看温度
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/build/res/all/release/drawable-hdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/release/drawable-hdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/build/res/all/release/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/release/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/build/res/all/release/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/release/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/build/res/all/release/drawable-mdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/release/drawable-mdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/build/res/all/release/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/release/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/build/res/all/release/drawable-xhdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/release/drawable-xhdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/build/res/all/release/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/build/res/all/release/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/build/res/all/release/layout/about.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/build/res/all/release/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
8 |
14 |
21 |
22 |
23 |
24 |
29 |
34 |
39 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/app/build/res/all/release/layout/data_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
15 |
--------------------------------------------------------------------------------
/app/build/res/all/release/layout/getdata.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
19 |
20 |
24 |
25 |
29 |
33 |
--------------------------------------------------------------------------------
/app/build/res/all/release/layout/ledview.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
15 |
16 |
--------------------------------------------------------------------------------
/app/build/res/all/release/layout/tempview.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
--------------------------------------------------------------------------------
/app/build/res/all/release/layout/temview.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
--------------------------------------------------------------------------------
/app/build/res/all/release/menu/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/build/res/all/release/values-large/values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 16dp
8 | 16dp
9 | 8dp
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/build/res/all/release/values/values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 16dp
8 | 8dp
9 | 8dp
10 |
11 |
12 |
13 | ToggleButton
14 | About
15 | afaslkfjsalfjaslkfjasl;fjkl;vksjziosyweoitw
16 | test for new about
17 | Home Anywhere
18 | dataGetButton
19 | dataView
20 | Get Data
21 | GET DATA TEXT
22 | Get data title
23 | Welcome~~
24 | LED控制示例
25 | LED Off
26 | LED On
27 | 获取数据
28 | 设置
29 | 设置
30 | Say Hello to the
31 | showdta text
32 | 当前状态
33 | Stay at Home
34 | 查看温度
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/build/res/all/release/xml/accessory_filter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/build/source/buildConfig/debug/com/mokcy/hello/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Automatically generated file. DO NOT MODIFY
3 | */
4 | package com.mokcy.hello;
5 |
6 | public final class BuildConfig {
7 | public static final boolean DEBUG = Boolean.parseBoolean("true");
8 | public static final String PACKAGE_NAME = "com.mokcy.hello";
9 | public static final String BUILD_TYPE = "debug";
10 | public static final String FLAVOR = "";
11 | public static final int VERSION_CODE = 1;
12 | }
13 |
--------------------------------------------------------------------------------
/app/build/source/buildConfig/release/com/mokcy/hello/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Automatically generated file. DO NOT MODIFY
3 | */
4 | package com.mokcy.hello;
5 |
6 | public final class BuildConfig {
7 | public static final boolean DEBUG = false;
8 | public static final String PACKAGE_NAME = "com.mokcy.hello";
9 | public static final String BUILD_TYPE = "release";
10 | public static final String FLAVOR = "";
11 | public static final int VERSION_CODE = 1;
12 | }
13 |
--------------------------------------------------------------------------------
/app/build/source/r/debug/com/mokcy/hello/R.java:
--------------------------------------------------------------------------------
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.mokcy.hello;
9 |
10 | public final class R {
11 | public static final class attr {
12 | }
13 | public static final class dimen {
14 | public static final int padding_large=0x7f040000;
15 | public static final int padding_medium=0x7f040001;
16 | public static final int padding_small=0x7f040002;
17 | }
18 | public static final class drawable {
19 | public static final int ic_action_search=0x7f020000;
20 | public static final int ic_launcher=0x7f020001;
21 | }
22 | public static final class id {
23 | public static final int about_button=0x7f080002;
24 | public static final int about_content=0x7f080000;
25 | public static final int get_data=0x7f080005;
26 | public static final int getdata_button=0x7f080001;
27 | public static final int id1=0x7f08000a;
28 | public static final int led1=0x7f080006;
29 | public static final int menu_settings=0x7f08000b;
30 | public static final int relativeLayout1=0x7f080003;
31 | public static final int sensors1=0x7f080008;
32 | public static final int sensors2=0x7f080009;
33 | public static final int temperature=0x7f080007;
34 | public static final int toggleButtonLED=0x7f080004;
35 | }
36 | public static final class layout {
37 | public static final int about=0x7f030000;
38 | public static final int activity_main=0x7f030001;
39 | public static final int data_view=0x7f030002;
40 | public static final int getdata=0x7f030003;
41 | }
42 | public static final class menu {
43 | public static final int activity_main=0x7f070000;
44 | }
45 | public static final class string {
46 | public static final int ToggleButton=0x7f050000;
47 | public static final int about_button=0x7f050001;
48 | public static final int about_text=0x7f050002;
49 | public static final int about_title=0x7f050003;
50 | public static final int app_name=0x7f050004;
51 | public static final int dataGetButton=0x7f050005;
52 | public static final int dataView_title=0x7f050006;
53 | public static final int get_data=0x7f050007;
54 | public static final int getdata_text=0x7f050008;
55 | public static final int getdata_title=0x7f050009;
56 | public static final int hello_world=0x7f05000a;
57 | public static final int led_button=0x7f05000b;
58 | public static final int led_off=0x7f05000c;
59 | public static final int led_on=0x7f05000d;
60 | public static final int main_title=0x7f05000e;
61 | public static final int menu_settings=0x7f05000f;
62 | public static final int settings_lable=0x7f050010;
63 | public static final int shello=0x7f050011;
64 | public static final int showdata_text=0x7f050012;
65 | public static final int tem_title=0x7f050013;
66 | public static final int title_activity_main=0x7f050014;
67 | public static final int viewTemp_title=0x7f050015;
68 | }
69 | public static final class style {
70 | public static final int AppTheme=0x7f060000;
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/app/build/source/r/release/com/mokcy/hello/R.java:
--------------------------------------------------------------------------------
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.mokcy.hello;
9 |
10 | public final class R {
11 | public static final class attr {
12 | }
13 | public static final class dimen {
14 | public static final int padding_large=0x7f050000;
15 | public static final int padding_medium=0x7f050001;
16 | public static final int padding_small=0x7f050002;
17 | }
18 | public static final class drawable {
19 | public static final int ic_action_search=0x7f020000;
20 | public static final int ic_launcher=0x7f020001;
21 | }
22 | public static final class id {
23 | public static final int about_button=0x7f090004;
24 | public static final int about_content=0x7f090000;
25 | public static final int get_data=0x7f090007;
26 | public static final int getdata_button=0x7f090001;
27 | public static final int led=0x7f090009;
28 | public static final int led_Con=0x7f09000c;
29 | public static final int led_button=0x7f090002;
30 | public static final int menu_settings=0x7f09000d;
31 | public static final int more=0x7f09000b;
32 | public static final int relativeLayout1=0x7f090005;
33 | public static final int temperature=0x7f09000a;
34 | public static final int title=0x7f090008;
35 | public static final int toggleButtonLED=0x7f090006;
36 | public static final int viewTemp_button=0x7f090003;
37 | }
38 | public static final class layout {
39 | public static final int about=0x7f030000;
40 | public static final int activity_main=0x7f030001;
41 | public static final int data_view=0x7f030002;
42 | public static final int getdata=0x7f030003;
43 | public static final int ledview=0x7f030004;
44 | public static final int tempview=0x7f030005;
45 | public static final int temview=0x7f030006;
46 | }
47 | public static final class menu {
48 | public static final int activity_main=0x7f080000;
49 | }
50 | public static final class string {
51 | public static final int ToggleButton=0x7f060000;
52 | public static final int about_button=0x7f060001;
53 | public static final int about_text=0x7f060002;
54 | public static final int about_title=0x7f060003;
55 | public static final int app_name=0x7f060004;
56 | public static final int dataGetButton=0x7f060005;
57 | public static final int dataView_title=0x7f060006;
58 | public static final int get_data=0x7f060007;
59 | public static final int getdata_text=0x7f060008;
60 | public static final int getdata_title=0x7f060009;
61 | public static final int hello_world=0x7f06000a;
62 | public static final int led_button=0x7f06000b;
63 | public static final int led_off=0x7f06000c;
64 | public static final int led_on=0x7f06000d;
65 | public static final int main_title=0x7f06000e;
66 | public static final int menu_settings=0x7f06000f;
67 | public static final int settings_lable=0x7f060010;
68 | public static final int shello=0x7f060011;
69 | public static final int showdata_text=0x7f060012;
70 | public static final int tem_title=0x7f060013;
71 | public static final int title_activity_main=0x7f060014;
72 | public static final int viewTemp_title=0x7f060015;
73 | }
74 | public static final class style {
75 | public static final int AppTheme=0x7f070000;
76 | }
77 | public static final class xml {
78 | public static final int accessory_filter=0x7f040000;
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/app/libs/android-async-http-1.4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/libs/android-async-http-1.4.2.jar
--------------------------------------------------------------------------------
/app/libs/robotium-solo-4.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/libs/robotium-solo-4.3.1.jar
--------------------------------------------------------------------------------
/app/local.properties:
--------------------------------------------------------------------------------
1 | ## This file is automatically generated by Android Studio.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must *NOT* be checked into Version Control Systems,
5 | # as it contains information specific to your local configuration.
6 | #
7 | # Location of the SDK. This is only used by Gradle.
8 | # For customization when using a Version Control System, please read the
9 | # header note.
10 | #Thu Dec 26 19:30:27 CST 2013
11 | sdk.dir=/home/phodal/android-sdk-linux
12 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mokcy/hello/About.java:
--------------------------------------------------------------------------------
1 | package com.mokcy.hello;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 |
6 | public class About extends Activity{
7 | @Override
8 | protected void onCreate(Bundle savedInstanceState){
9 | super.onCreate(savedInstanceState);
10 | setContentView(R.layout.about);
11 | }
12 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/mokcy/hello/GetData.java:
--------------------------------------------------------------------------------
1 | package com.mokcy.hello;
2 |
3 | import org.json.JSONArray;
4 | import org.json.JSONObject;
5 |
6 | import android.app.Activity;
7 | import android.os.Bundle;
8 | import android.os.StrictMode;
9 | import android.text.method.ScrollingMovementMethod;
10 | import android.widget.TextView;
11 |
12 | import com.google.gson.Gson;
13 | import com.google.gson.GsonBuilder;
14 | import com.mokcy.hello.RestClient.RequestMethod;
15 |
16 | public class GetData extends Activity {
17 | TextView vshow;
18 | String url = "http://api.phodal.com/api/v1/1/";
19 |
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
23 | .detectDiskReads()
24 | .detectDiskWrites()
25 | .detectNetwork() // or .detectAll() for all detectable problems
26 | .penaltyLog()
27 | .build());
28 | StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
29 | .detectLeakedSqlLiteObjects()
30 | .detectLeakedClosableObjects()
31 | .penaltyLog()
32 | .penaltyDeath()
33 | .build());
34 |
35 | super.onCreate(savedInstanceState);
36 | setContentView(R.layout.getdata);
37 |
38 | vshow = (TextView) this.findViewById(R.id.get_data);
39 | vshow.setMovementMethod(ScrollingMovementMethod.getInstance());
40 | String tUrl = "http://b.phodal.com/athome/1/";
41 | RestClient client = new RestClient(tUrl);
42 | try {
43 | client.Execute(RequestMethod.GET);
44 | if (client.getResponseCode() != 200) {
45 | vshow.setText(client.getErrorMessage());
46 | }
47 |
48 | JSONArray jArray = new JSONArray(client.getResponse());
49 | JSONObject jObj=jArray.getJSONObject(0);
50 | vshow.setText(jObj.toString());
51 |
52 | outputJSON(jObj);
53 |
54 | } catch (Exception e) {
55 | vshow.setText(e.toString());
56 | }
57 |
58 | }
59 |
60 | public void outputJSON(JSONObject jObj) {
61 | GsonBuilder gsonb = new GsonBuilder();
62 | Gson gson = gsonb.create();
63 |
64 | typePhoData phoData = gson.fromJson(jObj.toString(),
65 | typePhoData.class);
66 |
67 | ((TextView) findViewById(R.id.led1)).setText(String
68 | .valueOf(phoData.led1));
69 | ((TextView) findViewById(R.id.sensors1)).setText(String
70 | .valueOf(phoData.sensors1));
71 | ((TextView) findViewById(R.id.sensors2)).setText(String
72 | .valueOf(phoData.sensors2));
73 | ((TextView) findViewById(R.id.temperature)).setText(String
74 | .valueOf(phoData.temperature));
75 | ((TextView) findViewById(R.id.id1)).setText(String
76 | .valueOf(phoData.id));
77 | }
78 |
79 | public class typePhoData{
80 | public int led1;
81 | public double temperature;
82 | public double sensors1;
83 | public double sensors2;
84 | public int id;
85 | }
86 |
87 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/mokcy/hello/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.mokcy.hello;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.os.Bundle;
6 | import android.view.Menu;
7 | import android.view.View;
8 | import android.widget.Button;
9 | import android.widget.TextView;
10 |
11 | import com.loopj.android.http.AsyncHttpClient;
12 | import com.loopj.android.http.AsyncHttpResponseHandler;
13 |
14 |
15 | public class MainActivity extends Activity {
16 | TextView tv1;
17 |
18 | @Override
19 | public void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.activity_main);
22 |
23 | Button aboutButton=(Button) findViewById(R.id.about_button);
24 | aboutButton.setOnClickListener(new View.OnClickListener(){
25 | @Override
26 | public void onClick(View v) {
27 | // TODO Auto-generated method stub
28 | callAbout();
29 | }
30 | });
31 | Button dataGetButton=(Button) findViewById(R.id.getdata_button);
32 | dataGetButton.setOnClickListener(new View.OnClickListener(){
33 | @Override
34 | public void onClick(View v) {
35 | // TODO Auto-generated method stub
36 | getData();
37 | }
38 | });
39 |
40 | }
41 |
42 |
43 | @Override
44 | public boolean onCreateOptionsMenu(Menu menu) {
45 | return super.onCreateOptionsMenu(menu);
46 | }
47 |
48 | public void getData(){
49 | Intent startGet=new Intent(MainActivity.this,GetData.class);
50 | startActivity(startGet);
51 | }
52 |
53 | public void callAbout(){
54 | Intent start=new Intent(MainActivity.this,About.class);
55 | startActivity(start);
56 | }
57 |
58 | public void syncData(){
59 | AsyncHttpClient client=new AsyncHttpClient();
60 | client.get("http://api.phodal.com/api/v1", new AsyncHttpResponseHandler(){
61 | @Override
62 | public void onSuccess(String response){
63 | System.out.println(response);
64 | }
65 | });
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mokcy/hello/RestClient.java:
--------------------------------------------------------------------------------
1 | package com.mokcy.hello;
2 |
3 | import java.io.BufferedReader;
4 | import java.io.IOException;
5 | import java.io.InputStream;
6 | import java.io.InputStreamReader;
7 | import java.net.URLEncoder;
8 | import java.util.ArrayList;
9 | import java.util.zip.GZIPInputStream;
10 |
11 | import org.apache.http.Header;
12 | import org.apache.http.HttpEntity;
13 | import org.apache.http.HttpResponse;
14 | import org.apache.http.NameValuePair;
15 | import org.apache.http.client.ClientProtocolException;
16 | import org.apache.http.client.entity.UrlEncodedFormEntity;
17 | import org.apache.http.client.methods.HttpDelete;
18 | import org.apache.http.client.methods.HttpGet;
19 | import org.apache.http.client.methods.HttpPost;
20 | import org.apache.http.client.methods.HttpPut;
21 | import org.apache.http.client.methods.HttpUriRequest;
22 | import org.apache.http.entity.StringEntity;
23 | import org.apache.http.impl.client.DefaultHttpClient;
24 | import org.apache.http.message.BasicNameValuePair;
25 | import org.apache.http.params.BasicHttpParams;
26 | import org.apache.http.params.HttpConnectionParams;
27 | import org.apache.http.params.HttpParams;
28 | import org.apache.http.params.HttpProtocolParams;
29 | import org.apache.http.protocol.HTTP;
30 |
31 | /*
32 | * This Class is coming from
33 | * http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/
34 | *
35 | * Modification :
36 | * - Added PUT and DELETE method on execute
37 | * - Added GZIP
38 | *
39 | * HOW to USE :
40 | * RestClient client = new RestClient(LOGIN_URL);
41 | * client.AddParam("accountType", "GOOGLE");
42 | * client.AddParam("source", "tboda-widgalytics-0.1");
43 | * client.AddParam("Email", _username);
44 | * client.AddParam("Passwd", _password);
45 | * client.AddParam("service", "analytics");
46 | * client.AddHeader("GData-Version", "2");
47 | *
48 | * try {
49 | * client.Execute(RequestMethod.POST);
50 | * } catch (Exception e) {
51 | * e.printStackTrace();
52 | * }
53 | *
54 | * String response = client.getResponse();
55 | */
56 |
57 | public class RestClient {
58 |
59 | protected ArrayList params;
60 | protected ArrayList headers;
61 |
62 | protected String url;
63 | private String data = "";
64 |
65 | private int responseCode;
66 | private String message;
67 |
68 | private String response;
69 |
70 | private int timeoutConnection = 60000;
71 | private int timeoutSocket = 60000;
72 |
73 | public enum RequestMethod {
74 | GET, POST, PUT, DELETE
75 | }
76 |
77 | public String getResponse() {
78 | return response;
79 | }
80 |
81 | public String getErrorMessage() {
82 | return message;
83 | }
84 |
85 | public int getResponseCode() {
86 | return responseCode;
87 | }
88 |
89 | public RestClient(String url) {
90 | this.url = url;
91 | params = new ArrayList();
92 | headers = new ArrayList();
93 | }
94 |
95 | public void AddParam(String data) {
96 | this.data = data;
97 | }
98 |
99 | public void AddParam(String name, String value) {
100 | params.add(new BasicNameValuePair(name, value));
101 | }
102 |
103 | public void AddHeader(String name, String value) {
104 | headers.add(new BasicNameValuePair(name, value));
105 | }
106 |
107 | public void Execute(RequestMethod method) throws Exception {
108 | switch (method) {
109 | case GET: {
110 | // add parameters
111 | String combinedParams = "";
112 | if (!params.isEmpty()) {
113 | combinedParams += "?";
114 | for (NameValuePair p : params) {
115 | String paramString = p.getName() + "="
116 | + URLEncoder.encode(p.getValue(), HTTP.UTF_8);
117 | if (combinedParams.length() > 1) {
118 | combinedParams += "&" + paramString;
119 | } else {
120 | combinedParams += paramString;
121 | }
122 | }
123 | }
124 |
125 | HttpGet request = new HttpGet(url + combinedParams);
126 | request.addHeader("Accept-Encoding", "gzip");
127 |
128 | // add headers
129 | for (NameValuePair h : headers) {
130 | request.addHeader(h.getName(), h.getValue());
131 | }
132 |
133 | executeRequest(request, url);
134 | break;
135 | }
136 | case POST: {
137 | HttpPost request = new HttpPost(url);
138 | request.addHeader("Accept-Encoding", "gzip");
139 |
140 | // add headers
141 | for (NameValuePair h : headers) {
142 | request.addHeader(h.getName(), h.getValue());
143 | }
144 | if (!data.equals("")) {
145 | request.setEntity(new StringEntity(data, HTTP.UTF_8));
146 | }
147 |
148 | if (!params.isEmpty()) {
149 | request.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8));
150 | }
151 |
152 | executeRequest(request, url);
153 | break;
154 | }
155 | case PUT: {
156 | HttpPut request = new HttpPut(url);
157 | request.addHeader("Accept-Encoding", "gzip");
158 |
159 | // add headers
160 | for (NameValuePair h : headers) {
161 | request.addHeader(h.getName(), h.getValue());
162 | }
163 | if (!data.equals("")) {
164 | request.setEntity(new StringEntity(data, HTTP.UTF_8));
165 | }
166 |
167 | if (!params.isEmpty()) {
168 | request.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8));
169 | }
170 |
171 | executeRequest(request, url);
172 | break;
173 | }
174 | case DELETE: {
175 | HttpDelete request = new HttpDelete(url);
176 | request.addHeader("Accept-Encoding", "gzip");
177 |
178 | // add headers
179 | for (NameValuePair h : headers) {
180 | request.addHeader(h.getName(), h.getValue());
181 | }
182 |
183 | executeRequest(request, url);
184 | break;
185 | }
186 | }
187 | }
188 |
189 | protected void executeRequest(HttpUriRequest request, String url) {
190 |
191 | HttpParams httpParameters = new BasicHttpParams();
192 | HttpConnectionParams.setConnectionTimeout(httpParameters,
193 | timeoutConnection);
194 | HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);
195 |
196 | HttpProtocolParams.setUseExpectContinue(httpParameters, false);
197 | request.setParams(httpParameters);
198 |
199 | setOauth(request);
200 |
201 | DefaultHttpClient client = new DefaultHttpClient();
202 |
203 | HttpResponse httpResponse;
204 |
205 | try {
206 | httpResponse = client.execute(request);
207 | responseCode = httpResponse.getStatusLine().getStatusCode();
208 | message = httpResponse.getStatusLine().getReasonPhrase();
209 |
210 | HttpEntity entity = httpResponse.getEntity();
211 |
212 | if (entity != null) {
213 | InputStream instream = httpResponse.getEntity().getContent();
214 | Header contentEncoding = httpResponse
215 | .getFirstHeader("Content-Encoding");
216 |
217 | if (contentEncoding != null
218 | && contentEncoding.getValue().equalsIgnoreCase("gzip")) {
219 | instream = new GZIPInputStream(instream);
220 | }
221 |
222 | // instream = entity.getContent();
223 | response = convertStreamToString(instream);
224 |
225 | // Closing the input stream will trigger connection release
226 | instream.close();
227 | }
228 |
229 | } catch (ClientProtocolException e) {
230 | client.getConnectionManager().shutdown();
231 | e.printStackTrace();
232 | } catch (IOException e) {
233 | client.getConnectionManager().shutdown();
234 | e.printStackTrace();
235 | }
236 | }
237 |
238 | private static String convertStreamToString(InputStream is) {
239 |
240 | BufferedReader reader = new BufferedReader(new InputStreamReader(is));
241 | StringBuilder sb = new StringBuilder();
242 |
243 | String line = null;
244 | try {
245 | while ((line = reader.readLine()) != null) {
246 | sb.append(line + "\n");
247 | }
248 | } catch (IOException e) {
249 | e.printStackTrace();
250 | } finally {
251 | try {
252 | is.close();
253 | } catch (IOException e) {
254 | e.printStackTrace();
255 | }
256 | }
257 | return sb.toString();
258 | }
259 |
260 | protected void setOauth(HttpUriRequest request) {
261 |
262 | }
263 | }
264 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mokcy/hello/handlerData.java:
--------------------------------------------------------------------------------
1 | package com.mokcy.hello;
2 |
3 | import android.widget.TextView;
4 |
5 | import com.google.gson.Gson;
6 | import com.google.gson.GsonBuilder;
7 |
8 | import org.json.JSONObject;
9 |
10 | /**
11 | * Created by phodal on 13-12-26.
12 | */
13 | public class handlerData {
14 |
15 | public GsonBuilder gsonb = new GsonBuilder();
16 | public Gson gson = gsonb.create();
17 | public JSONObject jObj = null;
18 |
19 | typePhoData phoData = gson.fromJson(jObj.toString(),
20 | typePhoData.class);
21 |
22 | public int get_id(){
23 | return phoData.id;
24 | }
25 |
26 | public double get_sensors1(){
27 | return phoData.sensors1;
28 | }
29 |
30 | public double get_sensors2(){
31 | return phoData.sensors2;
32 | }
33 |
34 | public double get_temperature(){
35 | return phoData.temperature;
36 | }
37 |
38 | public int get_led1(){
39 | return phoData.led1;
40 | }
41 |
42 | public class typePhoData{
43 | public int led1;
44 | public double temperature;
45 | public double sensors1;
46 | public double sensors2;
47 | public int id;
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/src/main/res/drawable-hdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/src/main/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/src/main/res/drawable-mdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_action_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/src/main/res/drawable-xhdpi/ic_action_search.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/layout/about.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
8 |
14 |
21 |
22 |
23 |
24 |
29 |
30 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/data_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/getdata.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
19 |
20 |
24 |
25 |
29 |
30 |
34 |
35 |
39 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values-large/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 8dp
4 | 16dp
5 | 16dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 8dp
4 | 8dp
5 | 16dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Home Anywhere
4 | Welcome~~
5 | 设置
6 | Stay at Home
7 | 获取数据
8 | dataGetButton
9 |
10 | 最小物联网系统
11 | test for new about
12 | About
13 |
14 | 设置
15 |
16 | Get data title
17 | Get Data
18 | GET DATA TEXT
19 | Say Hello to the
20 |
21 | showdta text
22 |
23 | dataView
24 | LED On
25 | LED Off
26 | ToggleButton
27 | 查看温度
28 |
29 | 当前状态
30 |
31 | LED控制示例
32 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | repositories {
4 | mavenCentral()
5 | }
6 | dependencies {
7 | classpath 'com.android.tools.build:gradle:0.7.+'
8 | }
9 | }
10 |
11 | allprojects {
12 | repositories {
13 | mavenCentral()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/gradle/gradle.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/gradle/local.properties:
--------------------------------------------------------------------------------
1 | ## This file is automatically generated by Android Studio.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must *NOT* be checked into Version Control Systems,
5 | # as it contains information specific to your local configuration.
6 | #
7 | # Location of the SDK. This is only used by Gradle.
8 | # For customization when using a Version Control System, please read the
9 | # header note.
10 | #Thu Dec 26 19:28:49 CST 2013
11 | sdk.dir=/home/phodal/android-sdk-linux
12 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iot-works/iot-android/b44115093c906e7bab683cf1da1a47daa6f0018c/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/import-summary.txt:
--------------------------------------------------------------------------------
1 | ECLIPSE ANDROID PROJECT IMPORT SUMMARY
2 | ======================================
3 |
4 | Ignored Files:
5 | --------------
6 | The following files were *not* copied into the new Gradle project; you
7 | should evaluate whether these are still needed in your project and if
8 | so manually move them:
9 |
10 | * .git
11 | * README.md
12 | * ic_launcher-web.png
13 | * proguard-project.txt
14 |
15 | Replaced Jars with Dependencies:
16 | --------------------------------
17 | The importer recognized the following .jar files as third party
18 | libraries and replaced them with Gradle dependencies instead. This has
19 | the advantage that more explicit version information is known, and the
20 | libraries can be updated automatically. However, it is possible that
21 | the .jar file in your project was of an older version than the
22 | dependency we picked, which could render the project not compileable.
23 | You can disable the jar replacement in the import wizard and try again:
24 |
25 | android-support-v4.jar => com.android.support:support-v4:+
26 | gson-2.2.2.jar => com.google.code.gson:gson:2.2.2
27 |
28 | Potentially Missing Dependency:
29 | -------------------------------
30 | When we replaced the following .jar files with a Gradle dependency, we
31 | inferred the dependency version number from the filename. This
32 | specific version may not actually be available from the repository.
33 | If you get a build error stating that the dependency is missing, edit
34 | the version number to for example "+" to pick up the latest version
35 | instead. (This may require you to update your code if the library APIs
36 | have changed.)
37 |
38 | gson-2.2.2.jar => version 2.2.2 in com.google.code.gson:gson:2.2.2
39 |
40 | Moved Files:
41 | ------------
42 | Android Gradle projects use a different directory structure than ADT
43 | Eclipse projects. Here's how the projects were restructured:
44 |
45 | * AndroidManifest.xml => app/src/main/AndroidManifest.xml
46 | * assets/ => app/src/main/assets/
47 | * libs/android-async-http-1.4.2.jar => app/libs/android-async-http-1.4.2.jar
48 | * res/ => app/src/main/res/
49 | * src/ => app/src/main/java/
50 |
51 | Next Steps:
52 | -----------
53 | You can now build the project. The Gradle project needs network
54 | connectivity to download dependencies.
55 |
56 | Bugs:
57 | -----
58 | If for some reason your project does not build, and you determine that
59 | it is due to a bug or limitation of the Eclipse to Gradle importer,
60 | please file a bug at http://b.android.com with category
61 | Component-Tools.
62 |
63 | (This import summary is for your information only, and can be deleted
64 | after import once you are satisfied with the results.)
65 |
--------------------------------------------------------------------------------
/local.properties:
--------------------------------------------------------------------------------
1 | ## This file is automatically generated by Android Studio.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must *NOT* be checked into Version Control Systems,
5 | # as it contains information specific to your local configuration.
6 | #
7 | # Location of the SDK. This is only used by Gradle.
8 | # For customization when using a Version Control System, please read the
9 | # header note.
10 | #Thu Dec 26 17:07:34 CST 2013
11 | sdk.dir=/home/phodal/android-sdk-linux
12 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------