practical android course part i - introduction, activities (kni)
DESCRIPTION
Introduction to Android Programming presented at computer scientists group on Warsaw University Of Technology / 25.07.2013TRANSCRIPT
ANDROID
CONTACTSYLWESTER MADEJ@[email protected]
OBJECTIVES● Create your own Android App● Publish it to the Google Play● Get fame and respect
BASIC INFO● 5-7 meetings● 2-3h + optional homework● Focus on best practices● More code than slides● Requirements: computer, free time, basic Java
SOURCES● http://developer.android.com/develop/index.html● http://developer.android.com/design/index.html● https://www.youtube.com/user/MarakanaTechTV● Requirements: computer, free time, basic Java● „Android w praktyce” C. Collins, M. Galpin, M. Kaeppler
WEAPON OF CHOISE● GIT! (Github, Bitbucket)● Parse + Facebook SDK● ActionBarSherlock (support-v4), AQuery● Ormlite● Jenkins CI + Calabash● Google Analytics● Genymotion
ANDROID● Aquired by Google in 2005● Real start – G1 with Android 1.5 in 2008
WHY ANDROID?● Currently the most popular mobile OS
FRAGMENTATION
FRAGMENTATION
FRAGMENTATION
UNDER THE HOOD● Linux kernel● JAVA (bytecode - .class)● DALVIK VM (bytacode - .dex)● Heap per VM (process) - 16MB+● Dex2Jar
TOOLS● ADT Bundle (Eclipse + SDK + ADT Plugin + ...)
http://developer.android.com/sdk/index.html● Android Studio?● Emulator (AVD) or Genymotion● ADB● DDMS REFRESH, CLEAN, RESTART!!!
DEMO● Let's start having fun
AndroidManifest.xml● Package● Components: Activities, Services, Broadcast Receivers...● Permisions● Versions● Libraries (e.g. Maps)
Activity● Single screen● Back stack● Lifecycle● Don't forget to put it in AndroidManifest.xml. You will...● StartActivity, StartActivityForResult
LUNCHTIME!● Homework:
Create Login Activity simillar to this.
When e-mail & password are correct, open second Activity with „It's lunchtime!” text in the middle and Logut button, which switch user back to Login screen.
NEXT MISSION● Views● Layouts● Resources, Assets● Adaptes with ViewHolder pattern