public class ServicesEnabled
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static ServicesEnabled |
INSTANCE |
| Constructor and Description |
|---|
ServicesEnabled() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areLocationServicesAvailable(android.app.Activity activity)
Determines if the location services are available.
|
void |
enableLocationServices(android.app.Activity activity)
Prompts the user to enable location services.
|
static ServicesEnabled |
getInstance() |
boolean |
hasPhoneAbility(android.app.Activity activity)
Determines if the device has
the ability to make phone calls.
|
private static ServicesEnabled INSTANCE
public boolean areLocationServicesAvailable(android.app.Activity activity)
activity - the current activity.public void enableLocationServices(android.app.Activity activity)
activity - the current activity.public static ServicesEnabled getInstance()
public boolean hasPhoneAbility(android.app.Activity activity)