Issue #245

February 19th, 2017

Articles & Tutorials

 
link image   Write awesome unit tests (jeroenmols.com)

Jeroen Mols aims to provide three very simple rules that will significantly ramp up your testing game. Every rule is followed by pragmatic tips so you can easily start implementing.

 
Helping to Mock Tests in Kotlin (medium.com)

Roger Silva shows how to enable mocking in Kotlin objects without the need to change its default immutability property exclusively for unit tests.

 
How and Why I Kill God Objects (www.philosophicalhacker.com)

In android development specifically, we have a god that we all know and love to hate: Context. The Philosophical Hacker shows why and how to kill off the Context god in apps.

 
How to Make Calls and Use SMS in Android Apps (code.tutsplus.com)

In this tutorial, Chike Mgbemena writes about the Android Telephony and SMS API. You'll learn how to make a call from your app and how to monitor phone call events, as well as how to send and receive SMS.

 
Android Things - Electricity Monitoring App (riggaroo.co.za)

Rebecca Franks shares an app (and GitHub repo) that uses Android Things, Firebase and a Raspberry Pi to monitor the state of electricity in her home.

 
Using Keystore system to store and retrieve sensitive information (medium.com)

Josias Sena discusses how to take advantage of the Android Keystore and store passwords, or any other sensitive data in it, encrypt the data, and decrypt that data right back.

 
link image   The lost droid and the magic Dagger (medium.com)

An introduction to dependency injection for Android, and how to implement it using Dagger 2.

 
Wear 2.0: Match Timer – Part 1 (blog.stylingandroid.com)

Mark Allison updates his Match Timer app (from earlier posts) to Android Wear 2.0

 
ViewPager without Fragments (www.ottodroid.net)

This blog post explains how a ViewPager can be used without Fragments.

 
Stress-testing Android apps (android.jlelse.eu)

Mostafa Gazar shares several tips on how to stress-test your apps.

 
How to leak memory with Subscriptions in RxJava (medium.com)

Marcin Robaczyński explores one of the pitfalls in how easy it is to create a memory leak with RxJava’s Subscriptions.

 
Your Unit tests might not be as reliable as you thought (afterecho.uk)

A reminder about how passing unit tests can contain code that fail on devices.

 
Airplane Mode: Enabling Trello Mobile Offline (tech.trello.com)

Dan Lew shares how the Trello team implemented offline capabilities in their Android app.

 
Self-guided resources to Android development (twitter.com)

Want to move into Android? Corey Latislaw shares a complication of self-guided resources.

 

Sponsored

 
link image   Test your Mobile App on Real Devices for Free (kobiton.com)

Join the Kobiton Beta and test your mobile app on the devices you need, when you need them. Automatically generated activity logs help you track your progress and identify issues faster whether you are manually testing or running automated scripts. Sign up now and start testing in minutes.

 
link image   Deliver in-app customer service with Zendesk (www.zendesk.com)

Special offer for Android Weekly readers: save $177 with coupon "DEV238". With Zendesk's Mobile SDK, you can join Rovio Games and Swiftkey in bringing rich, native, in-app support to your app quickly and easily. Try it out today.

 

Jobs

 
Android Engineer (San Francisco, CA)

Want to work on the world's leading video platform and community for gamers? Join us at Twitch!

 
Senior Android Developer (Bangkok, Thailand)

Agoda is the largest and fastest growing online hotel booking platform in Asia, and as a Priceline Group company, we are part of the largest online travel company in the world. Our Android app is core to our business. You’ll work on a product that’s evolved tremendously and still has room to grow.

 

Libraries & Code

 
Alerter (github.com)

This library aims to overcome the limitations of Toasts and Snackbars, while reducing the complexity of your layouts

 
sensey (github.com)

Android library which makes detecting gestures a breeze. The library is built for simplicity and ease of use. It eliminates most boilerplate code for dealing with setting up gesture detection on Android.

 
mkloader (github.com)

Beautiful and smooth custom loading views.

 

News

 
link image   Kotlin 1.1 Release Candidate is Here (blog.jetbrains.com)

Kotlin 1.1 has finally reached the release candidate stage.

 
Google Play Services 10.2 Release Notes (developers.google.com)

Highlights from the Google Play services 10.2 release.

 

Videos & Podcasts

 
link image   MVVM on Android (www.youtube.com)

Petr Nohejl presents about implementing MVVM on Android, and he shows how easy it is to implement on Android with the Data Binding Library.

 
Effective Java for Android Developers – Item #14 (fragmentedpodcast.com)

In this mini-Fragment episode, Donn talks about Item #14 of the Effective Java series – In public classes, use accessor methods, not public fields.

 
RxJava for the Rest of Us (realm.io)

Hugo Visser goes over what RxJava is and how you can use it to solve problems in your Android apps. He also discusses how you can prevent shooting yourself in the foot by looking at common mistakes.