开启内置闹钟:
Intent intent = new Intent();
intent.setAction("android.intent.action.SET_ALARM");
startActivity(intent);
开启所有程序的画面:
startActivity(new Intent("android.provider.Settings.ACTION_MANAGE_ALL_APPLICATION_SETTINGS"));
开启指定程序的细节画面:
//取得所有的PackageName
PackageManager pm = getPackageManager();
List<PackageInfo> packanames = pm.getInstalledPackage(PackageManager.GET_ACTIVITIES);
for(int i=0;i<packanames.size();i++){
String packageName = packanames.get(i).packageName;
}
//这里的packageName就是上面的packageName,指定的是activity程序包名字,当然这里由于不是全部指定,所以建议使用选择指定的方式
Intent intent = new Intent("android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS , URI.parse("package:"+packageName)");
startActivity(intent);