Home » Android

Android

How to capture Heap Dumps from Android App? – 3 Options

Heap Dumps are vital artifacts to diagnose memory-related problems such as memory leaks, Garbage Collection problems, and java.lang.OutOfMemoryError. They are also vital artifacts to optimize memory usage as well. In this article, we have given few different options to capture Heap Dumps from Android Apps. Once you have captured heap dumps, you can use great tools like HeapHero and Android studio’s heap analyzer to ...

Read More »

Flutter Firebase Authentication Tutorial

In this post on Flutter firebase authentication, we’ll take a look as to how we can authenticate users to our firebase app using firebase’s flutter plugin. If you’re not familiar with flutter, I’d recommend reading this before going ahead. It’ll give you a basic idea about flutter and help you along with this tutorial. https://ayusch.com/getting-started-with-flutter-app-development/ We’ll be creating a basic ...

Read More »

Using DataBinding with Glide in Android

In this post on databinding, we’ll take a look at how to load images using databinding with glide in an imageview. Let me begin by saying that you don’t need custom imageviews for this. Using binding adapter to declare a custom attribute, we can easily load a remote image into imageview with databinding. I’ll be creating a sample project for ...

Read More »

4 Best Android Libraries for Lazy Image Loading

Images drive user experience. People are said to be highly visual creatures. This is why face-to-face communication is often broken into three elements—7% spoken words, 38% voice and tone, and 55% body language—according to Albert Mehrabian’s 7-38-55 rule of personal communication.  We perceive the world mainly through our eyesight, picking up fewer signals from the rest of the senses. As ...

Read More »

Espresso Idling Resource for RecyclerView Data Changes

I was having a problem with using Android Espresso to test a RecyclerView when it’s data was updated. This is for an Android app where a list of contacts is displayed by a RecyclerView. There is a SearchView in the action bar that can filter the contacts list to display matching contact names. The Espresso test ran like this: Start ...

Read More »

Migrating React Native App to AndroidX

In this post, we will learn to migrate React Native application to AndroidX. Before starting, let me give you a brief introduction about Jetpack. What is Android Jetpack? Android Jetpack is the next generation of Android components, bringing together the benefits of the Support Library – backwards compatibility and immediate updates to a larger set of components, making it quick and easy to ...

Read More »

The Best Way to Develop Android Apps Which Shows You Different Than Others

This is the era of mobile phones and the internet. Various industries make use of mobile phone applications and web software for promoting their businesses online to generate profits. Especially, mobiles are the most effective and convenient form of communication and data transfer. Android App Development is a critical point for developers. According to research, 88% of the market is ...

Read More »

Restart Android Activity with ActivityScenario

I was writing an instrumentation test which required restarting the activity during a test. As I was trying out the ActivityScenarioRule to replace an ActivityTestRule, the documentation says I can use this method on the ActivityScenario to restart the activity after it has been launched: 1 scenario.recreate() So I wrote this function to for restarting the activity: 1 2 3 ...

Read More »