This Weeks Links
Fragmented Podcast 073: Effective Java for Android Developers – Item #14: In public classes, use accessor methods, not public fields
In this mini-Fragment episode, Donn talks about Item #14 of the Effective Java series – In public classes, use accessor methods, not public fields. You’ll learn why it’s important to use accessors in your public classes and some caveats to this rule.
[TUT] Android Things – Writing a PIR Motion Sensor Driver
In this tutorial, you will be shown how to write an Android Things driver for a motion a passive infrared (PIR) Sensor Module. The tutorial focuses on the HC-SR501 PIR sensor, which interfaces to your Android Things board via a GPIO pin and can be used to detect movement.
Let’s make an MVVM at Android
Sasha Krol provides an introduction to Model-View-ViewModel and walks you through some implementation with examples, to show you how to create flexible architecture for Android using DataBinding
Introduction to Networking Using Kotlin
These days, almost all apps connect to the internet to provide information, additional features and networked system access to users. In this tutorial, Eunice Obugyei, will show you how networking works in Kotlin.
Android UX Tricks: Nested Scrolling without Nested Scrolling
Brendan Weinstein shares a solution for doing nested scrolling and nested flinging on Android. The solution is a bit different to what you may expect and comes down to some good old fashioned thinking outside the box, check it out!
Using the Android Keystore system to store and retrieve sensitive informationJosias Sena demonstrates how the Android Keystore system can be used to securely store a password or sensitive data in a container. to make it more difficult to extract from a device. The post will demonstrate how to encrypt the chosen data, display the encrypted form of it and decrypt it.
I could not find a simple Gesture Detection android library, so I built one
Sensey, an android library that assists in setting up gesture detection on Android with minimal boilerplate code, is introduced by Nishant Srivastava. This post will help you get started integrating Sensey in your current android project.
Android Multiwindow Support
From Android N onwards, the ability to run more than one app on the screen at a time is supported at the operating-system level. In this article you will learn how to make an Android app that has Multi-window (also called Split Screen) support.
Shared Element Transitions – Part 3: Picasso & Glide
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 3 explores how we can tie together the previous examples using the Picasso and Glide image loading libraries.
Package Name vs. Application ID
You may or may not be aware that there is actually a subtle, but important, difference between the Package Name and the Application ID. This post will help clarify the difference.
Composite Views in Android: Composition over Inheritance
The CompositeAndroid library favours composition over inheritance in Android views. instead of having multiple base classes that add functionality to an Activity or Fragment. This post looks at a common problem encountered with base Activities or Fragments with shared logic and provides a solution.
Are you an Android Nerd with a passion for developing solutions for challenging problems? At the Nerdery, you’ll collaborate with talented engineers developing best-in-class apps for a variety of clients. Check out one of our events or apply today!
Hidrate (www.hidratespark.com) is looking to expand our development team and we’re searching for talented Android Engineers with experience in BLE connected devices and Node.js to work with us full time.
We are looking for an Android Engineer to play an integral role on our mobile team. As our Android community continues to expand rapidly, we need a proactive engineer to work on a wide range of VSCO and Artifact Uprising products.
Our partner, Wire, a European technology company is developing a secure and privacy-focused communication platform, is looking for a Scala developer with exposure to Android.
How to get Android to tell if your beer is ok. Yes, your beer.
Alejandro Zürcher shares how TensorFlow and the Google’s Vision API can be used to detect a brand of the beer, similar to what the Vivino app does with wine.
How to Make Calls and Use SMS in Android Apps
This tutorial will show you how you can go about adding the ability to initiate a call or send an sms message, to your app, using the Android Telephony and SMS API.
RxJava for the Rest of Us
In this video and notes of a talk by Hugo Visser, you will learn what RxJava is and how you can use it to solve problems in your Android apps one step at a time. The talk also looks at common RxJava mistakes, to help you avoid making them.
The Tip of the iceberg: Your Mobile App is really a Web App
In this post, Jonathan Martin takes a look at what a Web App is, what a Native App is and what a Hybrid App is. The post takes a look at some common misconceptions and will help you decide which type of app to create.
You won’t believe this one weird trick to handle Android Intent extras with Kotlin
Eugenio Marletti introduces a Kotlin Library that contains a collection of Kotlin property delegates for managing Android Intent and Bundle extras.
Open Sourcing Dex Test Parser
In this post, Drew Hannay introduces Dex Test Parser, a recently open sourced project that reads the bytecode of dex files and returns a list of the test methods stored in the apk.
Post-mortem : Firebase vs permissions
Jeremie Martinez shares his teams experience of releasing a new feature with Firebase. Personal App Indexing. that did not play nicely with Google Play Services permissions, in the hope you will be able to avoid encountering the same situation.
Android Things – Building a Distributed Piano with Nearby Connections API
In this post, Rebecca Franks is here to show you how to setup your hardware and create a distributed piano app with Android Things, a Piezo Speaker and Google’s Nearby API.
Learn to use WebSockets on Android with OkHttp
From version 3.5 onward, the OkHttp library has added support for adding WebSocket connections to your Android apps. In this tutorial, S.Saurel will teach you how you can create a basic chat application using the Echo WebSocket Server.
Caster.IO Lesson 167: Realm – Introduction to Migrations
There will be a time when you need to change your data model in Realm. When you need to do this you’ll need to use a Realm Migration. In this lesson you’ll learn:
- How to create a Realm Migration
- How to increment the schema version
- How to add a field to a Realm model
- How to remove a field from a Realm model
- How to have multiple migrations in one file
- How to migration from one version to the next
- What happens when you forget to update your Realm class but still execute the migration.
Caster.IO Lesson 168: Realm – Deleting Objects
Storing data in Realm is easy. Deleting that same data is just as simple. You can delete object references, lists of data, particular objects, and even delete all the data in a Realm database very easily.
In this lesson you will learn:
- How to delete an object from Realm.
- How to delete an object reference – How to delete the first item from a RealmList and from RealmResults.
- How to delete the last item from a RealmList and from RealmRestults.
- The difference between deleteFromRealm(int location) and the Java remove(int location) methods.
- How to remove an item from a RealmList with the remove method.
- How to remove all types of an object from Realm with one call.
- How to delete all data in the Realm database.
- How to delete a Realm based upon its RealmConfiguration
Editing Values and Offline Support
An in-app HTTP inspector for Android OkHttp clients
Find all test methods in an Android instrumentation APK
[Android Library] Detecting gestures in a snap
A RecyclerView extension for building list more easily.
This is a lightweight Logger to file for Android. It’s based on VoNaLogger.
A floating menu library for Android.