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
370
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
450
Intro to Android for QA
petrnohejl
1
74
MVVM Architecture on Android
petrnohejl
7
2.6k
Other Decks in Programming
See All in Programming
Vibe Codingをせずに Clineを使っている
watany
17
6.1k
サービスレベルを管理してアジャイルを加速しよう!! / slm-accelerate-agility
tomoyakitaura
1
170
AI時代の開発者評価について
ayumuu
0
110
Day0 初心者向けワークショップ実践!ソフトウェアテストの第一歩
satohiroyuki
0
830
gen_statem - OTP's Unsung Hero
whatyouhide
1
190
RuboCop: Modularity and AST Insights
koic
0
100
Coding Experience Cpp vs Csharp - meetup app osaka@9
harukasao
0
730
ベクトル検索システムの気持ち
monochromegane
31
9.9k
エンジニア未経験が最短で戦力になるためのTips
gokana
0
260
Kubernetesで実現できるPlatform Engineering の現在地
nwiizo
3
1.9k
「”誤った使い方をすることが困難”な設計」で良いコードの基礎を固めよう / phpcon-odawara-2025
taniguhey
0
120
ミリしらMCP勉強会
watany
4
740
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Writing Fast Ruby
sferik
628
61k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
178
53k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
2.9k
Code Reviewing Like a Champion
maltzj
522
39k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.3k
Raft: Consensus for Rubyists
vanstee
137
6.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.4k
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