Skip to content

Instantly share code, notes, and snippets.

@seabornlee
Created May 4, 2014 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seabornlee/11518467 to your computer and use it in GitHub Desktop.
Save seabornlee/11518467 to your computer and use it in GitHub Desktop.
start system apps on android
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