2013-03-06 48 views
8

我想訪問得到這個參數如何在應用程序中訪問com.android.internal.R.bool?

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

回答

15

你已經明白了。

Resources.getSystem().getIdentifier("config_wifi_background_scan_support","bool", "android"); 

給你正確的ID。

1

com.android.internal.R是一個隱藏的Android API。

link解釋了它的使用。

+0

很多工作要做.. – Anthony 2013-03-06 13:56:03

相關問題