Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hello World 2016 - Android 101

Hello World 2016 - Android 101

Título: Android 101
Autor: Gaspar Oliveira
Contacto: gasparafoliveira[at]gmail.com

Avatar for Hello World Tech Conference

Hello World Tech Conference

February 10, 2016
Tweet

More Decks by Hello World Tech Conference

Other Decks in Technology

Transcript

  1. History Android 1.0 – Angel cake: ◦ Released in 2008

    with HTC Hero (a.k.a T-Mobile G1) Android 1.1 – Battenberg: ◦ Released in February 2009 Android 1.5 – Cupcake: ◦ Released in April 2009 Android 1.6 – Donut: ◦ Released in September 2009 Android 2.0/2.1 – Eclair: ◦ Released in October 2009 and January 2010 Android 2.2 – Froyo: ◦ Released in May 2010 Android 2.3 – Gingerbread: ◦ Released in December 2010 Android 3.0/3.1/3.2 – Honeycomb ◦ Released February 2011 Android 4.0 – Ice Cream Sandwich ◦ Released October 2011 Android 4.1/4.2/4.3 - Jelly Bean ◦ Released June 2012 Android 4.0 – KitKat ◦ Released January 2014 Android 5.0/5.1 – Lollipop ◦ Released November 2014 Android 6.0 – Marshmallow ◦ Released October 2015 @HELLOWORD 2016
  2. Second Step Define your goals and targets. ◦ Software targets

    – define the Android versions you want to support. Ignoring older version could be beneficial but updating to latest version could cost extra development. Choose wisely these targets: ◦ Minimum SDK Level ◦ Target SDK Level ◦ Max SDK Level ◦ UI targets – due to Android fragmentation, supporting all screens sizes and resolutions is impossible. Target the largest resolution (XXHDPI) and design UI to adapt as much as possible. @HELLOWORD 2016
  3. Third Step Setup Android Studio Download and install Android Studio

    with Android SDK tools and download required tools for previously defined API levels. @HELLOWORD 2016
  4. Fourth Step Create you app! Use Android Studio setup wizard

    to complete the process: ◦ Chose App name and company name. These will define the app package name (this must be unique or it will not be allowed on the Google Play Store). ◦ Select the minimum SDK for phones and tablets and chose if you want to support Android Wear, Android TV, Android Auto or/and Google Glass ◦ Chose activity type and name the activity. The corresponding layout will take the activity name. @HELLOWORD 2016
  5. Best Practices and tips Start all your global variables with

    “m” (private ListView mListView). This will help visually to know if the variable is global or not. Organize class in corresponding folders. All fragments should be under fragments folder, all adapters should be on adapters folder. Don’t be afraid to log. Logging you actions can be useful to debug and find problems. Try different libraries. Make sure your code is obfuscated when submitting and app to Google Play store. @HELLOWORD 2016
  6. Useful links and tools Documentation and tutorials: ◦ Android Cheatsheet

    for Graphic Designers: http://petrnohejl.github.io/Android-Cheatsheet-For-Graphic-Designers/ ◦ Android Developer Blog: http://android-developers.blogspot.pt/ ◦ Vogella: http://www.vogella.com/ ◦ Android Fragmentation: http://opensignal.com/reports/2015/08/android-fragmentation/ Tools: ◦ Android Pixel Calculator: http://angrytools.com/android/pixelcalc/ ◦ Genymotion: https://www.genymotion.com/ Libraries: ◦ Awesome android UI: https://github.com/wasabeef/awesome-android-ui ◦ Retrofit: https://github.com/codepath/android_guides/wiki/Consuming-APIs-with-Retrofit ◦ Leak Canary: https://github.com/square/leakcanary ◦ Timber: https://github.com/JakeWharton/timber Apps: ◦ Libraries for developers: https://play.google.com/store/apps/details?id=com.desarrollodroide.repos @HELLOWORD 2016