A BroadcastReceiver is a special intent which is often invoked by the system on an event.

learn more… | top users | synonyms

5
votes
0answers
91 views

Android calendar BroadcastReciever host : com.android.calendar vs com.google.android.calendar

After looking around a bit, I've noticed there are 2 possible hosts for the Android calendar. The first is com.android.calendar and the other is com.google.android.calendar. I'm pretty sure it ...
5
votes
0answers
522 views

How to get Category of application using package name

I am having two or more application having my specified category like <category android:name="com.myapp.MY_CATEGORY"/> and I am able to get all packages having this category by : final ...
3
votes
0answers
59 views

Unregistering a broadcast receiver to MEDIA_BUTTON

I have a service that I've registered a MediaButtonEventReceiver within it. @Override public void onCreate() { ((AudioManager) getSystemService(AUDIO_SERVICE)) ...
3
votes
0answers
73 views

put a new message into inbox and then device manage it

i have an android program, in which i receive a message from the database at the external server on web then i put message in SMS inbox. now i use system notification like this : Notification intent ...
3
votes
0answers
777 views

sendMultipartTextMessage and monitor send and received

i have read multiple threads on how to send and receive multipart messages. I have implemented the following code and it works! PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, new ...
3
votes
0answers
525 views

How to detect Auto Sync state changed via broadcast receiver

Currently I am working on the widget that has several toggle features, and one of them is Auto-Sync toggle. I managed to implement enabling and disabling of the Auto-Sync using flowing code. public ...
2
votes
0answers
13 views

Android - Broadcast Intent original copy or clone

Its just tricky question. But I want deep diving in Android. Please tell me, if my app receive Broadcast Receive with intent. Received intent(where System or other app sendBroadcast(intent)), Is It ...
2
votes
0answers
58 views

LocalBroadcastManager not working properly

I'm having a little problem here, don't know what is wrong. The LocalBroadcastManager was working as it should be, but after I added some code inside it ( to be able to handle 2 diferent broadcast ) ...
2
votes
0answers
376 views

Android Power Button Double Press

What i am trying to do is ,double clicking the power button will raise a toast "Sending Message", doesn't matter if screen is On or Off.Somehow managed to write this code What i have done is , i have ...
2
votes
0answers
407 views

How to intercept Intent ACTION_MEDIA_MOUNTED broadcast in Android?

I have an Android app that handles plug-ins of my specific storage device. I want to be able to show the contents of the storage device in a specific way with my Display activity when the device is ...
2
votes
0answers
143 views

Android power saving mode blocks broadcast receiver from being processed

It seems that on some devices, that have Power Saving mode switched on, broadcast receivers are not fired. I have the following code in my broadcast receiver Vibrator v = (Vibrator) ...
2
votes
0answers
166 views

Broadcast new user android wifi hotspot

I tried to find the user macaddress who are attempted to use my wifi hotspot in android in broadcast receiver.But Receiver not working when some one login my wifi .How can i find that <receiver ...
2
votes
0answers
301 views

Holding the broadcast receiver scope to perform operation based on user input

There is a new method supported in Android from API level 11 for extending the lifetime of the broadcast receiver. It is goAsync and new class BroadcastReceiever.PendingResult. Our scenario is: ...
1
vote
0answers
14 views

Alarm Manger is not triggering broadcast receiver exactly at Specified Time

Requirement : I want to trigger alarm and execute broadcast receiver every 3 minutes exactly,But alarm is not triggering exactly every 3 minutes,here is my code,Any help?? Alarm Manager ...
1
vote
0answers
9 views

Capture in real-time pages visted by user

I want to make small parental control application. It should capture URLs of all visited by user pages and save it to the log-file. I do not know how to do that, because user can use any available ...
1
vote
0answers
24 views

PendingIntent AlarmManager does not fire when the screen goes into sleep mode

Need to update the content in my view every x seconds these X seconds depend on the duration of a schedule that varies. I'm using AlarmManager to schedule this upcoming action and firing a Broadcast ...
1
vote
0answers
20 views

