android-broadcastreceiver Questions

4

Solved

I am developing a flashlight app that switch on/off the system tourch. I have a crash that shown on Android M (v6.0) on Crashlytics Here is the Issue details and stacktrace: Fatal Exception:...

3

i am working on a VoIP-Android-App. I would like to accept and decline Calls via a connnected Bluetooth Headset in an Activity. What I have tried so far: Using a Media Session to receive Media ...

3

Solved

I am using broadcast messages on my android application (From io.socket I am sending broadcast messages to my Activity page). On some devices Samsung SM-G950F and SM-A520F I got an error "Fatal Exc...

1

On Xiaomi's MI devices, there is a feature of turning off/on "Autostart" in their security app. (In Security App->Permissions->AutoStart) This means none of the broadcast receivers receive anyt...

8

I've implemented the SMS Retriever API like in the google tutorials and in my debug Build Variant work fine. I can read the sms and get the code to the user can do the login. My problem is when I...

5

Solved

I have some receivers declared in my AndroidManifest : <!-- no warning --> <receiver android:name=".receivers.TriggerMonitoringBootReceiver" android:enabled="false"> <intent-filt...

2

I'm using a foreground Android Service to request a resource with Retrofit, via REST API, as a timer every 60 seconds. Such service is also running in a different process than the app, this is nece...
Haemagglutinate asked 18/9, 2018 at 10:37

7

Solved

I have already checked all the related questions and have not found any solution for this problem. So this is an absolutely new problem for me. What I Have I have an Android app which registers a...

1

I want to get some arguments from Intent in onReceive() method of BroadcastReceiver class. But there's only int ALARM_COUNT = 1, although I put two args: my Parcelable Alarm object and test int (fo...
Preliminary asked 6/11, 2017 at 20:41

6

An app I'm working on allows the user to allow the app to read the contents of a confirmation SMS to input the verification code on its own. For all devices using an OS earlier than Oreo (API 26), ...

3

Solved

This is my Activity code, Long time = new GregorianCalendar().getTimeInMillis()+20000;//Setting alarm after 20 sec Intent intentAlarm = new Intent("alarm"); intentAlarm.addFlags(Intent.FLAG_ACTIVI...

1

I am trying to send an intent from a non system app using the following function. public static void sendIntent() { if (null != _context) { Intent intent = new Intent("com.test.testApp.testInte...

7

Solved

Using Log class to track Runtime show that onReceive() methode does not called,why ? Register broadcast receiver dynamically private void discoverDevices () { Log.e("MOHAB","BEFORE ON RECEIVE")...
Veinlet asked 18/9, 2015 at 16:7

14

Solved

In my app I have a BroadcastReceiver that is launched as a component through a <receiver> tag, filtering android.net.conn.CONNECTIVITY_CHANGE intents. My goal is simply to know when a Wifi c...
Velutinous asked 11/3, 2011 at 17:11

5

I need to track install referrals for my android app. It's working fine in most of the devices. But in Redmi device, the broadcast is not getting triggered. I tested it with Redmi Note 4 I have te...

1

I developed one android application that has firebase phone number authentication. After enter phone number, firbase sent Verification OTP number via SMS. So I add and allow SMS Read permission in ...

2

Solved

I have a broadcast receiver registered in the application manifest to receive the BOOT_COMPLETED notification. After restarting the mobile device I receive no notification. However, I do receive th...
Squeaky asked 19/12, 2018 at 9:16

2

Solved

I'm posing this as Q&A style because I found this idea working. And it's a fix to the hard problem to crack for beginners with Android. Google has deprecated registering Broadcast Receiver i...

3

Solved

I have two separate apps. The first sends out two different kinds of Broadcasts. The second one waits for this broadcast from App #1 and uses the broadcast to decide what activity to launch. Wha...
Martamartaban asked 30/3, 2018 at 23:45

2

How can i receive data of incoming message using broadcast receiver in Oreo, its working perfect in before Oreo version,but i am unable to receive in Oreo, i have trying to short out this by help o...

1

Solved

I have setup an alarm that calls each hour a broadcast receiver. This receiver tries to load data from the sqlite database. The problem is, that the list of reminders is null. The same codes works...

0

I am using Android Room to store my application data. After device reboot I need to retrieve them and do some functions. I am using LiveData for getting data from database. But I cannot bind Broadc...
Idiocy asked 11/8, 2018 at 17:54

2

For creating a receiver I'm extended WakefulBroadcastReceiver in my old project. But now it's deprecated. Instead of WakefulBroadcastReceiver which Receiver I should use now and how to convert belo...
Kairouan asked 10/11, 2017 at 7:3

1

Solved

after reading some manuals (1,2) about this I still need help. I am targeting my app to android O and on android 7.0 it work fine but on 8.1 I don`t seem to get any broadcast. So, if targeting andr...
Hydroxyl asked 23/6, 2018 at 6:6

6

Solved

I have been trying to do something similar to truecaller app, where my app is supposed to show a screen after a call gets hung up. Was achieving this by registering android.intent.action.PHONE_STAT...

© 2022 - 2024 — McMap. All rights reserved.