Home » Android

Android

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 »

Update Your Fake AndroidInjector

Using Dagger 2 for dependency injection means that you can inject fake / mock objects for testing. I had been using a fake AndroidInjector to do this in my Espresso tests for an old Android app I was updating, but found that on updating Dagger to a more recent version (from 2.14 to 2.21) the custom AndroidInjector no longer compiled. The ...

Read More »

Top 17 Plugins for Android Studio

There are hundreds of plugins out-there for Android Studio and the number grows daily. This is mainly due to two reasons. The first is the fact that Android Studio is the industry accepted go-to IDE for creating Android apps. The second is Intellij IDEA, the platform upon which Android Studio is based, that allows for the development and easy installation ...

Read More »