public class IntentUtils
extends java.lang.Object
Constructor and Description |
---|
IntentUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
call(android.content.Context context,
java.lang.String number)
Call.
|
static void |
openAppPageInPlaystore(android.content.Context context)
Open app page in playstore.
|
static void |
openUrlInBrowser(android.content.Context context,
java.lang.String url)
Open url in browser.
|
static void |
rateMyApp(android.content.Context context)
Rate my app.
|
static void |
sendEmail(android.content.Context context,
java.lang.String[] sendTo,
java.lang.String subject,
java.lang.String body)
Send email.
|
static void |
sendSMS(android.content.Context context,
java.lang.String sendToNumber,
java.lang.String message)
Send sms.
|
static void |
shareData(android.content.Context context,
java.lang.String dir,
java.lang.String fileName,
java.lang.String type,
java.lang.String data)
Share data.
|
static void |
shareMyApp(android.content.Context context,
java.lang.String subject,
java.lang.String message)
Share my app.
|
static void |
shareText(android.app.Activity activity,
java.lang.String title,
java.lang.String textData)
Share text.
|
static void |
showLocationInMap(android.content.Context context,
java.lang.String locationName)
Show location in map.
|
static void |
showLocationInMap(android.content.Context context,
java.lang.String latitude,
java.lang.String longitude,
java.lang.String zoomLevel)
Show location in map.
|
public static void openAppPageInPlaystore(android.content.Context context)
context
- the contextpublic static void openUrlInBrowser(android.content.Context context, java.lang.String url)
context
- the contexturl
- the urlpublic static void sendEmail(android.content.Context context, java.lang.String[] sendTo, java.lang.String subject, java.lang.String body)
context
- the contextsendTo
- the send tosubject
- the subjectbody
- the bodypublic static void shareMyApp(android.content.Context context, java.lang.String subject, java.lang.String message)
context
- the contextsubject
- the subjectmessage
- the messagepublic static void rateMyApp(android.content.Context context)
context
- the contextpublic static void call(android.content.Context context, java.lang.String number)
context
- the contextnumber
- the numberpublic static void sendSMS(android.content.Context context, java.lang.String sendToNumber, java.lang.String message)
context
- the contextsendToNumber
- the send to numbermessage
- the messagepublic static void showLocationInMap(android.content.Context context, java.lang.String latitude, java.lang.String longitude, java.lang.String zoomLevel)
context
- the contextlatitude
- the latitudelongitude
- the longitudezoomLevel
- the zoom levelpublic static void showLocationInMap(android.content.Context context, java.lang.String locationName)
context
- the contextlocationName
- the location namepublic static void shareData(android.content.Context context, java.lang.String dir, java.lang.String fileName, java.lang.String type, java.lang.String data)
context
- the contextdir
- the dirfileName
- the file nametype
- the typedata
- the datapublic static void shareText(android.app.Activity activity, java.lang.String title, java.lang.String textData)
activity
- the activitytitle
- the titletextData
- the text data