Sign in

Google Developer Expert for Android | Senior Android Engineer @ 1mg | Know more here: https://thedroidlady.com/

Android development continues to dominate the world of mobile development. Fun projects, great pay, and tons of job prospects are just some of the reasons developers are starting their journeys into the exciting world of the Android operating system. Some experts say that there has never been a better time to learn Android skills, especially since the recent updates, like the addition of Kotlin and improvements to Google’s policies.

It’s been five years now that I’ve been into Android development and there has been no single day I haven't learned something new. …


Image Reference: Google Images

Hola folks 👋 , I am here with my final part of DataBinding internals series. If you haven’t read the previous parts, I would recommend to please go and read them to get a better understanding.

In the previous parts, we covered how static and dynamic data rendering is happening in XML through DataBinding & also took a deep dive into click actions.

In this article, we will talk about the usage & magic of BindingAdapter. I am sure many of us have been using it for a while now and if you haven’t tried it, please do check it…


Image Reference

Hola folks 👋 , I’m back with part 2 of learning & understanding how Data Binding works behind the scene.

In the previous blog, we saw different alternatives to findViewById, their pros & cons and how DataBinding works under the hood with static data. If you haven’t read it yet, I would recommend to quickly go, read and come back to know more.

In this article, let's talk about the magic happening behind the background data updates and click actions.

Well, I am sure if you are reading this article, you have already set your mind to know the magic…


Image Reference: Google

From the Android Developer docs,

Knowing how that picture in your mind (or that wireframe a designer gave you) translates into actual layouts and Views is one of those key skills that every Android developer can benefit from.

Every time, we have to refer the views from these layouts, we use “findViewById” in our Activity/Fragment. But doing this for a large number of views, create a lot of boilerplate code and there is always a risk of a null pointer exception due to an invalid view ID.

With technology advancements, Android has given us very cool alternatives to be adopted…


Image reference: Microsoft docs

Being an Android developer, our life revolves around recyclerViews only. Take a look on your phone: Photo apps, Contacts list, Facebook feed, Music app showing a list of tracks, Online clothing app showing you a list of products and almost every other app you have in your device is using recyclerView to show a huge set of data to users.

So Now my question is,

Have you ever gotten curious about how it actually works, how the data flows and gets displayed to the user?

Why do we need to know all these factors?

Just think about it: RecyclerView is needed almost in every modern Android app, so the…


We struggle a lot learning small, basic and specific concepts. Here is my list of resources which may help you understand Android in a better way:

Java


Use scoped storage to prevent apps from having unrestricted access to the file system and to help reduce file clutter

Image source: Android Central

If I talk about the recent improvements in Android at the OS level, it is all about protecting the app and user data and providing access in a more organised form. The reason for a change is good, but it means more work for developers.

With Android 11, Some major changes and restrictions are added to enhance user privacy, including, as listed in preview to behavior changes, the following:

Scoped storage enforcement: Access into external storage directories is limited to an app-specific directory and specific types of media that the app has created.

Permissions auto-reset: If users haven’t interacted with…


Help prevent your users from losing their data

android:allowBackup Manifest Attribute

There are all sorts of “backups” that help get you out of various situations. Think of the spare tire in your trunk or the extra pieces of webbing in a climbing anchor. If you’ve ever been rock climbing, you know that it’s essential to build redundancies into your anchors. That way, if one part fails, you’ve got another part as a backup.

Likewise, Android provides you with an impressive setting by the name of allowBackup which helps us automatically backing up application data.

What Does Android allowBackup Do?

As the documentation says, “Auto Backup for Apps automatically backs up a user’s data from apps that…


“Every problem is a gift — without problems, we would not grow.” ― Anthony Robbins

When we have to display information for a short span of time in Android, we use Toast.

Here are some key features:

  • It provides simple feedback about an operation in a small popup.
  • It is a view containing a quick little message for the user
  • It only fills the amount of space required for the message and the current activity remains visible and interactive.

Recently, I started getting a major number of crashes for Toast#handleShow() on Crashlytics. Here are the logs:

Before the analysis…


Aarogya Setu is a mobile application developed by the Government of India to connect essential health services with the people of India in our combined fight against COVID-19. Do visit this link for more details.

AarogyaSetu started with an idea of automatic contact tracing. Proximity logging within an app addresses a key limitation of manual contact tracing: it is dependent on a person’s memory and is therefore limited to the contacts that a person is acquainted with and remembers having met.

For contact tracing, we had two options to go with: Bluetooth or GPS.

Bluetooth vs GPS:

Bluetooth was chosen…

Niharika Arora

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store