Android default removed shortcut to Settings->Apps->Running. But you still launch it by class name.
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setComponent(new ComponentName("com.android.settings","com.android.settings.RunningServices"));
startActivity(intent);
In case some devices don’t support Running Apps, you can add a try catch to launch Settings->Apps instead.
try {
//code above
} catch(Exception e)
{
startActivity(new Intent( Settings.ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS));
}
No comments:
Post a Comment