How can I know when another .apk failed to be installed?

I write a function which can install another app after I click a button in my own app, when another app is installed successfully, I can know it from a broadcast, but my question is when another app ...
1
vote
0answers
65 views

Detecting when multiple downloads are completed

I am using DownloadManager to download multiple files (12 to be exact). I have setup a BroadcastReciever and when ACTION_DOWNLOAD_COMPLETE display an AlertDialog like this: manager.enqueue(f1); ...
1
vote
0answers
41 views

How to indicate in UI when service been crashed android

This runs in separate process.I am using remote aidl. i created a method bitmap and displaying image from service to activity. Now when service gets crash, how to display message that service been ...
1
vote
0answers
24 views

Get contact details on contact creation or update android without using ContentObserver

I have been working with event which notify user about the contact change or insert, i also require the contact details which is not provide by ContentObserver is there any other way some thing like ...
1
vote
0answers
153 views

BroadcastReceiver not called when intent has setComponent

I have a simple MyBroadcastReceiver. I try to send a broadcast: ComponentName name = new ComponentName( MyBroadcastReceiver.class.getPackage().getName(), ...
1
vote
0answers
437 views

registerReceiver programmatically not working

Im developing a service which will start every time user turns screen on / user present / boot completed. I have researched some on google and found that, the ACTION_SCREEN_ON is only registered ...
1
vote
0answers
138 views

Ringtone is played out when Android phone is in RINGER_MODE_SILENT

I have a PhoneReceiver class which extends BroadcastReceiver where I set the phone's profile mode to silent. AudioManager manager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); ...
1
vote
0answers
50 views

Unable to broadcast an intent when inside a listener

I am trying to create a music player. At first i was doing it without a service,but then it would not have played in background for a long time.(Swipe Gestures were working fine till then)So i had to ...
1
vote
0answers
52 views

Different output on emulator and test device for the same android app

I have developed an app which receives following steps: PACKAGE_ADDED PACKAGE_REMOVED PACKAGE_REPLACED PACKAGE_CHANGED If I run this app in an emulator everything works fine. But if I run the ...
1
vote
0answers
72 views

AbortBroadcast with media button long press

How can I abort voice dialer broadcast when I press media button for long press? I tried : if (isOrderedBroadcast()) { abortBroadcast(); } but I got bad result, no response for power button,nor ...
1
vote
0answers
106 views

Android how to detect call logs programatically

I am trying to read call logs and save to an external storage. I have used cursor = this.getContentResolver().query(Uri.parse("content://call_log/calls"), projection, selection, ...
1
vote
0answers
92 views

BroadcastReceiver and PostDelay

In my activity I have a private BroadcastReceiver, when triggered, should update the UI after some ms. In my Activity I have: private BroadcastReceiver broadCastReceiver = new BroadcastReceiver() { ...
1
vote
0answers
117 views

Best way to dismiss a progress dialog?

I'm developing my first Android application and I'm having a hard time dismissing a progress dialog via Broadcast. The situation is quite simple: I have a login activity that uses a Service to ...
1
vote
0answers
93 views

BroadCast receiver with the intent filter of a Widget

my application is using a widget which is declared in the manifest as follows:- <receiver android:name=".ui.widgetprovider.DialerWidgetProvider" > <intent-filter> ...
1
vote
0answers
3k views

Permission Denied checkComponentPermission owninguid Facebook

I am new to android development so pardon me for any silly questions. I know that my question has some similar results for eg. WARN/ActivityManager(5038): Permission denied: checkComponentPermission. ...
1
vote
0answers
281 views

How to bring my app in foreground without use of ActivityManager?

EDIT You can find the answer to this question in the comments ! POST In my app, I have timers to remind the user of some task he's supposed to do. When time is up, a notification is sent. When the ...
1
vote
0answers
374 views

Refresh the Gallery after deleting an image file?

I always found the following answer for my Question: context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()))); ...
1
vote
0answers
72 views

android : “video recording finished” notification

