Better backwards compatibility to Android API 8