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 8531689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:32:42+00:00 2026-06-11T09:32:42+00:00

My app requires a sync adapter and therefore requires some authentication to take place

  • 0

My app requires a sync adapter and therefore requires some authentication to take place before an account can be added to the Accounts & Sync.

I have followed the sample sync adapter app and have my app setup. I can for instance now verify a user on my server and have an account added to the Accounts & Sync section.

The thing is I would prefer this precedure of adding an account via the AuthenticatorActivity to take place inside my app for a better user experience.

So far I have added the AuthenticatorActivity when my app launches. As soon as authentication is successful it launches the Accounts & Sync settings section which completely ruins the applications signin/signup experience.

How can I stop this behaviour (launch of the Accounts & Sync setting on success) and allow my app to move to my next chosen step?

  • 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-11T09:32:43+00:00Added an answer on June 11, 2026 at 9:32 am

    It is relatively simple procedure:

    Make sure instead of using startActivity you use startActivityForResult.

    Intent intent = new Intent(this, ClassYouAreLaunching.class);
    startActivityForResult(intent, 0); // 0 reflects the requestCode seen in onActivityResult
    

    Then you make sure you can capture the intent once it is sent back to you from the origin intent.

    onActivityResult(int requestCode, int resultCode, Intent intent) {
    
        if( resultCode == Activity.RESULT_CANCELED ) {
    
            finish();
        } else {
            // MAYBE        
            switch( requestCode ) {
                ...     
    
            }
        }
    

    }

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

Sidebar

Related Questions

I'm developing a app that requires sync with the server app every 5 minutes...
Part of my app requires login and is not able to use client-side authentication
Currently my app requires snow leopard and above.. Can I send an update to
I created iPhone app that requires the user to register and log in before
My app requires the following parameters of mobile network: MCC (Mobile Country Code) MNC
My app requires a lot of image resources, so I've had to package them
My android app requires that the device has an SDcard and that SDcard is
I have a problem. Part of my app requires text to be shown in
I'm trying to set the UIRequiredDeviceCapabilities properties in my Info.plist file. My app requires
I am creating a Table View in viewDidAppear, because my app requires it to

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.