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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:02:29+00:00 2026-06-13T12:02:29+00:00

Sure this is a trivial question. What happens if I start a Service ,

  • 0

Sure this is a trivial question. What happens if I start a Service, using the following code:

 startService(new Intent(this,myService.class));

and then I accidentally recall the above code, while the Service is yet running?

I’m afraid that the second call to startservice can create a new Service in order to have two different process executing at same time.

  • 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-13T12:02:30+00:00Added an answer on June 13, 2026 at 12:02 pm

    I’m afraid that that the second call to startservice can create a new service in order to have two different process executing at same time.

    No, on multiple counts:

    • No, it will not create a new service. If the service is already running, it will be called with onStartCommand() again, to deliver the new Intent, but a second copy is not created.

    • No, it will not “have two different process executing at same time”, because a service runs in the same process as the rest of your app, by default.

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

Sidebar

Related Questions

Pretty trivial Java question. This code has an error: public abstract class SubTypeDependentEditor<T> implements
I'm pretty new to C++ so this may be a trivial question: My class
I'm new to Visual Studio so this question might be trivial, but I just
This may sound trivial, but I'm pretty sure this question hasn't been asked, or
I'm absolutely sure this will be a trivial, newbie question, but hey - what's
I'm sure this is a fairly trivial problem, but I'm not sure what to
OK, this is driving me nuts. I'm sure it is trivial, but I've been
Not sure this is a known issue. I’m using VS2012 RC (Ultimate), and Win8
Im sure this question is so easy for all you experts, but I am
This seems like such a trivial question to ask, but it's been vexing 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.