broadcastreceiver Questions

4

Solved

I have a serious issue about passing data from BroadcastReceiver to an Activity. Let see my issue carefully. I have a class PhoneStateReceiver extends BroadcastReceiver that used to received an inc...
Gayomart asked 15/8, 2016 at 11:31

3

Solved

Im making an Alarm app, and using AlarmManager to set alarms. Im saving every alarm using Room after running the setAlarm on the AlarmManager, so I can later restore them if the phone gets turned o...
Hedvige asked 18/10, 2022 at 13:19

4

Solved

After building my application with api-level 33, android is adding new permission in the merged manifest <permission android:name="com.my.package.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION&q...

1

Starting from android 12 , starting activity from BroadcastReceiver and services is not possible anymore, according to the documentation this is called Notification trampoline restrictions and now ...

3

using ContextCompat.registerReceiver(this, mIntentReceiver, filter, ContextCompat.RECEIVER_EXPORTED); or registerReceiver(mIntentReceiver, filter, Context.RECEIVER_EXPORTED); it hints "Must ...
Apostles asked 29/6, 2023 at 2:53

4

When authenticating using Firebase Auth, I want to auto input the code that is received via SMS. I am able to receive SMS and go through auth process manually, but when I use SmsRetriever, the app ...

6

I got this error while importing an eclipse project to Android studio. It shows a suggestion Add library Gradle: com.android.support:support-core-utils-27.1.1 to classpath. I have added the library...
Heffron asked 29/6, 2018 at 8:5

2

Solved

Is there any way to listen for volume changes with an Android service and react to that? Btw: How does the Google music app allow the user to control the media volume even when the music is playin...
Scrubland asked 20/8, 2011 at 7:32

1

i am getting ANR in my applications broadcast receiver. log from google console - Broadcast of Intent { flg=0x14 cmp=in.medibuddy/.receivers.DailyInitHealthReceiver (has extras) } Recently i have ...
Arbela asked 8/7, 2021 at 12:38

2

I have created BroadcastReceiver to schedule my Service execution every 30 seconds. This is what I have in AndroidManifest.xml : <receiver android:name="MyScheduleReceiver" > <intent-fil...
Hammered asked 3/1, 2015 at 10:33

4

Solved

I have an text reader app that is designed to receive intent from Android system when I click on a text file to open it. But my app isn't on the list popped up by the system. Below are my codes: M...
Olivo asked 22/6, 2012 at 8:39

4

Solved

So I'm programming an Android app that uses Bluetooth discovery of devices. Here is the code I use to start discovery. try { myBluetoothAdapter.startDiscovery(); Log.d("Bluetooth Started success...

4

How to read all the coming notifications in android. Is it possible to use the broadcast receiver to listen the incoming notifications and the ability to read the notifications information.
Kaiserdom asked 26/5, 2013 at 9:25

2

Solved

So this is my BroadcastReceiver public class IncomingSMSListener extends BroadcastReceiver { private static final String SMS_EXTRA_NAME = "pdus"; @Override public void onReceive(Context context, ...
Witte asked 15/8, 2011 at 2:58

10

Solved

I know there has been hundreds of this kind of question asked, but I've been checking them all for a while and still couldn't find any solution. I've seen this answer to "Android BOOT_COMPLETE...
Corneliacornelian asked 7/12, 2013 at 12:22

10

I tried using the sample code in this tutorial but it seems outdated and it did not work. So what changes do I have to make and to what files to have my app start automatically when Android finishe...
Cephalometer asked 17/6, 2011 at 21:12

6

Solved

In my app you can download some files. I used the Android DownloadManager class for downloading. After the download is completed, it should show me a message that the file was downloaded. The probl...
Christiansen asked 10/11, 2012 at 12:18

6

Solved

I have a service that needs to notify the main activity. I use LocalBroadcastManager, and it works fine, but LocalBroadcastManager has been deprecated. This is my actual code in the service: public...

1

Solved

I'm experimenting with my app on an Android 14 device, where I'm sending a local broadcast and then subscribing to it within the app. However, when I utilize the RECEIVER_NOT_EXPORTED option, the b...

2

Solved

I have searched widely but not found an answer to this question: Is it possible to change a variable in a Jetpack compose user interface from a broadcast receiver?
Varityper asked 1/6, 2023 at 15:4

2

Problem: I want to cancel a Notification when I directly reply to that Notification. It works in Android N but doesn't work on Android 10. My Code is like below: MainActivity.java public class ...

2

Solved

I have an application which is keeping a log of internally developed applications installed on the device. Upon installation a broadcast receiver for Intent.PACKAGE_ADDED is invoked and records the...

4

1) I have an Activity. This Activity starts a service, which in turn creates and registers a BroadcastReceiver. 2) I have an Activity. This Activity creates and registers a BroadcastReceiver. Whe...
Attwood asked 5/1, 2014 at 16:21

5

Solved

I have an application that uses Urban Airship for push notification. When a notification arrives and the user clicks on it, activity A in my application should open and do something. I've installe...
Heptangular asked 1/5, 2013 at 21:53

0

Requirement I would like to implement a Flutter app, which is: Triggered by a broadcast action ACL_CONNECTED on Android and then it Processes information about the connected device in Dart (Flutte...
Miscarriage asked 17/6, 2023 at 14:33

© 2022 - 2025 — McMap. All rights reserved.