Android API like java.awt.Robot

前端 未结 4 1278
青春惊慌失措
青春惊慌失措 2020-12-19 01:51

Is there an Android API analogous to java.awt.Robot, i.e. an API allowing to take screenshots?

4条回答
  •  执笔经年
    2020-12-19 02:24

    class TouchUtils... This class was deprecated in API level 24. Use Espresso UI testing framework instead. New tests should be written using the Android Testing Support Library.

    https://developer.android.com/training/testing/ui-automator

提交回复
热议问题