Home » Android

Android

Android Launch Modes and Tasks Explained

Android launch modes are a very conceptual topic in Android development and can be easily messed up. There are 4 major launch modes in android that you need to know about: Standard SingleTop SingleInstance SingleTask Launch modes are very frequently asked in android developer interviews and can be tricky if presented with a complex scenario. Most discussions are around, what ...

Read More »

Android Activity Life Cycle – The Complete Guide

Android activity life cycle if one of the most asked questions in Android Developer interviews. It is also the one to mess up easily. You must have already seen this activity lifecycle diagram from developer.android.com and many android development books. source: developer.android.com But this is not enough. This diagram just outlines the activity lifecycle callback sequence through it being created ...

Read More »

Android Logs Analysis

Android uses a centralized system for all logs and application programmers can also write custom log messages. The tooling to develop Android applications allows you to define filters for the log statements you are interested in. Log analysis is a phase of development and developers encounter it from time to time. Bug log helps in identifying the bugs in the ...

Read More »

ListView using SQflite in Flutter – Todo Application

In this tutorial, we’ll take a look at how to create a ListView using Sqflite in Flutter. In the previous article on Sqflite in Flutter, we saw how to build a simple todo application using Sqflite. Since then, I’ve gotten a lot of requests to create an article on how to build a listview using Sqflite. So, in this tutorial, ...

Read More »

Double back button press to exit in React Native

In this quick tutorial, we’ll be taking a look at how to implement double back press to exit, in React Native. This is quite common functionality where apps require the user to press the back button twice (in Android) to exit the app. And this is also fairly straightforward to understand.  We’ll make the use of BackHandler provided by React ...

Read More »

Paging Library 3 and Content Provider

I needed to display the contents of a Android content provider in a recyclerview with pagination. I also wanted to try out version 3 of the Android Paging Library (which is currently in 3.0.0.alpha2 release), but most of the sources of documentation and tutorials are targeted at accessing either a network (e.g. Retrofit) or a database. So I wrote a ...

Read More »

Is AspectJ Still Useful for Android? Part 2

In the first part of this post, I showed some ways that AspectJ would be useful in android development when it comes to testing. This final part demonstrates one way of incorporating AspectJ, and how I manage to make the aspect weaving somewhat configurable in the build process. Android + AspectJ A search on the internet will show that there are various ...

Read More »

Using SQLite in Flutter – Tutorial

In this tutorial, we’ll take a look at using sqlite in flutter. SQLite is a SQL engine used in mobile devices and some computers. We can use it to persist data for our app. Persistent storage can be useful for caching network calls while fresh data is loaded and for offline apps. SQLite in flutter can be used to persist ...

Read More »

Is AspectJ Still Useful for Android? Part 1

For Java projects I sometimes use AspectJ for various tasks, but for Android projects I initially decided against using it. There were various reasons for that: The structure of an Android project, and its build process, was already a lot more complicated and slower than for generic Java projects.For Android development, only compile time weaving is supported for AspectJ, which ...

Read More »