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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:25:29+00:00 2026-05-18T00:25:29+00:00

When sending two intents (One through startService followed by another through startActivityForResult for the

  • 0

When sending two intents (One through startService followed by another through startActivityForResult for the sake of an example), does Android guarantee that the first intent (service) is processed before the second (activity)? More specifically in this case, does it guarantee that the Service.onStartCommand is called before the Activity.onCreate?

This is assuming that everything runs within the same process so threading issues from several main threads don’t interfere.

I know that Android doesn’t guarantee the processing order for a single intent (The order of recipients isn’t guaranteed but can be affected by the intent filter priority) but I couldn’t find anything mentioning the order between intents.

Personally I would have thought that, given the single main application thread, the order would be maintained, but I’m facing some bugs that I have hard time explaining unless the order of intents changes.

  • 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-18T00:25:29+00:00Added an answer on May 18, 2026 at 12:25 am

    This should help.
    BroadcastReceiver Developer Page

    The key bit being that an intent which starts an activity is very different semantically.

    It seems like it’d be quite easy to test order by logging.

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

Sidebar

Related Questions

i am sending two array list for example [P,Q,R,S,T,U,V] and [A,B,C,D,E,F,G] from android to
I have built two programs in C# and I am sending simple strings through
I want to write a programme for sending a file/image between two android phone.
I'm sending the following info to a php file. data contains 'one' and 'two'.
I'm new to Android and I'm just trying to pass two doubles from one
I have been experimenting with sending messages from two .NET Windows Forms applications using
i have this form_for sending a private message between two users on my users#show
I've spent the past two days just trying to enable the sending of email
Sending a mail through my windows application to a person asking him to log
Sending Email in Android using JavaMail API without using the default/built-in app I'm trying

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.