Questions tagged [bootcompleted]

ACTION_BOOT_COMPLETED is one of the standard actions in Android OS that Intent defines for receiving broadcasts. It is broadcasted once after the system has finished booting.

ACTION_BOOT_COMPLETED is one of the standard actions in Android OS that Intent defines for receiving broadcasts. It is broadcasted once after the system has finished booting. It is usually used to perform some sort of initialization in application (creating alarms is a common usage case). You must hold the RECEIVE_BOOT_COMPLETED permission in order to receive this broadcast. This is a protected intent that can only be sent by the system.

Information is taken from Android Developers site.

157 questions
5
votes
2 answers

Android BOOT_COMPLETED event not starting service

I am writing a small android application which starts my service upon device boot. Application is working fine on all the mobiles with Android versions 4.4.2 (Mi Note 4G, have to enable permissions in their security app), 5.0 (Lenovo K3 Note), 5.1…
Naresh
  • 99
  • 2
  • 9
4
votes
1 answer

BOOT_COMPLETED not called on Honeycomb after export

I have a very weird problem, and none of the questions already on the website have an answer or the same problem. I have an app that receives BOOT_COMPLETED. I made sure it could receive the intent by setting…
Setsuki
  • 255
  • 2
  • 11
4
votes
3 answers

After device restart, my app receiving BOOT_COMPLETED broadcast slower/later than other apps?

When I restart my device, I am receiving BOOT_COMPLETED broadcast much slower (around 10-15 seconds later) than other apps. I have seen this. But I do not think this is completely true. How (I think) I proved it wrong: (Let's define X as an…
4
votes
2 answers
4
votes
0 answers

NfcAdapter.getDefaultAdapter returns null, when android application starts on BOOT_COMPLETED intent

NFC based Android application, which starts after boot complete (when BOOT_COMPLETED event received by BroadcastReceiver). The Problem Some times NfcAdapter.getDefaultAdapter(this) retunrs null; this is random/inconsistent, for some boot cycles it…
brbabu
  • 340
  • 2
  • 15
4
votes
2 answers

broadcasting of BOOT_COMPLETED intent action does not work properly

I have a receiver class listening on several actions but it can not catch the android.intent.action.BOOT_COMPLETED action. What I am doing wrong? here is my manifest file:
laplasz
  • 3,359
  • 1
  • 29
  • 40
3
votes
0 answers

Android BOOT_COMPLETED receiver not work on some devices with Android 5.1

I have a problem with Mediacom X530U and Motorola Moto G devices with Android 5.1. I have this Manifest:
Mattia
  • 133
  • 2
  • 8
3
votes
2 answers

How to create a notification that always run even after phone reboot?

I have set an alarm manager at a method setAlarm() at MainActivity that contain a date from firebase database and set an alarm based on that. This is pretty good when I try to run this. But when I try to reboot my phone before the alarm times up,…
3
votes
1 answer

Broadcast class not recieving broadcast intent for BOOT_COMPLETE

I needed to restore alarm after reboot for this I added this broadcast receiver: public class ClsRestartAlarm extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if…
blackHawk
  • 6,047
  • 13
  • 57
  • 100
3
votes
2 answers

BOOT_COMPLETED receiver not working if another application is installed

Basically I've got a boot receiver set up like so:
deadwards
  • 2,109
  • 1
  • 16
  • 27
3
votes
3 answers

Android BroadcastReceiver on BOOT_COMPLETED does not start alarm

I'm trying to use a relatively simple solution to execute some code on boot. Basically I want to schedule/reschedule an Alarm at boot to execute a certain task in the future. In my manifest I have:
Rui
  • 5,900
  • 10
  • 38
  • 56
3
votes
3 answers

How to start the application after boot complete in android version 3.1 and above?

I got to know boot complete intent is not supported by android version 3.1 and above from here. But in my application. I want to start services automatically in my application after device is rebooted. I do not want user to start my application…
thej
  • 648
  • 10
  • 33
3
votes
1 answer

Null Pointer Exception in alert dialog after BOOT_COMPLETED

I want to show an alert dialog when booting of device is completed. There are no problems with the broadcast receiver, it works fine. But when boot is completed, there is no open activity, hence I get NullPointerException here. How can I show a…
2
votes
0 answers

Is there a way to automatically launch your app after the QR code provisioning is done?

I have an android app that is a device owner which I provision via QR code. I would like to launch the app automatically as soon as the provisioning setup is complete. I tried to do it using the code below, which works for a normal restart of the…
2
votes
2 answers

Android - BroadcastReceiver trying to return result during a non-ordered broadcast

I am trying to catch the BOOT_COMPLETED intent. In my receiver, I just print something to the Log. In Logcat I get this error, and the log statement that I put never prints out. I have set the permission in the manifest for
Suchi
  • 9,989
  • 23
  • 68
  • 112
1
2
3
10 11