The brazenhead
project had the android.support.v4.jar
within its libs
folder, even though it was not using it. This conflicted with the android.suppor.v4
that the app it was instrumenting was using. Removing this file fixed my issue.
The way brazenhead is able to instrument any apk for testing models this Robotium Wiki Page. Basically, you need these things to blackbox text any apk:
- Test apk is signed with the same keystore as the apk you are testing
- The
targetPackage
property is the same as thepackage
of the apk that you are testing
That's pretty much it. Then, to launch any activity, you basically do what that article describes: