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
81
13. Работа с сетью
Evgeny Shishkin
March 02, 2015
Tweet
Share
More Decks by Evgeny Shishkin
See All by Evgeny Shishkin
Создать собственное приложение для планирования путешествий за 60 секунд
johnkil
0
37
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
92
Kotlin in production
johnkil
0
130
Life without Fragments
johnkil
1
500
6. Создание UI
johnkil
0
68
3. Создание Android приложения
johnkil
0
66
4. Структура Android приложения
johnkil
0
140
5. Android ресурсы
johnkil
0
69
1. Введение в Android
johnkil
0
56
Other Decks in Education
See All in Education
AIの時代こそ、考える知的学習術
yum3
2
170
Webリテラシー基礎
takenawa
0
5.4k
ThingLink
matleenalaakso
28
4.1k
Education-JAWS #3 ~教育現場に、AWSのチカラを~
masakiokuda
0
170
Implicit and Cross-Device Interaction - Lecture 10 - Next Generation User Interfaces (4018166FNR)
signer
PRO
2
1.7k
日本の教育の未来 を考える テクノロジーは教育をどのように変えるのか
kzkmaeda
1
210
サンキッズゾーン 春日井駅前 ご案内
sanyohomes
0
340
OJTに夢を見すぎていませんか? ロールプレイ研修の試行錯誤/tryanderror-in-roleplaying-training
takipone
1
150
登壇未経験者のための登壇戦略~LTは設計が9割!!!~
masakiokuda
2
500
SkimaTalk Tutorial for Students
skimatalk
0
1.8k
Info Session MSc Computer Science & MSc Applied Informatics
signer
PRO
0
190
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visualisation (4019538FNR)
signer
PRO
1
2.4k
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.6k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.3k
Writing Fast Ruby
sferik
628
62k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
The Cost Of JavaScript in 2023
addyosmani
51
8.5k
Making the Leap to Tech Lead
cromwellryan
134
9.4k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
4 Signs Your Business is Dying
shpigford
184
22k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
YesSQL, Process and Tooling at Scale
rocio
173
14k
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/