How to get an instance of android.app.UiAutomation

I am testing some new features of Android 5.0, and now it is a round UiAutomatorand a new method. I tried to find an example / guide, then I tried to get an instance of UiAutomator using

getSystemService()

but it did not help. My goal is to use executeShellCommands(String str).

Has anyone already implemented?

+4
source share
1 answer

To clarify, the UiAutomation class is not part of UiAutomator (although they have similar names).

UiAutomation, # getUiAutomation(). , Instrumentation.

UiAutomator , Runtime # exec() .

+4

All Articles