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

Android libraries I wish I knew when I started

Android libraries I wish I knew when I started

Android tech talk at Tecnologico de Monterrey celebrating Semana-I on September 29th, 2016

Jorge E. Hernández

September 29, 2016
Tweet

More Decks by Jorge E. Hernández

Other Decks in Programming

Transcript

  1. When entering to work at SEP, most Mexico teachers get

    assigned to work far away from home. A little story…
  2. App to let teachers share their need to move to

    another workplace to: spend time with family Solution educate better for the future save money on transportation, living
  3. •  Manage multiple views •  Load and display images • 

    Fetch data from an API •  Parse JSON •  Persist data to storage A lot of apps do similar things
  4. •  Manage multiple views •  Load and display images • 

    Fetch data from an API •  Parse JSON •  Persist data to storage A lot of apps do similar things
  5. •  Manage multiple views •  Load and display images • 

    Fetch data from an API •  Parse JSON •  Persist data to storage A lot of apps do similar things
  6. •  Manage multiple views •  Load and display images • 

    Fetch data from an API •  Parse JSON •  Persist data to storage A lot of apps do similar things
  7. Don’t reinvent the wheel. Use these libraries: •  Manage multiple

    views Butter Knife v8.2 •  Load and display images Picasso v2.5 •  Fetch data from an API Retrofit v2.1 •  Parse JSON Gson v2.7 •  Persist data to storage Realm v1.1
  8. Don’t reinvent the wheel. Use these libraries: •  Manage multiple

    views Butter Knife v8.2 •  Load and display images Picasso v2.5 •  Fetch data from an API Retrofit v2.1 •  Parse JSON Gson v2.7 •  Persist data to storage Realm v1.1
  9. •  No additional cost at run-time •  Improved View lookups

    •  Improved Listener attachments Butter Knife
  10. Don’t reinvent the wheel. Use these libraries: •  Manage multiple

    views Butter Knife v8.2 •  Load and display images Picasso v2.5 •  Fetch data from an API Retrofit v2.1 •  Parse JSON Gson v2.7 •  Persist data to storage Realm v1.1
  11. •  Makes HTTP Requests •  Caches the images •  Easy

    resizing/cropping/centering/scaling •  Takes care of downloading off the main thread Picasso
  12. Don’t reinvent the wheel. Use these libraries: •  Manage multiple

    views Butter Knife v8.2 •  Load and display images Picasso v2.5 •  Fetch data from an API Retrofit v2.1 •  Parse JSON Gson v2.7 •  Persist data to storage Realm v1.1
  13. •  Type safe •  Built in support for Authentication • 

    Parse JSON to POJOs (with a JSON factory) •  Can be executed synchronously or asynchronously Retrofit
  14. Don’t reinvent the wheel. Use these libraries: •  Manage multiple

    views Butter Knife v8.2 •  Load and display images Picasso v2.5 •  Fetch data from an API Retrofit v2.1 •  Parse JSON Gson v2.7 •  Persist data to storage Realm v1.1
  15. •  Convert JSON to a java object and vice versa

    •  Doesn't require Java annotations in your classes •  Super optimized •  Commonly used Gson
  16. Don’t reinvent the wheel. Use these libraries: •  Manage multiple

    views Butter Knife v8.2 •  Load and display images Picasso v2.5 •  Fetch data from an API Retrofit v2.1 •  Parse JSON Gson v2.7 •  Persist data to storage Realm v1.1
  17. •  Works by extending your models •  Made for mobile

    •  Most queries in Realm are fast enough to be run synchronously •  Can have multiple realm database in an app Realm
  18. Don’t reinvent the wheel. Use these libraries: •  Manage multiple

    views Butter Knife v8.2 •  Load and display images Picasso v2.5 •  Fetch data from an API Retrofit v2.1 •  Parse JSON Gson v2.7 •  Persist data to storage Realm v1.1