public class MobileNetworkUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADDRESS |
static java.lang.String |
SMSTO |
static java.lang.String |
TEL |
Constructor and Description |
---|
MobileNetworkUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
callContact(android.content.Context context,
java.lang.String contactNo)
Call a contact
Declare the permission "android.permission.CALL_PHONE" in the Manifest to use this method
|
static void |
dialContact(android.content.Context context,
java.lang.String contactNo)
Send to the dialer activity
|
static void |
launchWebPage(android.content.Context context,
java.lang.String url)
Launches an Intent to open a web page
|
static void |
textContact(android.content.Context context,
java.lang.String contactNo)
Text a contact
|
public static final java.lang.String SMSTO
public static final java.lang.String ADDRESS
public static final java.lang.String TEL
public static void callContact(android.content.Context context, java.lang.String contactNo)
contactNo
- the contact nopublic static void dialContact(android.content.Context context, java.lang.String contactNo)
context
- the contextcontactNo
- the contact numberpublic static void textContact(android.content.Context context, java.lang.String contactNo)
contactNo
- contact numberpublic static void launchWebPage(android.content.Context context, java.lang.String url)
context
- the contexturl
- url