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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:33:20+00:00 2026-06-06T10:33:20+00:00

I have a thread from a thread pool in a service that does quite

  • 0

I have a thread from a thread pool in a service that does quite a lot of things. In the end it inserts some data into a provider and sends a broadcast to notify GUI about the new data.

Quite often 1-3 broadcasts are sent and received, then no more broadcasts are received. When I look at the threads stacktrace all of them are sitting in the system methods in sendBroadcast.

Stacktrace from never returning threads:

BinderProxy.transact(int, Parcel, Parcel, int) line: not available [native method]
ActivityManagerProxy.getProviderMimeType(Uri) line: 3296
ContextImpl$ApplicationContentResolver(ContentResolver).getType(Uri) line: 231
Intent.resolveType(ContentResolver) line: 3754
Intent.resolveTypeIfNeeded(ContentResolver) line: 3776
ContextImpl.sendBroadcast(Intent) line: 969
Application(ContextWrapper).sendBroadcast(Intent) line: 301

Reciver registration:

<receiver android:name=".gui.MeasurementReceiver">
  <intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <data android:scheme="content" android:host="compy.product.providers.measurement"/>
  </intent-filter>
</receiver>

Broadcast sending:

context.sendBroadcast(new Intent(android.content.Intent.ACTION_VIEW).
                      setData(Uri.withAppendedPath(compy.content.Intent.URI_channel, ""+id )));

Now for the real fun part, the above works without any problems on a Galaxy Nexus with ICS and on Galaxy Note pre ICS. But fails in the described way on Galaxy Note, Galaxy SII and Galaxy SIII with ICS.

On a perhaps related note on Galaxy Nexus the provider is started once or perhaps twice. On the problematic phones it’s get started for all queries. We haven’t found any reason for this behaviour either.

Any ideas?

  • 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-06T10:33:23+00:00Added an answer on June 6, 2026 at 10:33 am

    Okay this turns out to be really simple….

    We had double registered the ContentProvider in the Mainfest file…

    So if you have crazy errors check your manifest. I have no idea why that broke the broadcast.

    Some more information (edit):

    A tell tail for this problem is “Loading Provider ‘your class name'” in the LogCat most of the times you try to do a operation on the Provider. This seems to be a quite rare message otherwise. We only found a couple of references to it on the net.

    So the related note in the end was the most important….

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

Sidebar

Related Questions

I have a thread that downloads some images from internet using different proxies. Sometimes
I have a controller action that aggregates data from multiple sources: web service, database,
I have a local thread that is started on button-click event from the main
I have a TableModel that is populated from a background running thread. I am
I have a server that receives various xml messages from clients (one thread per
I have the main thread from which I start a window using invokeLater .
Or is it? I have a thread object from: Thread myThread = new Thread(pObject);
I have a worker thread spawned from a GUI (for GUI performance), how do
I have the following function call from a thread: Thread Move = new Thread(){
I have a function that is being called from different threads in the application.

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.