import android.content.res.Resources;
import android.content.pm.PackageManager;
import android.util.Log;
try {
Resources localResources = mContext.getPackageManager().getResourcesForApplication("com.android.bluetooth");
int i = localResources.getIdentifier("profile_supported_a2dp_sink", "bool", "com.android.bluetooth");
boolean bool2 = false;
bool2=mContext.getResources().getBoolean(i);
Log.d("xucancheng","updateDisplay bool2="+bool2);
}catch (PackageManager.NameNotFoundException e) {
Log.d("xucancheng","updateDisplay bool2= error!!!!!!!");
}