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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:26:23+00:00 2026-06-04T17:26:23+00:00

I want to know some basic, practical, things about Services, that are not explicitly

  • 0

I want to know some basic, practical, things about Services, that are not explicitly mentioned in the Android Developers reference pages.

  1. How can I call a service from another app, that has not even started?

  2. How do I query which services are provided by other applications?

  3. Are services allowed to use UI methods? (the documentation says they are specifically meant not to have UI to the user, but their example has a Toast in it)

  4. Are services re-entrant? (if two apps call the same service, will they be ‘serviced’ at the same time without messing with any local variable)

  5. Are services the way plug-ins are made?

  6. Can I use a service to extend the functionality of my already installed app? (i.e. can I ‘install’ just a service

  7. Can services launch normal activities? Can they cause their clients to finish?

  • 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-04T17:26:26+00:00Added an answer on June 4, 2026 at 5:26 pm

    How can I call a service from another app, that has not even started?

    Services like Activities are started through use of the Intent system. You can start a service using the startService(intent); method. This crosses application boundaries as long as the service is properly configured to answer intents from outside of it’s own sandbox.

    How do I query which services are provided by other applications?

    Documentation. I can’t imagine a situation where you would want to interrogate an app for it’s services without the documentation as you wouldn’t know what to pass in order to get the service to perform correctly.

    Are services allowed to use UI methods? (the documentation says they are specifically meant not to have UI to the user, but their example has a Toast in it)

    Services have access to the application context (and therefore can post Toasts or start Activities of their own). They may also have visibility of the app running in the same sandbox, this means that by means of handlers they can change the UI of the running Activity directly. By their nature however Services are not designed to interface with the UI even though it’s possible.

    Are services re-entrant? (if two apps call the same service, will they be ‘serviced’ at the same time without messing with any local variable)

    Services can be started with different flags (and can be programmed differently) to allow them to service received Intents in an asynchronous way or to queue the Intents to be performed serially. You can find more about this (and the rest of your question here)

    Are services the way plug-ins are made?

    Plugins?

    Can I use a service to extend the functionality of my already installed app? (i.e. can I ‘install’ just a service

    You can install a service as a seperate app which can catch startService() calls it’s making if it isn’t using a named Intent. This service would be in a different sandbox however and wouldn’t have access to the running app’s variables/state.

    Can services launch normal activities? Can they cause their clients to finish?

    Yes, if the Service is running in the same sandbox they can have visibility of the App running alongside it. It can use startActivity() as it has access to application context and it can call static methods inside of the app (which could contain static access to the Activity).

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

Sidebar

Related Questions

I am not very conversant with jQuery and want to know some basic things
I have a postgres database that I want to know some quick stats. For
I want to make an mmorpg game and i wanted to know some things
I want to know if Netbeans has some option or setting that will allow
How can I know that some text contain http://www. I want to show domain
I want to know some basic concepts of assembly language to understand it's architecture
Ok. I know this is very basic. I want to have some basic tags
I have a number of UserControls that I want to each have some basic
Hi have some forms that I want to use some basic php validation (regular
I have a storyboard(1) that does some basic animations in 2 seconds. I want

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.