I'm working on a project which need to trigger some action just after the camera finishes recording a video and store it in sdcard. I could find broadcasts that tells us when a photo is captured by ...
1
vote
0answers
39 views

how to BroadcastReciever by SendSMS&ReciveSMS from another application in android

Not Send SMS & Recive SMS from My application,But call my application BroadcastReciver of sendSMS&reciveSMS from another application. Edit: i recived solution for recivesms and call ...
1
vote
0answers
122 views

Why my main activity is getting displayed when I recieve broadcast intent

I have two activities as MainActivity and RecordHistory. I start broadcast receiver in MainActivity. I am able to get broadcast intent also and in OnRecieve I am launching RecordHistory Activity. ...
1
vote
0answers
46 views

Scheduling Random Activity or Service

I am trying to create a service that performs a specific task, let's say for simplicity a simple Toast Message and then schedules itself to run again at a random time in the future. I am using an ...
1
vote
0answers
168 views

Detect Volume Up/Down in Sleep mode

[Possibly duplicate] But I didnt find any answers to this particular question. The work arounds not working exactly. I am trying to detect volume up/down when the phone is in sleep mode. I tried the ...
1
vote
0answers
151 views

Android : Perform action when user presses Clear Data in Manage Apps

Just as we can handle uninstallation of an app: Listen Broadcast Before application uninstall , is there any way or any intent available, through which i can handle CLEAR DATA? I want to perform some ...
0
votes
0answers
3 views

can a BroadCast receiver anonymous class start an activity?

I have two activities such as ActivityA, ActivityB. I want to get a string using editText in ActivityA. and send broadcast. And then in the ActivityB i want to receive the text and set it in the ...
0
votes
0answers
27 views

sendBroadcast does not get called in Activity when Activity is opened

Hi all I am making an app where I receive XMPP packets. My app starts in foreground and starts a Sticky Service if not started and start receive messages in backgrounds and make notifications of them. ...
0
votes
0answers
21 views

Service Broadcast Receiver Logs more than expected

My problem is that I think my service runs multiple times. The service is controlled by a switch calling a method that starts and stops the service. I have a broadcast listener inside my service and ...
0
votes
0answers
17 views

Android - broadcast receiver for device physical buttons

Is there any way to set a broadcast receiver that will fire when a button on the device (power, home, volume) is pressed? Thanks.
0
votes
0answers
23 views

Alert user when wifi network has changed

I am working with Android. I have a service that is getting data from a wifi network. I would like to alert the user if they lose connection to that wifi address. I have been trying to work it out, ...
0
votes
0answers
5 views

Receiving null from echo message when trying to use GCM CCS

Hi all I am literally confused in process of making a chat client. I followed the below link for tutorial and did not find any place where I see a connection to thrid-party server from either device ...
0
votes
0answers
35 views

Why my phone does not get alert from receiver when my app is not running on background?

I have an app and I want to get notifications. It works fine when my phone is running background. But when I clear memory or restart my phone it is not getting notifications. My Receiver extends ...
0
votes
0answers
13 views

Big delay in sendBroadcast after (re)install

I have one application (lets call it MainApp) that asks another app (App2) for a server address. This is done using broadcasts and is used in development to change the server that MainApp uses. This ...
0
votes
0answers
17 views

Is it faster to retrieve a sticky intent or to retrieve a value in a file?

I need to get access to the value of the battery charge of the phone every second (in order to send it - along with other information - somewhere). For that, I retrieve the sticky broadcast from the ...
0
votes
0answers
22 views

What is the most up-to-date, currently working metachanged or playstatechanged broadcast intent for iHeartRadio on Android?

When an Android user starts playing a new song on the Spotify app, it sends out a broadcast with action "com.spotify.android.music.metadatachanged". When an Android user starts playing a new song on ...
0
votes
0answers
14 views

How to receive broadcast in AppWidgetProvider

I am trying to receive a Broadcast from an IntentService into a subclass of AppWidgetProvider. The IntentService is itself triggered when a click is made on the widget(I do this so that I can update ...