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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:14:30+00:00 2026-05-27T14:14:30+00:00

I create a project which only includes one receiver. Some codes are like below:

  • 0

I create a project which only includes one receiver. Some codes are like below:

<receiver android:name=".InputReceive" android.enabled = "true">
    <intent-filter>
    <action android:name="com.myproject.BackButton" />
</intent-filter>
</receiver>

public class InputReceive extends BroadcastReceiver {

@Override
public void onReceive(Context arg0, Intent arg1) {
    String action = arg1.getAction();
    if(action.equals("com.myproject.BackButton")){
        back();
    }
}

private void back(){
    Log.e("wwq", "back");
}

}

When I run command in cmd

adb shell am broadcast -a com.myproject.BackButton

No log such as ‘back’ appear in logcat. Receiver no response.
Log is below:

12-12 16:33:05.431: W/ActivityManager(98): Timeout of broadcast BroadcastRecord{415fcd58 com.android.server.action.NETWORK_STATS_POLL} - receiver=android.app.LoadedApk$ReceiverDispatcher$InnerReceiver@4135ff18, started 10051ms ago
12-12 16:33:05.431: W/ActivityManager(98): Receiver during timeout: BroadcastFilter{41360160 ReceiverList{413600e8 98 system/1000 local:4135ff18}}
12-12 16:33:15.609: W/ActivityManager(98): finishReceiver called but no pending broadcasts

This issue only happened on Android 4.0 emulator. Who knows that what changed about Broadcast receiver in Android 4.0. Thanks a lot.

  • 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-27T14:14:31+00:00Added an answer on May 27, 2026 at 2:14 pm

    After your application is installed, the user need to launch an activity of yours manually before any of your BroadcastReceivers will have an effect, as of Android 3.1.

    Also, note that it is android:enabled, not android.enabled.

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

Sidebar

Related Questions

I'm trying to create a build script for my current project, which includes an
I have a project to create a program, which prevents the user from escaping
I'm working on a project which shall contain two targets. One for building a
I created a project which includes an mx:ViewStack as it's first container. <?xml version=1.0
I have created a a subclass of Table in my ASP.NET project which creates.
Hi I have a Wix (Votive) Visual Studio project which creates an MSI from
I have a project which as part of the build process creates an XMLBeans
I have a feature which allows the user to create projects and view it
I've created a program in Eclipse / MinGW / C (project type: C) which
i already have a project with TreeNode class which creates a hierachy of nodes

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.