我想访问以获取此参数
com.android.internal.R.bool.config_wifi_background_scan_support
但它给出了像com.android.internal.R
这样的错误无法解决?
我正试图用这种方式:this.getResources().getSystem().getIdentifier("config_wifi_background_scan_support","id", "android")
但我一无所获。
任何人都知道如何在com.android.internal.R.bool
获取信息?
你几乎是对的。
Resources.getSystem().getIdentifier("config_wifi_background_scan_support","bool", "android");
为您提供正确的ID。
com.android.internal.R
是一个隐藏的Android API。
这个link解释了它的用法。