private int getRequestCodeViaReflection() {
try {
// Get request code field by reflection
Field field = android.preference.RingtonePreference.class.getDeclaredField("mRequestCode");
// Make it accessible
field.setAccessible(true);
// Return it
return (Integer) field.get(this);
}
catch (Exception exc) {
// Log it
Log.e(Logging.TAG, "Request code reflection failed", exc);
// Return error
return REQUEST_CODE_FAILED;
}
}
RingtoneSelectionPreference.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:redalert-android
作者:
评论列表
文章目录