パッケージ名を指定して他のアプリを起動する
String packageName = "com.google.android.gm"; try { PackageManager packageManager = getPackageManager(); Intent intent = packageManager.getLaunchIntentForPackage(packageName); startActivity(intent); } catch (Exception e) { Toast.makeText(MainActivity.this, "error", Toast.LENGTH_LONG).show(); }