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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:58:29+00:00 2026-06-15T09:58:29+00:00

What is the correct, efficient, way for threads (within a service) to communicate under

  • 0

What is the correct, efficient, way for threads (within a service) to communicate under Android?

I have looked at Intents (serialization overhead), HandlerThreads and Loopers (bundling overheads).

A receiving thread should have have (synchronized) queue(s) to which objects (of types known at compile time) can be added.

I have previously written such functionality for JavaME, but I was under the impression that Android would have a “standard” efficient way of communicating between threads, using compile-time-known types.

Am I missing something fundamental? (I do not have much recent Java experience beyond JavaME/1.3.)

  • 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-15T09:58:30+00:00Added an answer on June 15, 2026 at 9:58 am

    The native way to send messages to a thread is Handler‘s. If that doesn’t meet your requirements (which are?), you can implement a thread messaging system yourself using Java primitives and/or java.util.concurrent classes.

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

Sidebar

Related Questions

What is the correct (and efficient) way of attaching the contents of C buffer
I have the following code. But there must be a more database efficient way
What is the correct/efficient way to retrieve a sub set of results from hibernate?
What is the correct (most efficient) way to define the main() function in C
Is this the correct, most efficient way to recycle objects when creating an array
Correct me If I am doing wrong, I have just started to check WCF
How would you correct way to handle an exception in this situation? Initially I
Given two floating-point numbers, I'm looking for an efficient way to check if they
I'm looking at this code of the correct way to do a singleton in
I was wondering what was the most efficient way to rotate a JavaScript array.

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.