Created
May 4, 2014 15:28
-
-
Save seabornlee/11518467 to your computer and use it in GitHub Desktop.
start system apps on android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void startWWWIntent() { | |
Intent nextIntent = new Intent(Intent.ACTION_VIEW); | |
nextIntent .setClassName("com.android.browser", "com.android.browser.BrowserActivity"); | |
startActivity(nextIntent); | |
} | |
private void startSmsIntent() { | |
Intent nextIntent = new Intent(Intent.ACTION_VIEW); | |
nextIntent.setType("vnd.android-dir/mms-sms"); | |
startActivity(nextIntent); | |
} | |
private void startContactIntent() { | |
Intent nextIntent = new Intent(Intent.ACTION_VIEW, People.CONTENT_URI); | |
startActivity(nextIntent); | |
} | |
private void startCallIntent() { | |
Intent nextIntent = new Intent(Intent.ACTION_DIAL); | |
startActivity(nextIntent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment