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

Tips and tricks for a successful Android applic...

Tips and tricks for a successful Android application

THAT Conference 2018

Jorge Coca

August 06, 2018
Tweet

More Decks by Jorge Coca

Other Decks in Technology

Transcript

  1. → Released over 20 apps → Mostly Android, but some

    iOS too → Half of them have been a disaster!! → ... and the other half are doing pretty good :) → Worked alone, small teams... and large and internationals teams
  2. Cupcake & Donut April 2009 → First major release →

    Linux kernel → Java & Eclipse ADT → Main widgets and SDK components → Voice entry support → Gesture framework
  3. Eclair October 2009 → Multi account support → Bluetooth →

    Multitouch → Camera supports flash ⚡
  4. Froyo May 2010 → Chrome → Push notifications via C2DM

    → Flash and GIFs → Improved Market
  5. Gingerbread December 2010 → NFC → Improvementes on UI →

    Support for front camera → Google Wallet (on Nexus S) → Nexus One
  6. Ice Cream Sandwich October 2011 → Holo for phones →

    Major update of the OS → Editor's choice → Android is here to stay
  7. Jelly Bean June 2012 → Focus on performance → Support

    library & → New bluetooth stack → Dev focus on quality → Jake Wharton's first conference
  8. KitKat October 2013 → Refreshed interfaced → Android Wear →

    Nexus 5 and wearables → Android Studio → Gradle
  9. Lollipop November 2014 → Material Design → Dalvik → Multiple

    SIM card → WebView distributed over PlayStore → Dev focus on performance #perfMatters → Android One
  10. Marhsmallow October 2015 → Android for Work → Doze →

    Fingerprint → Runtime permissions → Battery optimizations
  11. Nougat August 2016 → Android beta program → Daydream →

    Multiwindow support → Picture in picture
  12. Oreo August 2017 → Kotlin → Architecture components → Focus

    on modular architectures → Adaptive icons → Notification improvements → Google Play protect → Android Go
  13. Challenges → Have clear goals and expectations → Invest your

    time and energy where it matters → Build for everyone → Crowded market. Be original → Be the first... or be the best
  14. Goals and expectations → Research your market → Measurable goals

    → Realistic expectations → Indie vs. small shop vs. corporation → Functionality vs design... (or both)
  15. Time and energy → Your cloud is your first common

    layer. Use it! → Dedicate efforts to the main use case of your app → What can you share between iOS and Android?
  16. Time and energy: cross platform → Easiest: WebView → WebView

    with native bridge: custom, Ionic... → Xamarin → Kotlin Multiplatform → ReactNative → Flutter
  17. Kotlin → Better develop experience → Interop with existing Java

    → Null safety → Google working on Kotlifying APIs → Easier to do "more complex" things
  18. Kotlin Do not force unwrap val jorge: Person? = null

    jorge!!.canSing CRASH! ... also, I sing horribly
  19. Kotlin Hello default paramenters! Bye Factories! class Person( val name:

    String, val age: Int, val canBreath: Boolean = true, val canSing: Boolean = true) ... unless you are like me
  20. Kotlin Sealed classes to express more complex enums sealed class

    Vehicle data class Car(val brand: String): Vehicle() data class Bike(val isMountainBike: Boolean): Vehicle() object class MagicCarpet : Vehicle()
  21. Kotlin: other tips → Data classes are your friends →

    Easy singletons with object → Synthetic extensions to avoid boilerplate
  22. Android → The smaller your Activities are, the better →

    The smaller your Fragments are, the better → The smaller your Services, the better Remove your business logic from SDK components
  23. Android → MVP, MVVM, VIPER, RIBs... → Only use libraries

    that make you feel comfortable → Do not overuse libraries → The smaller your APK is, the better! -> Code for everyone