Add strict mode to support Android 4.0+