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

  • Home
  • SEARCH
  • 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 8569173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:16:23+00:00 2026-06-11T18:16:23+00:00

I am trying to start activity ACTION_SYNC_SETTINGS or ACTION_ADD_ACCOUNT which are in package android.provider.Settings

  • 0

I am trying to start activity ACTION_SYNC_SETTINGS or ACTION_ADD_ACCOUNT which are in package android.provider.Settings but, the problem is these activities do not start.

My code is given below, which works for launching activity “Settings” but when I change activity by ACTION_SYNC_SETTINGS or SYNC_SETTINGS ; ACTION_ADD_ACCOUNT or ADD_ACCOUNT_SETTINGS then it odes not work…

Although, I tried with package com.android.provider.Settings too, but it did not work.

The only result I get is:

Monkey Command: wake.

Monkey Command: wake.

Monkey Command: quit.

(I am working at API level 10 and 15)

Please can any one guide me…?

My Code:

import os, subprocess

import sys

import time

import random

import string

import re

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

device = MonkeyRunner.waitForConnection(99, "emulator-5554") 

package='com.android.settings'

activity='.Settings'

component_name=package + "/" + activity

device.startActivity(component=component_name) 
  • 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-06-11T18:16:24+00:00Added an answer on June 11, 2026 at 6:16 pm

    Try to use:

    component = 'com.android.settings/.accounts.AddAccountSettings'  
    

    This will open the “Add an account” window where you can choose from Corporate, Email and Google.

    Choosing Google will start a new activity: com.google.android.gsf.login/.AccountIntroUIActivity

    To go directly to the sign in screen, use:

    device.startActivity(component = 'com.google.android.gsf.login/.LoginActivity')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to start an activity from my main activity. Its not working
I am trying to start activity at start up of phone but whole program
I'm new in android development. I have been trying to start a new activity
I'm trying to start an Android application using adb shell. I'm not succeeding The
i'm trying to start a map activity from a normal Activity. But keep getting
I am trying to start the main activity from inside a BroadcastReceiver. I dont
I'm trying to start a phantomjs process from python but for some reason it's
I'm trying to start a Skype intent from my Android App, passing a phone
I am trying to start a new Rails project but I am getting a
I'm trying to start a very simple jWebSocket Client on Android and connect it

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.