Disable animations programmatically during instrumented tests // Android Dev Diary

When running an instrumented Android test, or “androidTest”, and you encounter the following error:

It means that you need to disable animations for it to successfully run the test.

But, it can take a lot of clicks on the emulator/device screen to get to the developer settings to turn off animations!

So, for a quicker way to disable animations in the Android device during development, just enter the following commands in your Android Studio terminal:

Related Posts:

Posts that may be related to "Disable animations programmatically during instrumented tests // Android Dev Diary":

Catzie

A Filipino programmer with a variety of interests such as baking, singing, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert flavors, obsessing about finding out how some things works, board games, anime, video games, and forgetting things that usually go in her long list of interests. Running small-time online dessert shops Cookies PH and Catzie's Cakery.

Leave a Reply

Your email address will not be published. Required fields are marked *