Questions tagged as 'broadcastreceiver'

1
answer

Value drop in getIntent ()

My problem is this ... I have a notification routine that the user clicks on the notification screen, open a new Activity. In this new Activity I show some information that I look for in the database depending on the code that I pass by paramete...
asked by 16.08.2016 / 17:48
1
answer

Knowing if an app is open through a BroadcastReceiver

I have a BroadcastReceiver that displays a notification to the user! But if the user has the app open (with the screen active), I'd like to cancel the notification! Is there any way to find out if the app is open?     
asked by 12.03.2016 / 02:57
1
answer

StartActivity within BroadcastReceiver

I want to go to another activity when I enter the onReceive of my receiver, but it always stops working in startActivity , the code I'm doing is like this: @Override public void onReceive(Context context, Intent intent) { Toas...
asked by 28.05.2014 / 15:34
0
answers

Does not reach notification

I want every day at 10 pm to get a notification to the user. When 22 hours arrive, nothing happens. follow the code below public void Alarme(){ this.context = this; Intent myIntent = new Intent(this.context, AlarmReceiver.clas...
asked by 01.11.2018 / 01:47
0
answers

Notices at random times is possible?

I am using BroadcastReceiver along with alarmmaneger to send notifications and among these I thought about sending a notification between the hours of 12 the 19 randomly like if today sent the 12 hours and amanaha the 16 so that I could not thin...
asked by 21.07.2018 / 19:16
1
answer

Broadcast Receiver with Firebase

I have a need and I have already searched a lot, but I still have not figured out how to do it, I have a base in google firebase-database that is updated every 10 minutes when new information arrives in firebase realtime modifies the forms in ap...
asked by 14.06.2018 / 19:31
4
answers

How to identify a change in the state of Internet connectivity to execute a method when connecting?

I'm trying to implement this train and not getting it. I wanted to do the same thing as the colleague who opened the thread, but I could not even follow these examples. I have some questions: In what class do I set this Calendar bid? On the r...
asked by 23.09.2015 / 20:05
0
answers

BroadCastReceiver volume

Is there any way you can get a "user pressed and held down volume button for 3 seconds" action? I would also like to know if this action can be received even with the operating system screen locked.     
asked by 11.05.2018 / 16:54
0
answers

multiple Broadcast Receiver

I'm writing an Android app and need to recognize various system statuses, such as connection, battery status, and a few others, My question would be, how to create a function for this? I created the following code block IntentFilter iFil...
asked by 23.04.2018 / 14:42
0
answers

Capture text from Sms when sending it

In the code snippet below I capture the message and the phone that is received by sms on the cell phone and compare the message with a string already saved and in the same case I execute an action responding to the phone number, all using Broadc...
asked by 12.02.2018 / 17:37