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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:04:58+00:00 2026-05-28T07:04:58+00:00

i was searching on google for possibilities to callback a client from a remote

  • 0

i was searching on google for possibilities to callback a client from a remote service.
there where three major approaches:

  • client offers AIDL the same way as the service does (bound)
  • client listens with a broadcast receiver(onStartCommand)
  • use of: client->createPendingResult(), service->send(), client evaluates onActivityResult()(onStartCommand)

i have not found this one:

client activity is launched with “singleTop” in the manifest.
service uses context.startActivity(intent) with the answer within the intent.
client evaluates onNewIntent(intent,..). (onStartCommand)

Are there any potential problems with this approach?

  • 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-28T07:04:59+00:00Added an answer on May 28, 2026 at 7:04 am

    Try the following tutorial:

    Android Architecture Tutorial: Developing an App with a Background Service (using IPC)

    What we will develop here is a dummy application that contains the following components:

    1. A background service doing something important but not immediately visible to the user
    2. One or more activities that, once launched by the user, talk to the service, control the service and present some information that the service provides

    The architecture also has the following characteristics:

    • The service will run in a separate process, allowing the platform to manage its lifecycle and resources separately from the activities
    • The service is supposed to run all the time (there are other valid usage patterns for services, but we won’t discuss that here)
    • The UI (activities) will get updates from the service in a callback or passive mode, reacting to service events rather than polling the service for updates. This is very important in terms of effective architecture, so please keep it in mind for now
    • Since the service will run in a different process, we need to use IPC to talk to it from activities. IPC stands for interprocess communication and is not an Android-specific term but Android has its own implementation (as we will see)
    • The service will do all the thinking (business logic) while the UI will be designed to be as thin and dumb as possible. We’ll keep the architecture well-layered
    • The service will be configured to start during system boot-up
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was searching Google for a page offering some simple OpenMp algorithms. Probably there
Searching from google.com, like www.abc.com Search Result Rank the pages like Title..... Description... www.abc.com
i am very new in jquery. so i was searching google for jquery callback
Recommendations please (from experience ideally, but anything is useful). Searching Google gives me too
After searching Google I found one way to call a master page function from
Searching on Google reveals x2 code snippets. The first result is to this code
Where does one go to report bugs in Google Code? Alas, searching for Google
I thought this was asked before, but 15 minutes of searching on Google and
I have been searching around using Google but I can't find an answer to
I am searching for a program like Google Analytics or Clicky which runs on

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.