Uiautomator framework works only with API level 16 and above, therefore you cannot use UIautomator framework to test devices with API level <16.
Following are few other frameworks which work across all the versions/api levels
2.Robotium
Question
Hi guys I am testing my app UI. I applied monkey runner test. But I want to test it with another framework as well. Can anybody tell me that we can use uiautomatorviewer and uiautomator testing method to test API below then 16 like Android 3.0 and below versions? or please recommend me some other testing method by which I can test my UI on all versions of the android.
Solution
Uiautomator framework works only with API level 16 and above, therefore you cannot use UIautomator framework to test devices with API level <16.
Following are few other frameworks which work across all the versions/api levels
2.Robotium