Question

I want to open the Settings > About > System Update directly from my application. How can I do that?

For Setting > About, I can do this

startActivityForResult(new Intent(android.provider.Settings.ACTION_DEVICE_INFO_SETTINGS), 0);

But I am looking for a way to go to system update.

Was it helpful?

Solution

it's a bit late, but here is my answer:

startActivityForResult(New Intent("android.settings.SYSTEM_UPDATE_SETTINGS"),0)

OTHER TIPS

The system update activity is located on com.google.android.gsf/.update.SystemUpdateActivity.

You can open it by using the code below (the simplest, without error handling).

Intent intent = new Intent();
intent.setComponent(ComponentName
    .unflattenFromString("com.google.android.gsf/.update.SystemUpdateActivity"));
startActivity(intent);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top