Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

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);
like image 969
bryan Avatar asked Jun 09 '10 21:06

bryan


1 Answers

Probably you are looking for this one (untested)

import android.provider.Settings;
ctx.startActivity(new Intent(Settings.ACTION_SYNC_SETTINGS));
like image 142
Pentium10 Avatar answered Oct 03 '22 04:10

Pentium10