Exploring Android Nougat 7.1 App Shortcuts

Google has brought Android Nougat to its second iteration with the 7.1 version (API 25), but this one is not a minor release, as a matter of fact it bundles some interesting features under the hood. One of these extra features is App Shortcuts. TL;DR App Shortcuts are…

Smart background tasks with JobScheduler

The new release of Android 5.0 provides developers over 5000 new APIs to play with. One of my favourite component that was relseased with the new SDK is JobScheduler. Briefly: JobScheduler API that lets you optimize battery life by defining jobs for the system to run asynchronously at a…

A curious case of SyncAdapter syncing

tl;dr Any modification (add, remove, change password) to any Account from the AccountManager will trigger a sync for all of the system's SyncAdapters, including the one you've just created in your app! Context In my attempt to better understand how a SyncAdapter works, I've followed the official documentation and…

Force your SyncAdapter to sync

NOTE: This is not a tutorial of what is or how to create your own SyncAdapter. If you're looking for this, the Android developer doc is your friend! I've been recently playing with SyncAdapter and I found myself in the situation where I have to trigger a sync on user…