fix for Android method definitions