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
380
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
470
Intro to Android for QA
petrnohejl
1
77
MVVM Architecture on Android
petrnohejl
7
2.6k
Other Decks in Programming
See All in Programming
Gleamという選択肢
comamoca
6
660
KotlinConf 2025 現地で感じたServer-Side Kotlin
n_takehata
1
180
AIエージェントによるテストフレームワーク Arbigent
takahirom
0
360
F#で自在につくる静的ブログサイト - 関数型まつり2025
pizzacat83
0
280
Beyond Portability: Live Migration for Evolving WebAssembly Workloads
chikuwait
0
310
MLOps Japan 勉強会 #52 - 特徴量を言語を越えて一貫して管理する, 『特徴量ドリブン』な MLOps の実現への試み
taniiicom
2
650
赤裸々に公開。 TSKaigiのオフシーズン
takezoux2
0
110
#QiitaBash TDDでAIに設計イメージを伝える
ryosukedtomita
2
1.7k
データベースコネクションプール(DBCP)の変遷と理解
fujikawa8
1
230
社内での開発コミュニティ活動とモジュラーモノリス標準化事例のご紹介/xPalette and Introduction of Modular monolith standardization
m4maruyama
0
110
Development of an App for Intuitive AI Learning - Blockly Summit 2025
teba_eleven
0
110
プロダクト開発でも使おう 関数のオーバーロード
yoiwamoto
0
140
Featured
See All Featured
A Tale of Four Properties
chriscoyier
159
23k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Designing for Performance
lara
609
69k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.3k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
GraphQLとの向き合い方2022年版
quramy
46
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
BBQ
matthewcrist
89
9.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
For a Future-Friendly Web
brad_frost
179
9.8k
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