Hi,
I have a library that is used by activities, but isn't an activity itself. So it doesn't have a context.
However I need to check if bluetooth is enable:
String BTstatus = android.provider.Settings.Secure.getString(getContentResolver(),
android.provider.Settings.Secure.BLUETOOTH_ON);
if(BTstatus.equalsIgnoreCase("1"))
{
...
}
else
{
...
}
However without a context, I can't seem to find a way to get the content resolver.
Is there any static functions I could use to get this?
I really don't want to have to have the activity pass the context down through numerous classes.
Thanks.

