This Weeks Links
Fragmented Podcast Episode 064: Garbage Collection (Android) vs Reference Counting (iOS)
In this mini-Fragment episode, Kaushik talks about the process of Garbage collection and how it compares to Reference counting (which is the equivalent process in iOS).
How does each work? What are the differences? Which is better 😁 ? Listen on for all the juicy details…
A clean status bar with Android System UI and QuickDemo
In this post, David Schreiber‑Ranner takes a look at the Android System UI demo mode which resolves issues that can plague the status bar including: unwanted notification icons, drained battery indicator and screenshot times. You will be presented with a tool, QuickDemo, for fast and convenient status bar cleansing.
Simple unit tests for Android
In this short article, Sasha Krol, discusses testing Android app logic. The article explores Local unit tests, which are used for testing business logic that is not interacting with the operating system. Afterwards, you will take a look at Instrumented unit tests, which are used for testing logic interconnected with Android API.
Pausing and resuming a stream in RxJava
Scott Cooper shares his experience and a solution to an issue he encountered when trying to pause an active stream, while simultaneously buffering incoming upstreams before emitting them together once the stream is resumed.
FrameMetrics — realtime app smoothness tracking
Starting from Android SDK 24, we can have access to graphic performance metrics information directly from our application code, thanks to the introduction of the Frame Metrics API. This post shares how to you can go about doing this so you no longer need to use the ADB and takes a look under the hood of FrameMetrics.
Making PNG optimization part of your app’s diet
Using vector assets is just one of the many ways to decrease your app’s size. However, sometimes you just need a good old fashioned PNG to get the desired effect, so in this article you will learn how to optimize your PNG images with Pngquant.
The ultimate guide to ORM in Android using ActiveAndroid: Part 1
In this series you will learn how to convert Object types we use to model our application into the basic types allowed in SQLite via Object-Relational Mapping (ORM). Part 1 provides a short intro to Object-Relational Mapping (ORM) and the ActiveAndroid library.
The ultimate guide to ORM in Android using ActiveAndroid: Part 2
In this series you will learn how to convert Object types we use to model our application into the basic types allowed in SQLite via Object-Relational Mapping (ORM). Part 2 explores the different ways to instantiate ActiveAndroid in your application.
Testing asynchronous RxJava code using Mockito
Testing asynchronous code can prove difficult when attempting to simulate through a JUnit test. In this post you will learn how to test RxJava code being used to manage background tasks, using Mockito and some RxJava utility classes.
Android how to add Fingerprint Authentication
Android 6.0 introduced a number of changes to the Fingerprint Authentication API. This post will help you get started implementing Fingerprint Authentication in your application with these new changes.
How to Stage Rollout Features using Firebase Remote Config (Android & iOS)
Did you know The Google Play Store allows you to slowly release your app to a selected group of your user base? This article explores the Staged Rollout feature and how you can implement this feature in your apps.
Organize your analytics code
In this article you will be shown techniques you can use to improve your analytics code. The techniques will help you avoid inaccurate and inefficient reporting through proper screen tracking, efficient event tracking and organization of your code.
Stop code style wars with Checkstyle
A consistent style of code in a team can make it faster to read and easier to understand. This post introduces, Checkstyle, a tool which can automatically check your code against the code style of the rest of your team.
Debugging Android databases and shared preferences in the easiest way
In this post, Amit Shekhar introduces the Android Debug Database Library, a powerful library for debugging databases and shared preferences in Android applications.
`Rxify` : The Anti Cache-then-Network OR Network-then-Cache Problem
This article explores a resolution to a “Cache-First then Network” problem using RxJava, then goes on to detail a “Anti Cache-then-Network” OR “Network-then-Cache” problem and how to handle it.
Caster.IO Lesson 125: Material Motion: Implementing Ripple Touch Feedback
The Material Design Motion guidelines, have detailed specifications for how touch feedback is supposed to look. In particular, it states that “Ink ripples confirm user input by immediately expanding outward from the point of touch.”
It is simple to implement proper Ripple feedback, using functionality built into the Android framework. In this video I will demonstrate a few simple methods for adding effective Ripple feedback to custom Views and RecyclerView items.
In this lesson you will learn:
- How to apply the _borderlessButtonStyle_ Style to an XML element
- How to apply the _selectableItemBackground_ attribute in an XML element
- How to use Ripple feedback in addition to other XML attributes (using foreground vs. background)
Caster.IO Lesson 126: Enabling Fingerprint on the Android Emulator
You need to build or test your application with fingerprint authentication (or maybe you’re even enabling fingerprint authentication on your application. Unfortunately you don’t have any fingerprint enabled devices which have a fingerprint sensor. Thankfully you can use the Android Emulator to test fingerprint authentication.
In this lesson Donn will show you how to set up various fingerprints in an Android Emulator.
In this lesson you will learn:
- How to enable Fingerprint in the security settings
- How to register numerous fingers to the fingerprint auth system
- How to unlock an emulator with a registered fingerprint
- How to delete existing fingerprints from the system
Caster.IO Lesson 127: MockWebServer – RESTMock
The Dispatcher is a powerful way to define the desired behavior of MockWebServer. However, the syntax is a bit verbose, and spelling out responses as JSON strings is a bit clumsy. We can use the RESTMock library to make it easier.
In this lesson you will learn:
- How to set up RESTMock
- How to use Hamcrest matchers with RESTMock
- How to tell RESTMock to return the content of a file as response
- How to verify requests with RESTMock
Testing made sweet with a Mockito by Jeroen Mols
What is a mock? What’s the difference between a mock and a stub? Are mocks the only way to provide relevant data for your unit tests? These questions and more will be answered by Jeroen Mols in this video exploring testing with Mockito.
A library for debugging android databases and shared preferences.
QuickDemo is a Android Nougat quick settings tile for fast access to the Marshmallow 6.0 System UI demo mode.
An Android library that adds a curve at the below of image views and relative layouts.
Detect janky frames with Android Nougat FrameMetrics.
Android Thermometer Widget.
- San Francisco, Nov 30 2016
AnDevCon is loaded with special events, including, for the first time, Fireside Chats: An Android Career Panel. Check out the details and the link to register for AnDevCon San Francisco 2016 here.