bryan
bryan

Reputation: 170

Android - How to Create Intent to open the activity that displays the "Accounts & Sync settings" screen

I have seen the below log message when navigating to the Account & sync settings screen but I am confused as to how to create an Intent to navigate there.

INFO/ActivityManager(53): Starting activity: Intent { cmp=com.android.providers.subscribedfeeds/com.android.settings.ManageAccountsSettings }

I dont seem to have access to the ManageAccountsSettings for development.

I just wanted to create an Intent such as below, but I cant call out ManageAccountsSettings

Intent i =new Intent(this,ManageAccountsSettings.class);
//Then start the activity
startActivity(intent);

Upvotes: 7

Views: 8035

Answers (1)

Pentium10
Pentium10

Reputation: 207830

Probably you are looking for this one (untested)

import android.provider.Settings;
ctx.startActivity(new Intent(Settings.ACTION_SYNC_SETTINGS));

Upvotes: 32

Related Questions