fix #3707: missing method in Android < 2.3