[JAVA] [Android] Check the actual device without moving your hand with automatic scrolling

When using a function that has infinite scrolling such as a list, the load on the actual machine is monitored by Android Studio's Memory Profiler ~ ~ Poke the corner of the heavy box ~ ~ I am checking the quality, but I move it by hand I'm tired.

So I tried infinite scroll automation.

SampleCode

I implemented the Sample code of RecyclerView easily, so I will use it. https://github.com/yamachita0109/RecyclerView

I actually tried automatic scrolling

Just paste the following command on the command line and you're good to go. If you want to specify more detailed values, refer to Official Document.

$ while [ true ]; do
adb shell input swipe 521 1540 492 432
done;

demo

demo.gif

Summary

・ This is the first time I have implemented RecyclerView with scratch, and I want to implement it more beautifully so that it can withstand actual services.

・ Anything is discovered with the adb command. It seems that it is possible to memorize the actual operation and make it into a script. Let's give it a try.

・ If you have any other more convenient ways to use the adb command, please let us know! !!

Recommended Posts

[Android] Check the actual device without moving your hand with automatic scrolling
Vibrate the wristband device with Bluetooth from the Android app
[Android] Uploading images from your device to the server
Check the actual date and time at parse with Java's SimpleDateFormat