Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7070801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:36:36+00:00 2026-05-28T05:36:36+00:00

Given an account type and and account name, is there a way to display

  • 0

Given an account type and and account name, is there a way to display the account preferences screen? This is the screen with the delete and sync now buttons.

Note: I don’t want to display the list of accounts as can be done with ACTION_SYNC_SETTINGS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:36:37+00:00Added an answer on May 28, 2026 at 5:36 am

    I have been trying to do this as well, and I can get pretty close! but I suspect this action is not actually allowed. We can launch the account preferences screen, but then an error pops up with a forced-close notification.

    We only need to start the following intent to launch the settings for a specific account:

    Intent i = new Intent(Intent.ACTION_MAIN);
    ComponentName cn = new ComponentName("com.android.settings", "com.android.settings.SubSettings");
    i.setComponent(cn);
    

    Basically, when ActivityManager starts the activity, via manually clicking on the account, the intent is:

    01-17 11:28:39.738: I/ActivityManager(72): START {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from pid 708
    

    Compare this with the Intent sent by our approach:

    01-17 11:23:39.740: D/SetupSync(1359): Intent { act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings }
    

    HOWEVER, here’s the caveat: then Android shows a forced close notification, and we can see in the logs:

    01-17 11:23:39.767: E/AndroidRuntime(1359): Caused by: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings } from ProcessRecord{415415b8 1359:org.mozilla.gecko/10044} (pid=1359, uid=10044) not exported from uid 1000
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.os.Parcel.readException(Parcel.java:1327)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.os.Parcel.readException(Parcel.java:1281)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1624)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.app.Activity.startActivityForResult(Activity.java:3190)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.app.Activity.startActivity(Activity.java:3297)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at org.mozilla.gecko.sync.setup.activities.SetupSyncActivity.onResume(SetupSyncActivity.java:148)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1154)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.app.Activity.performResume(Activity.java:4539)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2433)
    01-17 11:23:39.767: E/AndroidRuntime(1359):     ... 12 more
    

    So, what you can do is try/catch the RuntimeException, so it doesn’t pop up. Seems a little sketchy, but if you want a hack, well, this achieves the desired result…

    TL;DR:
    We can launch the settings for a specific account, but then the scary sorry-this-app-had-to-close dialogue pops up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given the jQuery dropdown plugin below. Is there a way to add a method
Given this model: sysschedules , and assuming there were several events in the DB
I have a domain model that looks like this: case class Account(id: Int, name:
I have an entity called Account and I have given this entity a class
I have created a new account on WHM and given it my domain name
Given this method to work on a HTML page in a webbrowser: bool semaphoreForDocCompletedEvent;
I have two images: Name Type Width Height HRes VRes img01 GIF 256 256
Given a structure like this: class Parent { } class Child : Parent {
I have a query like this: SELECT t.type, SUM( t.external_account ) FROM u_contracts c,
I'm working with code igniter and for some reason, the url http://mysite.com/account/100 gives me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.