#3376: handle error in Android framework