Date post: | 19-Jan-2017 |
Category: |
Engineering |
Upload: | rom-shiri |
View: | 112 times |
Download: | 0 times |
Android: From Code to Store
Rom Shiri
Agenda
‣ Introduction to Android Libraries
‣ Networking
‣ Image Loading
‣ Dependency Injection
‣ Event Bus
‣ Debugging
‣ What’s Next?
Where is my standard library?!
“If you find yourself doing something by yourself, you’re probably doing it in the wrong way”
- Somebody at Google’s Android team
Networking‣ The standard way:
Retrofit by Square
‣ Turns your HTTP API into a Java interface
‣ Using GSON as JSON parser
‣ Stupidly easy to use
http://square.github.io/retrofit/
Image Loading
‣ Images are not trivial:
‣ Memory consumption
‣ Network
‣ Main players:
‣ Picasso (Square)
‣ Glide
‣ Fresco (Facebook)
‣ UIImageLoader
Source: http://stackoverflow.com/questions/29363321/picasso-v-s-imageloader-v-s-fresco-vs-glide
Picasso by Square
‣ Lightweight
‣ Fluent API
http://square.github.io/picasso/
Dagger by Square & Google
‣ Dependency Injection library
‣ Adopted by Google (Dagger vs Guice)
‣ Dagger 2
‣ simple, traceable and performant
http://google.github.io/dagger/
ButterKnife by Jake Wharton ‣ View binding framework
‣ Less boilerplate code
With ButterKnife
with
without
http://jakewharton.github.io/butterknife/
Otto by Square
‣ An enhanced event bus with emphasis on Android support
‣ Forked from Guava (Google’s Java Library)
http://square.github.io/otto/
Stetho by Facebook ‣ A debug bridge for Android applications via
Chrome Developer Tools
‣ Network Inspection
‣ View Hierarchy
‣ Database Inspection
‣ Javascript Console
http://facebook.github.io/stetho/
What’s Next?‣ Check out Square Open Source
‣ square.github.io
‣ “Must have libraries” on GitHub:
‣ https://github.com/codepath/android_guides/wiki/Must-Have-Libraries
‣ Mobile Device Lab Stash
‣ https://stash.sears.co.il/projects/MDL
Happy Android Developing!