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
78
MVVM Architecture on Android
petrnohejl
7
2.7k
Other Decks in Programming
See All in Programming
TransformerからMCPまで(現代AIを理解するための羅針盤)
mickey_kubo
7
5.3k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
480
マンガアプリViewerの大画面対応を考える
kk__777
0
260
Devoxx BE - Local Development in the AI Era
kdubois
0
140
SODA - FACT BOOK(JP)
sodainc
1
8.8k
ALL CODE BASE ARE BELONG TO STUDY
uzulla
28
6.7k
Go言語はstack overflowの夢を見るか?
logica0419
0
600
Goで実践するドメイン駆動開発 AIと歩み始めた新規プロダクト開発の現在地
imkaoru
4
900
なぜGoのジェネリクスはこの形なのか? - Featherweight Goが明かす設計の核心
qualiarts
0
250
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
910
When Dependencies Fail: Building Antifragile Applications in a Fragile World
selcukusta
0
110
Introduce Hono CLI
yusukebe
6
3.1k
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.7k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
YesSQL, Process and Tooling at Scale
rocio
173
15k
Writing Fast Ruby
sferik
630
62k
Balancing Empowerment & Direction
lara
5
700
The Pragmatic Product Professional
lauravandoore
36
7k
Speed Design
sergeychernyshev
32
1.2k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.7k
We Have a Design System, Now What?
morganepeng
53
7.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