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
86
13. Работа с сетью
Evgeny Shishkin
March 02, 2015
Tweet
Share
More Decks by Evgeny Shishkin
See All by Evgeny Shishkin
Создать собственное приложение для планирования путешествий за 60 секунд
johnkil
0
42
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
97
Kotlin in production
johnkil
0
140
Life without Fragments
johnkil
1
510
6. Создание UI
johnkil
0
74
3. Создание Android приложения
johnkil
0
71
4. Структура Android приложения
johnkil
0
150
5. Android ресурсы
johnkil
0
73
1. Введение в Android
johnkil
0
61
Other Decks in Education
See All in Education
Gitの中身 / 03-a-git-internals
kaityo256
PRO
0
130
GitHubによるWebアプリケーションのデプロイ / 07-github-deploy
kaityo256
PRO
1
170
渡辺研Slackの使い方 / Slack Local Rule
kaityo256
PRO
11
11k
Web Search and SEO - Lecture 10 - Web Technologies (1019888BNR)
signer
PRO
2
3.1k
Write to Win: Crafting Winning Application Essays
em07adoz
0
130
AIでキミの未来はどう変わる?
behomazn
0
120
Multimodal Interaction - Lecture 3 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2k
LotusScript でエージェント情報を出力してみた
harunakano
0
140
リモートリポジトリの操作 / 02-c-remote
kaityo256
PRO
0
110
Gluon Recruit Deck
gluon
0
150
CoderDojoへようこそ ニンジャ&保護者向け (CoderDojo Guidance for Ninjas&Parents)
coderdojokodaira
1
100
心理学を学び活用することで偉大なスクラムマスターを目指す − 大学とコミュニティを組み合わせた学びの循環 / Becoming a great Scrum Master by learning and using psychology
psj59129
1
2k
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
280
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
300
First, design no harm
axbom
PRO
2
1.1k
Mind Mapping
helmedeiros
PRO
1
110
Leo the Paperboy
mayatellez
4
1.5k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
320
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Curious Case for Waylosing
cassininazir
0
270
Making Projects Easy
brettharned
120
6.6k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
380
A designer walks into a library…
pauljervisheath
210
24k
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/