android code 2013 - michal pavlasek
DESCRIPTION
Slidy z mojej prednasky o nastrojoch co pouzivam pri vyvoji na Android.TRANSCRIPT
![Page 1: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/1.jpg)
Tipy pre developerov Aké nástoje na vývoj používam
Michal Pavlásektwitter.com/pavlasek
plus.google.com/+MichalPavlasek
![Page 2: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/2.jpg)
Obsah
• Idea / Návrh aplikácie• Vývoj• Testovanie• Nasadenie• Ostrá prevádzka / Maintanance
![Page 3: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/3.jpg)
O mne
• Java/Android, …, developer • Treba.sk• Easy Silencer• Football Glossary• Hangman Movies
![Page 4: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/4.jpg)
Idea / Návrh aplikácie
• Fluid UI– fluidui.com
• Taylor Ling
– http://androiduiux.com/free-design-resources/
![Page 5: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/5.jpg)
Idea / Návrh aplikácie
• Wireframing / Mockups• Printable A4 Android GUI Sketching Kit
– http://androiduiux.com/2012/06/30/printable-a4-gui-sketching-kit-nexus-s-galaxy-nexus-and-nexus-7/
![Page 6: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/6.jpg)
Vývoj
• minSdkVersion=14– Ak je to len trošku možné– Inak
● ActionBarSherlock ( ActionBarCompat)● Holo Everywhere● NineOldAndroids ● ...
• 3MB vs 1MB (treba.sk)
![Page 7: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/7.jpg)
IDE + OS
• Android Studio– IntelliJ Idea
• Android Development Tools (ADT)
– Eclipse
• Linux (Ubuntu), Mac
• Windows
– AVD - RAM (768MB)
![Page 8: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/8.jpg)
Build
• Gradle– Android Studio
• Eclipse
• ANT
• Maven
http://androidkickstartr.com/
![Page 9: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/9.jpg)
Device - / AVD
• Zariadenie je nutnosť• AVD
– ARM– x86
• Amazon AVD
• Genymotion– www.genymotion.com
![Page 10: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/10.jpg)
Vývoj
• GIT (svn, ...)• Amazon/Bitnami
– EC2 micro
![Page 11: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/11.jpg)
Vývoj
• http://square.github.io/– Dagger
– Otto
– Okhttp
– Tape
– ...
![Page 12: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/12.jpg)
Vývoj - Databáza
• SQLite• ORM
– OrmLite– greenDAO– storm-gen
![Page 13: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/13.jpg)
Vývoj - UI
• Touch feedback!• DP+SP – nie PX• Android Asset Studio
– android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html
• Action Bar Style Generator
• Holo Colors Generator
• CB screen resolution
![Page 14: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/14.jpg)
Vývoj - UI
• CB screen
resolution
![Page 15: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/15.jpg)
Vývoj
• AndroidQuery– aq.id(R.id.button)
.text("Click Me")
.clicked(this, "buttonClicked");
![Page 16: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/16.jpg)
Vývoj - Hry
• Cocos2d– Android
– Cocos2d-x
• AndEngine
• Unity
![Page 17: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/17.jpg)
Vývoj
● Performance / Battery life● Support Library● Lint – tools.android.com/tips/lint● Google play services● Google play game services● Amazon vs Google● Crashlytics● GCM
![Page 18: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/18.jpg)
Testovanie
● StrictMode● developer.android.com/tools/testing/● Robolectric
Activity activity = Robolectric.buildActivity(MyActivity.class).create().get();
Button pressMeButton = (Button) activity.findViewById(R.id.press_me_button);
TextView results = (TextView) activity.findViewById(R.id.results_text_view);
pressMeButton.performClick();
String resultsText = results.getText().toString();
assertThat(resultsText, equalTo("Testing Android Rocks!"));
![Page 19: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/19.jpg)
Nasadenie
● Zálohujte si certifikáty● Zálohujte si certifikáty
● Zálohujte si certifikáty
● ApiKeys (Devel/Production)● Maps,...
● Otestujte● adb install app.apk
![Page 20: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/20.jpg)
Nasadenie
● Lokalizácia● Getlocalization.com● ...● App Translation Service
● Developer Console
● TIP: popis v Play store
do strings.xml
![Page 21: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/21.jpg)
Maintanance
● Crash/ANR● Devel console
● Crashlytics● Google Analytics
![Page 22: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/22.jpg)
Kde získavať info
● Twitter● Google+● Google IO● ADiA, DevBytes, ...● Pinterest● androidweekly.net● Lokálne stretnutia ;)
![Page 23: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/23.jpg)
Treba.sk
● Client/server● GCM● Drawer● Voice input
![Page 24: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/24.jpg)
EasySilencer
● Otto● EventBus
● DashClockWidget● AlarmManager● Notifications
![Page 25: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/25.jpg)
HangmanMovies
● Google PlayGame Services
● Achievments● Leaderboards● Sync
● YouTube● Amazon/Google
![Page 26: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/26.jpg)
HangmanMovies
● Google PlayGame Services
● Achievments● Leaderboards● Sync
● YouTube● Amazon/Google
![Page 27: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/27.jpg)
FootballGlossary
● Voice input● YAML data● Tablet optimalizacia
![Page 28: Android code 2013 - Michal Pavlasek](https://reader033.vdocuments.pub/reader033/viewer/2022052905/5584c605d8b42aeb138b485a/html5/thumbnails/28.jpg)
Záver
● Ďakujem za pozornosť● Q/A