android-broadcast 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
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...
Fonville asked 8/4, 2019 at 2:22
5
Solved
Android android.intent.action.BOOT_COMPLETED Intent is not received if I use the "Restart" or "Reboot", but works if I turn off and on the device. Is there Any way to make this work?
Emotion asked 22/7, 2014 at 8:52
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...
Ely asked 17/8, 2023 at 6:57
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...
Caroncarotene asked 18/1, 2012 at 12:54
4
In Android OS, in "Settings" --> "Location services", there is a toggle button named "Access to my location" which can be used to disable & enable location info access from apps.
Currently, I ...
Dibasic asked 28/11, 2013 at 12:16
3
Solved
If I register a broadcast receiver say in my activity like this,
@Override
protected void onResume() {
super.onResume();
myReceiver = new BroadcastReceiver() { ... };
IntentFilter filter = new ...
Clog asked 26/7, 2012 at 17:59
4
Solved
as mentioned here, when the screen goes off, the onStop() of current Activity will be called. I need to check the screen on/off status when the onStop() of my Activity is called. so I have register...
Paderewski asked 13/10, 2013 at 21:3
6
I'm trying to make an android application which listens to wifi change broadcast and do some action. But the problem is that it is not working when the process is killed. I found this question whic...
Rockbottom asked 26/11, 2014 at 10:5
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...
Reclamation asked 27/10, 2017 at 8:55
5
Solved
I have a Nexus S, and when I change the date manually on the phone, ACTION_DATE_CHANGED is not always broadcasted. If I change the date from Feb 13, 2014 to Feb 14, 2014, I have not gotten an ACTIO...
Cam asked 13/2, 2014 at 15:19
3
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 ...
Surely asked 9/1, 2013 at 9:15
3
Manifest:
<receiver android:name=".GpsLocationReceiver">
<intent-filter>
<action android:name="android.location.PROVIDERS_CHANGED" />
<category android:name="android.intent...
Dorty asked 3/8, 2015 at 14:5
3
Solved
I am using the DownloadManager to download images off our server and I am placing the files in the externalFilesDir.
I am send out a broadcast intent because I don't want these downloaded images t...
Wayfaring asked 6/6, 2014 at 0:43
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...
Scurrile asked 20/11, 2015 at 6:40
2
Solved
I'm trying to catch bluetooth state changes with Broadcast Receiver.
My manifest:
<uses-permission android:name="android.permission.BLUETOOTH" />
<application>
<activity
android:...
Maragretmarala asked 13/5, 2015 at 18:16
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...
Sackcloth asked 20/12, 2018 at 9:42
3
I always found the following answer for my Question:
context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"
+ Environment.getExternalStorageDirectory())));
but it do ...
Kampmeier asked 18/3, 2013 at 21:36
5
All of us known we register BroadcastReceiver in two types
1)Static Registration
2)Dynamic Registration
But my doubt is when we need to use Static and when we need to use Dynamic?
Fleshpots asked 23/4, 2014 at 10:43
5
Solved
MyReceiver.java
public class MyReceiver extends BroadcastReceiver {
@Override
public void onReceive(final Context context, final Intent intent) {
Log.i("MyReceiver", "MyAction received!");
}
}...
Sink asked 9/3, 2018 at 15:41
2
There are many questions about detecting incoming and outgoing calls in android, but all of them are old and also android deprecates the useful functions, and google play rejects my application bec...
Aldrin asked 30/6, 2020 at 8:53
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...
Schmuck asked 7/1, 2017 at 17:40
4
I was trying to get notification trigger on my application whenever the user makes a new call. I'm registering receiver in my activity and destroying it in onDestroy() method. Following is the code...
Orchidectomy asked 30/3, 2018 at 11:10
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...
Expiate asked 20/12, 2015 at 7:5
17
Solved
I need to check if my registered receiver is still registered if not how do i check it any methods?
Birthday asked 21/4, 2010 at 10:25
1 Next >
© 2022 - 2024 — McMap. All rights reserved.