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
Jak vyrobit aplikaci pro Android
Search
petrnohejl
February 18, 2012
Programming
1
390
Jak vyrobit aplikaci pro Android
Tutoriál z Android Dev Campu 2012 v Praze.
petrnohejl
February 18, 2012
Tweet
Share
More Decks by petrnohejl
See All by petrnohejl
Alfonz
petrnohejl
1
480
Intro to Android for QA
petrnohejl
1
77
MVVM Architecture on Android
petrnohejl
7
2.7k
Other Decks in Programming
See All in Programming
RDoc meets YARD
okuramasafumi
4
170
MCPとデザインシステムに立脚したデザインと実装の融合
yukukotani
4
1.4k
個人軟體時代
ethanhuang13
0
330
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
22
5.8k
Processing Gem ベースの、2D レトロゲームエンジンの開発
tokujiros
2
130
Compose Multiplatform × AI で作る、次世代アプリ開発支援ツールの設計と実装
thagikura
0
170
概念モデル→論理モデルで気をつけていること
sunnyone
3
290
Navigation 2 を 3 に移行する(予定)ためにやったこと
yokomii
0
330
Navigating Dependency Injection with Metro
zacsweers
3
2.5k
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
250
Design Foundational Data Engineering Observability
sucitw
3
200
デザイナーが Androidエンジニアに 挑戦してみた
874wokiite
0
540
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.7k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Pragmatic Product Professional
lauravandoore
36
6.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Bash Introduction
62gerente
615
210k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Docker and Python
trallard
46
3.6k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.7k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Transcript
Tutoriál: Jak vyrobit aplikaci pro Android
Android Dev Camp 2012 Petr Nohejl @petrnohejl www.petrnohejl.cz
Co budeme dělat?
Naučíme se… 1) Založit nový projekt 2) Vytvářet aktivity 3)
Používat resources 4) Navrhovat GUI
Budeme potřebovat… • Znalosti jazyka Java • Eclipse & Android
SDK • Androidí zařízení
1. Nový projekt
Nový projekt v Eclipse… • Build SDK target • Package
name • Minimum SDK version
Struktura projektu… • /src • /res • /gen • /assets
• manifest
Manifest… • Version • Install location • Min SDK version
• Target SDK version • Permissions • Activities
2. Aktivity
Aktivita… 1 aktivita =
Životní cyklus… onCreate() onResume() Activity running… onPause() onDestroy()
Vyzkoušej si… Log.d(" Foo ", " Bar "); a sleduj
LogCat (DDMS)
3. Resources
Resources… • Xml formát • Resource id (R.id, R.layout, R.string,
R.drawable, R.color, …) • Problémy s resources? Eclipse menu > Project > Clean…
Typy resources… • /layout • /values • /drawable • /menu
Qualifiers… • /drawable-hdpi (-mdpi, -ldpi, …) • /values-cs (-en, -de,
…) • /layout-large-land • Priority…
Typy values… • <string /> • <dimen /> • <color
/> • <style />
Rozměry… • dp (density independent pixels) • sp (scale independent
pixels) • px (pixels)
4. GUI
Layouts… <LinearLayout />
Layouts… <RelativeLayout />
Layouts… • <FrameLayout /> • <TableLayout /> • <AbsoluteLayout />
• <ScrollView />
Views… • <TextView /> • <ImageView /> • <EditText />
• <Button /> • <ListView />
Co dál?
Vývojářská příručka… • http://d.android.com/guide/
Díky a nashledanou!
None