Hi
As part of my work as a contributor supporting our awesome Android products, I sometimes use the Android Debug Bridge (ADB) to take screenshots. To do this I have to type (in terminal, after connecting):
- adb shell screencap -p /sdcard/filename.png (to take the screenshot)
- adb pull /sdcard/filename.png /tmp (to move the screenshot from the Android device to my laptop)
- adb shell rm /sdcard/filename.png (to delete the screenshot from the Android device)
It is really cool but is a bit fiddly to keep typing in, especially if you are taking a number of screenshots. Does anyone know how I could link these commands together and what the result could look like?
Welcome peoples thoughts, thank you for your input.