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
-1
votes
1 answer

How to programmatically check that alarm has been scheduled already or not?

I have used the below code to set the alarm, mAlarmManager.setRepeating(AlarmManager.RTC_WAKEUP, activeModeTime.getTimeInMillis(), AlarmManager.INTERVAL_DAY, getActiveModeAlarmPendingIntent()); Every time when my app…
-1
votes
1 answer

GoogleApi's API level 8 Platform 2.2 error when i want instantiate a broadcast receiver that call a service

I receive the following error when my android app call my receiver after boot. This problem only happens in Android GoogleApi's API level 8 Platform 2.2 (this work well in api level 8, level 10 and above). 09-18 05:26:10.421: E/AndroidRuntime(261):…
-2
votes
1 answer

BOOT_COMPLETED Broadcast not received when app was killed

I'm stuck at the development of our app. I want to receive the BOOT_COMPLETED broadcast so I can reschedule some Alarms. So I start my app, schedule the alarms and then reboot my device (Android 10). Everything works as expected, ie after reboot, my…
derpirscher
  • 14,418
  • 3
  • 18
  • 35
-2
votes
1 answer

My BroadcastReceiver is not working when device is started

My AndroidManifest, Broadcastreceiver and Service classes are shown below. DetectBootUp.cs: [BroadcastReceiver] [IntentFilter(new[] { Intent.ActionBootCompleted })] public class DetectBootUp : BroadcastReceiver { public override…
-2
votes
1 answer

Android BOOT_COMPLETE not triggering (Shell does)

I am trying to start a service when the phone boots up, and it works with the shell command "adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -n com.example.adrian.wifi/.Receiver" but when I restart the phone nothing happens.…
Asd20752
  • 323
  • 4
  • 12
-3
votes
1 answer

How do I start service on Reboot?

I am trying to automatically start an Android service when the device reboots. I have tried to accomplish this using Receive_Boot_Complete permission, BroadcastReceiver with Boot_Complete intent action with no success. I'm very well aware that…
DollaBill
  • 239
  • 1
  • 3
  • 15
-5
votes
2 answers

Can "repeated code" be avoided for multiple alarms (previously was: Multiple alarms = Multiple Boot receivers)?

I have a very subtle question that might look grotesque, to more expert eyes than mine. I'm implementing 2 distinct alarms, that survive reboot/shutdown and show a notification when fired. One is a repeating daily reminder, and the other one is a…
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
1 2 3
10
11