This Weeks Links
MVC vs. MVP vs. MVVM on Android
With the Android community generally moving away from the Model View Controller pattern, this article explores the differences between Model View Presenter (MVP), Model View ViewModel (MVVM) and the Model View Controller (MVC) patterns.
Building Google Actions with Java
In this post, Mirek Stanek introduces his Google Actions Java SDK, which will help you to to build Java based apps for Google Home or Google Assistant. The post provides an example and tips to help you get started contributing to this growing community.
Use StrictMode to find things you might be doing by accident
Amit Shekhar discusses StrictMode, a developer tool commonly used to detect accidental disk or network access, which can lead to a less responsive app. Amit will show you how to use StrictMode and help improve your code.
Android Property Animation — The ValueAnimator
The ValueAnimator class provides a basic timing engine for animation. It can can animate a view, or change it’s other properties such as: Width, height, x and y coordinates or background. Shivam Satija is here to show some examples of how ValueAnimator can bring life to your app.
A Curious Case of Multiple Locales
Adding support for multiple languages to your app can definitely have it’s advantages. This post explores why we need to be careful with resource configurations to gain the full benefit of multiple locals and provides some easy solutions to issues you may encounter.
1: Android Data Structures 101
In this series, Vinay Gaba will introduce you to Data Structures, which are a particular way of organizing and storing data with optimized efficiency for it’s intended purpose. Part 1 of this series explores ArrayMap, SparseArray and creating your own Data Structure.
Learning to use and abuse Mutability
Unlike in other languages, Java provides no precise control over what is mutable and immutable. In this post, Enrique López Mañas explores the good and the bad of the mutability world in Java.
Rationale – Handling Android Permission.
In this post, Nosa Belvi explains how you can avoid users denying permissions for your app. The post looks at using Rationale, an android library that assists in managing permission requests, to implement useful techniques used by apps like WhatsApp .
Coordinators: solving a problem you didn’t even know you had
You would not be alone in being a bit unsure what exactly Square’s Coordinators library does, as the Github page simply says “Simple lifecycle for your MVWhatever on Android. No kidding”. Luckily this post is here to explain what this library brings to the Android lifecycle and how to get started using it!
Shared Element Transitions – Part 1: Activities
In this series you will learn about Shared element transitions, which provide a focal point for users as they transition screens in your app. Part 1 will guide you through the creation of shared element transitions for Activity to Activity situations.
Getting started with Android Things
In this tutorial , Marcos Placona will show you how to setup, flash, boot Android Thing on your Raspberry Pi. The tutorial then goes on to show you how to create your first app, so you can sure everything is working correctly before you start exploring this new world.
How to use an extra GPIO pin on Raspberry Pi Rainbow Hat
Android Things: When connecting a Rainbow Hat to a Raspberry Pi it exposes its own set of pins that you will need to use if you wish to connect additional peripherals, like sensors. This article will show you how you can use Rainbow Hat’s pins for GPIO.
Simple Things – Part 4
In this series, Mark Allison, will cover some of the basics of Android Things and guide your through creating a simple weather station. In the fourth and final part of this series you will be shown how to add the ability to measure and display barometric pressure on the Rainbow HAT.
Testing persistence in the Android ecosystem
Persistence tests can require more setup, be more difficult to read, maintain and evolve when compared to regular tests. In this post, Luis G. Valle shares how we can apply some things learnt in a book he recently read, on about testing persistence, to the Android ecosystem.
Android Performance monitoring [Part 2]
This series take a look at Android performance monitoring tools which can be used to help you check for issues with your app. Part 2 focuses on CPU monitors and the optimization of the CPU to help provide smoother user experiences with less crashes in our apps.
Understanding Android Gradle build files
Extensive modifications to Gradle build files is not something many of us need to do, so therefore the inner working of these files can be a bit of a mystery. In this post, Łukasz Wasylkowski will show you step by step how to write Gradle configuration files for a single Android project, to provide you a more thorough understanding of how they work.
Review-Reporter: Part 1 – Connecting to Google Play
Keeping up to date with your app’s Playstore feedback can not only play a big part in ratings, it can help you identify and address bugs. This series introduces Review-Reporter, a bot that can help you do just that. Part 1 will show you how to connect your Google Play project and fetch reviews in form of list of Java objects.
Better Android Development with Kotlin & Gradle
This page contains a video and notes of a talk from Ty Smith at GOTO Copenhagen 2016. Ty provides a brief overview of the Kotlin language before exploring the use Kotlin with Gradle and Android to streamline your workflow for app development.
Learn to create a Flip Coin Application on Android
In this tutorial post & video, S.Saurel will show you how to use the Animation API to create a Flip Coin Application on Android.
Espresso Test Addiction: An Anti-pattern
The espresso test recorder simplifies getting started with testing and espresso, however some developers feel this can come at a cost. This post shares why the writer feels heavily relying on UI tests can be too much of a good thing that can lead to disaster.
Caster.IO Lesson 161: Material Design – Using Shared Element Transitions
In this video I will show you how implement Material Intentional Motion in your Android applications using Shared Element Transitions to share multiple views during transitions.
These transitions help the user focus on the shared content instead of the actual transition animation. The process to add these is surprisingly simple, and the effect is quite effective.
In this lesson you will learn:
- How to add Shared Element Transitions to an Android Activity Transition
- Which OS versions support this, and how to degrade on older devices
- How to share a single view element during an Activity transition
Caster.IO Lesson 162: Material Design: Shared Element Transitions – Sharing Multiple Views
In this lesson I will show you how implement Material “Intentional Motion” in your Android applications using Shared Element Transitions to share multiple views during transitions.
It is possible to share multiple View elements in a single transition, this video will demonstrate how to do this.
In this lesson you will learn:
- How to share multiple elements in an Activity Transition
- How to identify which elements will best guide User focus
Caster.IO Lesson 163: Realm Group Queries
Querying for data can sometimes be complex and simple equals conditions are not sufficient enough to output the data you need. You can easily group conditions together using Realms beginGroup and endGroup query modifiers.
In this lesson you will learn:
- How to create a query group
- How query groups work with external query conditions outside of the group
- How query groups are logically anded together.
- How to perform or operations inside of a query group.
Caster.IO Lesson 164: A/B testing your app’s Google Play Store listing
Google Play Store’s A/B testing feature for your app’s listing is a very powerful feature: it allows you to test out various versions of your listing to see what plays well with your audience, and what doesn’t. In this video, I’ll show you:
- What kind of experiments you can run
- How to start an experiment
- What results you get through the course of an experiment
- Some best practices for running an experiment
Premiumer makes removing ads with a single in-app purchase as easy as pie.
A unified fingerprint library for android.
An easy way to make your progress view nice and sleek.