fixed ndk r9 compatibility
added protected methods
added AlertDialog.Builder