$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
13. Работа с сетью
Search
Evgeny Shishkin
March 02, 2015
Education
1
84
13. Работа с сетью
Evgeny Shishkin
March 02, 2015
Tweet
Share
More Decks by Evgeny Shishkin
See All by Evgeny Shishkin
Создать собственное приложение для планирования путешествий за 60 секунд
johnkil
0
40
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
97
Kotlin in production
johnkil
0
140
Life without Fragments
johnkil
1
510
6. Создание UI
johnkil
0
72
3. Создание Android приложения
johnkil
0
69
4. Структура Android приложения
johnkil
0
150
5. Android ресурсы
johnkil
0
73
1. Введение в Android
johnkil
0
60
Other Decks in Education
See All in Education
Use Cases and Course Review - Lecture 8 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.3k
QR-koodit opetuksessa
matleenalaakso
0
1.8k
Node-REDで広がるプログラミング教育の可能性
ueponx
1
220
Adobe Express
matleenalaakso
1
8.1k
【ZEPホスト用メタバース校舎操作ガイド】
ainischool
0
150
【ZEPメタバース校舎操作ガイド】
ainischool
0
700
IHLヘルスケアリーダーシップ研究会17期説明資料
ihlhealthcareleadership
0
260
AIを使って最新研究 について調べて発表しよ う!
mickey_kubo
4
180
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
RGBでも蛍光を!? / RayTracingCamp11
kugimasa
1
280
Web Search and SEO - Lecture 10 - Web Technologies (1019888BNR)
signer
PRO
2
3k
Evaluation Methods - Lecture 6 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.2k
Featured
See All Featured
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.2k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
120
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
130
The untapped power of vector embeddings
frankvandijk
1
1.5k
YesSQL, Process and Tooling at Scale
rocio
174
15k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
69
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
17
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
0
280
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
28
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Transcript
Работа с сетью Шишкин Евгений
HTTP
HTTP clients • HttpClient (org.apache.http.client) [API level 1] • AndroidHttpClient
(android.net.http) [API level 8] • HttpURLConnection (java.net) [API level 10]
HTTP requests • Get (длина URL <= 2048 сим.) •
Post
HttpClient
HttpURLConnection
Permission
None
NetworkOnMainThreadException or ANR
AsyncTask
Парсинг • XML (XmlPullParser, DocumentBuilder, SAXParser) • JSON (org.json)
org.json • JSONArray • JSONObject
JSONArray & JSONObject • getBoolean() • getDouble() • getInt() •
getLong() • getString() • getJSONArray() • getJSONObject()
None
Ссылки • http://developer.android.com/reference/java/net/ HttpURLConnection.html • http://www.androidhive.info/2012/01/android-json- parsing-tutorial/