Questions tagged as 'broadcastreceiver'

1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28
1
answer

Notification at 0h00 without starting application

I would like to notify the user that he has an expense that expires the next day, but without the need for the application to be running, I currently have a code that notifies me from the moment I enter the application, I would like to do so (wi...
asked by 22.12.2015 / 21:00
2
answers

Service versus BroadcastReceiver

What's the difference, on Android, between Service and BroadcastReceiver? How long can a Service run (running)? How long can a BroadcastReceiver run (running)? Can I create notifications via BroadcastReceiver or just via Service? Is it...
asked by 07.04.2016 / 17:19
1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28
1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28
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
1
answer

Why is BroadcastReceiver called several times and always with the same "extra"?

I have an application that sends sms to android, and a Broadcast to catch the errors if I can not send to the recipient.  If you can not send a message, I will capture the object and save it to the database with the type of error that occurred,...
asked by 27.02.2016 / 01:18
1
answer

Using Broadcast Receiver with DownloadManager

I'm learning how to use DownloadManager with BroadcastReceiver to know when the download is complete. The problem: let's suppose I'm going to download 2 PDFs on one page, I register 2 Receivers, that is, one for each PDF, then I...
asked by 04.09.2016 / 18:06
1
answer

How to show the contents of an SMS received in Android in a text dialog?

I'm developing an Android application that sends an SMS request to a remote device and receives a reply, also via SMS, which should be presented to the user. In order to receive SMS I used the following code, which implements SmsReceiver...
asked by 19.03.2014 / 14:52
1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28