There's a large number of libraries available for Android but who has the time to try them all? In this lecture we'll show you a few libraries which we use on daily basis and explain how they can help you to get the job done faster.
https://www.youtube.com/watch?v=9yxj9bxQ9H4
19. Glide
• Glide supports fetching, decoding and displaying
video stills, images, and animated GIFs.
• Uses a custom HttpUrlConnection but it can use
Volley or OkHttp library instead
28. Retrofit
• Use annotations to describe the HTTP request
• URL parameter replacement and query parameter
support
• Multipart request body and file upload
31. DbFlow
• ORM android database library with annotation
processing
• Very fast
• Triggers, Views, Indexes, and many more SQLite
features
• Approved by Željko Plesac
35. DbFlow - I want more!
• Check out Android Talks #10
36. DbInspector
• Created by Dino Kovač
• View the contents of the in-app database for
debugging purposes
• No need to pull the database from a rooted phone
• Approved by Željko Plesac
• Android talks #5
37. Mockito
• “Mockito is a mocking framework that tastes really
good”
• Create readable unit tests which produce clean
verification errors
• Top 10 Java library across all libraries
38. Robolectric
• A unit test framework that helps you test-drive the
development of your Android app
• Robolectric handles inflation of views, resource
loading, and lots of other stuff.
• Run your tests on your workstation, or on your
Continuous Integration environment
40. Crashlytics
• Light weight crash reporting solution
• Easy to use
• Android studio plugin
• Very powerful
41. Eventbus
• Publish/subscribe event bus
• Simplifies the communication between components
• Has advanced features like delivery threads,
subscriber priorities
42. Eventbus usage
1. Define event
public class MessageEvent { /* Additional fields if needed */ }
2. Register subscriber
EventBus.getDefault().register(this);
public void onEvent(MessageEvent event) {// Do something };
3. Register onEvent method
EventBus.getDefault().post(new MessageEvent());
4. Post event
43. Dagger
• Dependency injector for Android and Java
• Makes each class easy to test
• Create reusable modules
• Check out their official site
44. Joda Time
• Replacement for the Java date and time classes
• Provides simple API
• Multiple calendar systems
• Under active development since 2002
• From Java SE 8 onwards, users are asked to
migrate to java.time