Fixed compilation problems of HelloAndroidActivityTest

The two test projects in the test suite had compilation problems.
This code is never called actually even in the test suite, but fixed
it because it was annoying, also maybe used in the future.