Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
13. Работа с сетью
Search
Evgeny Shishkin
March 02, 2015
Education
1
79
13. Работа с сетью
Evgeny Shishkin
March 02, 2015
Tweet
Share
More Decks by Evgeny Shishkin
See All by Evgeny Shishkin
Создать собственное приложение для планирования путешествий за 60 секунд
johnkil
0
32
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
89
Kotlin in production
johnkil
0
130
Life without Fragments
johnkil
1
470
6. Создание UI
johnkil
0
66
3. Создание Android приложения
johnkil
0
65
4. Структура Android приложения
johnkil
0
140
5. Android ресурсы
johnkil
0
68
1. Введение в Android
johnkil
0
56
Other Decks in Education
See All in Education
自己紹介 / who-am-i
yasulab
PRO
2
4.4k
寺沢拓敬 2024. 09. 「言語政策研究と教育政策研究の狭間で英語教育政策を考える」
terasawat
0
280
COO's Perspective : Code for Everyone 2020-2024
codeforeveryone
0
210
Semantic Web and Web 3.0 - Lecture 9 - Web Technologies (1019888BNR)
signer
PRO
2
2.6k
Image compression
hachama
0
270
Sähköiset kyselyt, kokeet ja arviointi
matleenalaakso
1
17k
XML and Related Technologies - Lecture 7 - Web Technologies (1019888BNR)
signer
PRO
0
2.6k
Chapitre_1_-__L_atmosphère_et_la_vie_-_Partie_1.pdf
bernhardsvt
0
230
Security, Privacy and Trust - Lecture 11 - Web Technologies (1019888BNR)
signer
PRO
0
2.6k
ビジネススキル研修紹介(株式会社27th)
27th
PRO
1
230
Carving the Way to Ruby Engineering
koic
3
540
お仕事図鑑pitchトーク
tetsuyaooooo
0
2.3k
Featured
See All Featured
Done Done
chrislema
182
16k
Six Lessons from altMBA
skipperchong
27
3.5k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Automating Front-end Workflow
addyosmani
1366
200k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.1k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.2k
Bash Introduction
62gerente
609
210k
Making the Leap to Tech Lead
cromwellryan
133
9k
KATA
mclloyd
29
14k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
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/