よく使うやつをまとめました。
指定したURLをタイトル付きでシェアする
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TITLE, title);
intent.putExtra(Intent.EXTRA_TEXT, url);
startActivity(Intent.createChooser(intent, chooserTitle);
指定したURLを外部ブラウザで開く
Uri uri = Uri.parse(mUrl);
Intent i = new Intent(Intent.ACTION_VIEW,uri);
startActivity(i);
指定したアプリのGoogle Playを開く
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=<アプリのパッケージ名>"));
startActivity(intent);
電話をかける
Intent intent = new Intent(
Intent.ACTION_CALL,
Uri.parse("tel:" + phoneNumber));
startActivity(intent);