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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:52:14+00:00 2026-05-28T06:52:14+00:00

In an Android app, I need several listeners (for network changes, location changes, etc.).

  • 0

In an Android app, I need several listeners (for network changes, location changes, etc.).

As far as I can see, these are called in a thread (or threads) which are not my main background service thread. (I’m creating a service-only app.)

My question is:

Can my app be hit by listeners firing simultaneously, or does Android mitigate this by invoking my listeners in a single thread?

Secondly, if the listeners aren’t ‘sequentialised’, are the individual listeners re-entrant?

In other words, can I carry out complex processing in my listeners, or should they just dump what happened into a synchronized list, for later processing my background service thread (and wakeup the background service thread from its sleep while they’re at it).

There seems to be very little coverage of thread synchronisation in Android example docs and books.

Thanks,

Chris.

  • 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-28T06:52:14+00:00Added an answer on May 28, 2026 at 6:52 am

    I don’t know what types of listeners you’re talking about specifically, but generally they are not called on their own threads. They are called on the thread that you register the listener on, so if you register the listener on the UI thread it will fire on the UI thread. If you create a Looper thread, then you can register listeners on that thread, and they will fire in that thread sequentially as they hit.

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

Sidebar

Related Questions

My app makes several calls to getFromLocationName from the android.location.Geocoder; class, this is currently
So for my Android app I need a centralized server so multiple phones can
I need table with editable cells for my Android app. Something like QTableWidget in
I'm building a mobile web app targeting Android users. I need to know what
I'm writing an Android app where users can upload video to Youtube. I'd like
I have an Android application composed by several Activities. Most of them need to
im building an android app and i need to save some files locally on
I'm making an Android app and need to use GPS for recording a drivers
I created a Twitter app I need user of my Android application to authorize
I need a functionality in android app, that is similar to Gmail app in

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.