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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:16:15+00:00 2026-06-06T04:16:15+00:00

Is it possible to send an intent only to one service when this one

  • 0

Is it possible to send an intent only to one service when this one is running?
I’m aware of the functions startService() and onStartCommand() but I don’t want “start” the service, in my case it was already started.

So I would like to know if it is possible to target only one brodcast receiver or if it exits something else to send only to one service/activity?

My tries with intent.setClass() before the sendBroadcast(intent) were not concluents.

  • 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-06T04:16:16+00:00Added an answer on June 6, 2026 at 4:16 am

    I’m aware of the functions startService() and onStartCommand() but I don’t want “start” the service, in my case it was already started.

    startService() merely delivers a message to an existing running copy of the service, via onStartCommand(), if there is such a copy. It will create such a copy (thereby triggering a call to onCreate()) if there is no running copy of the service.

    So I would like to know if it is possible to target only one brodcast receiver or if it exits something else to send only to one service/activity?

    Use startService(), please.

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

Sidebar

Related Questions

Typically you start a service like this Intent i = new Intent(context,MessageService.class); context.startService(i); but
Is is possible to send an object to an Android Service through an Intent
I want to send an intent to my service everytime the state of Wifi
Possible Duplicate: Send NSString via Game Center i have been working on this for
Is it possible to send POST/GET parameters to in a controller using $this->_forward(/url/here);
Is it possible to send extra parameters when I instantiate this button class, like
is it possible to send 2 consecutive TCP packets out as seen in this
i want to send data that reside in the Activity file and extends service
I want to send a broadcast (or is it an intent?) from my app
I know we can trigger an Intent.ACTION_SEND intent to send email. But according 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.