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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:05:24+00:00 2026-06-06T14:05:24+00:00

I want to make an app that can receive broadcast when other apps on

  • 0

I want to make an app that can receive broadcast when other apps on the device are installed or removed.

my code

in manifset:

<receiver android:name=".apps.AppListener">
    <intent-filter android:priority="100">
         <action android:name="android.intent.action.PACKAGE_INSTALL"/>
         <action android:name="android.intent.action.PACKAGE_ADDED"/>  
         <action android:name="android.intent.action.PACKAGE_REMOVED"/>
    </intent-filter>
</receiver>

in AppListener:

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class AppListener extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent arg1) {
    // TODO Auto-generated method stub
    Log.v(TAG, "there is a broadcast");
    }
}

but I can’t receive any broadcast. I think this problem is due to app permissions, any idea?

Thanks for helps.

  • 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-06T14:05:27+00:00Added an answer on June 6, 2026 at 2:05 pm

    In your manifest:

    <receiver android:name=".apps.AppListener">
        <intent-filter android:priority="100">
             <action android:name="android.intent.action.PACKAGE_INSTALL"/>
             <action android:name="android.intent.action.PACKAGE_ADDED"/>  
             <action android:name="android.intent.action.PACKAGE_REMOVED"/>
        </intent-filter>
    </receiver>
    

    Add the line before the intent-filter tag

    <data android:scheme="package"/>
    

    So your manifest should look like this:

    <receiver android:name=".apps.AppListener">
        <intent-filter android:priority="100">
             <action android:name="android.intent.action.PACKAGE_INSTALL"/>
             <action android:name="android.intent.action.PACKAGE_ADDED"/>  
             <action android:name="android.intent.action.PACKAGE_REMOVED"/>
             <data android:scheme="package"/> 
        </intent-filter>
    </receiver>
    

    Am not sure about the PACKAGE_REMOVED intent in that if its actually is available.

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

Sidebar

Related Questions

Hi I want to make a small test window app that can force IE
I want to data mine dribbble.com so I can make an app that registers
I want to create App that Make My Device with multi-Users username and password
I want to make an app that has a view that moves randomly or
i want to make a php app that let people submit photos/videos/sounds Now, everything
I want to make a little tk app that continuous ping an ip and
I want to make an Android Game App that loads a game slot that
I want to to make an application that gather some app that already in
i want to make a small windows app that start every windows startup this
I want to design an app that will make the LED blink whenever a

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.