Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access to com.android.internal.R.bool in application ?

I want to access to get this parameter

com.android.internal.R.bool.config_wifi_background_scan_support but it gives error like com.android.internal.R can't be resolved ?

I'm trying to use this way: this.getResources().getSystem().getIdentifier("config_wifi_background_scan_support","id", "android")

but i get nothing.

Anyone know how to get informations in com.android.internal.R.bool ?

like image 459
Anthony Avatar asked Mar 06 '13 11:03

Anthony


1 Answers

You have got it almost right.

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

gives you the correct id.

like image 85
yonojoy Avatar answered Oct 03 '22 11:10

yonojoy