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
2
votes
2 answers

android: use Intent.ACTION_BOOT_COMPLETED or ...?

In the AndroidManifest file, I want to capture the BOOT_COMPLETED event when the user re-boots their device. I am adding this permission: "uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" I have seen two "intent-filters"…
AJW
  • 1,578
  • 3
  • 36
  • 77
2
votes
0 answers

Android root device run application after system boot from script

I am creating small initialization application. Let's call it InitApp. That application is responsible for initialization Wifi connection and update/download another application from server. The InitApp should run automatically every time after…
Michael
  • 780
  • 1
  • 10
  • 34
2
votes
1 answer

Converting my app to a service

I've created a geo-location app that collects location information of the device and compares it to a pre-defined lat/long coordinates to perform certain actions when they match. Currently I have an activity page where the users can enter the…
user1118764
  • 9,255
  • 18
  • 61
  • 113
2
votes
0 answers

Boot completed broadcast not being received after reinstall

We have an android application (A) that runs with system permissions. Its job is to download and install another application (B). As soon as A installs B, it automatically launches B. Application B runs on boot. The first time app A installs app B,…
Ed_
  • 18,798
  • 8
  • 45
  • 71
2
votes
2 answers

Get Network on android.intent.action.BOOT_COMPLETED

I've an app that has a receiver of android.intent.action.BOOT_COMPLETED and start a private VPN. But when I receive a android.intent.action.BOOT_COMPLETED the network isn't ready yet. What can I do to start a android.intent.action.BOOT_COMPLETEDand…
2
votes
4 answers

BOOT COMPLETE is not working in Android (Redmi)

I am currently working on a application which includes Boot_Completed Broadcast receiver concept. I have tested this app in my Motorola Moto G Phone. The app runs fine and shows the Toast message. But when I test this app in XIAOMI Redmi 1S phone it…
Jigar Shekh
  • 2,800
  • 6
  • 29
  • 54
2
votes
1 answer

Unable to start Service after Device Boot Completed. Boot Completed BroadcastReceiver onReceive() not Calling

I am working on one app which will start a service automatically at device start ( after boot complete ). i did code but i think something is going wrong with my code. i have tried google too and all the tricks while research. can you please help…
Ajay
  • 1,189
  • 1
  • 12
  • 28
2
votes
0 answers

Execute BOOT_COMPLETED action on first launch of app

I am using AlarmManager to trigger a regular action of my app that should run whenever the device is on. Following the documentation I am receiving an intent of type android.intent.action.BOOT_COMPLETED to start the alarm whenever the device…
sleidig
  • 1,350
  • 12
  • 28
2
votes
1 answer

Set Multiple Alarms on BOOT_COMPLETED in Android

I am trying to laod some tasks from DB on BOOT_COMPLETED and set alarm for each of them. Alarm Manager is configured to receive BOOT_COMPLETED in AndroidMAnifest File. Sometime I get these task via SMS, so i have a brodcastreceiver for sms receiving…
Sam
  • 55
  • 1
  • 7
2
votes
1 answer

Is alarmmanager ALWAYS cleared after reboot?

Simple question: is the AlarmManager always cleared after reboot? Is it cleared after reboot on all devices and even when the user boots his device up very shortly after he booted it off? I need to know this because I recreate my app's alarm in an…
Xander
  • 5,487
  • 14
  • 49
  • 77
2
votes
1 answer

Android Alarm start on boot

I would like to send a notification on specific day of the week, my code works on the day but every times I turn on my smartphone/emulator I get the notification. How can i fix this problem? My Manifest
2
votes
1 answer

Getting ResourceNotFoundException after device rebooted

I am having Boot Completed Receiver in my application and after Reboot completed, inside my Boot Receiver I am starting an Activity. In that I am getting ResourceNotFoundException on setting layout. setContentView(R.layout.activity_home);//getting…
Scorpion
  • 6,831
  • 16
  • 75
  • 123
2
votes
0 answers

Is it possible to read the database from boot completed receiver?

I'm trying to read the database once my app receives boot_completed broadcast.but im getting NullPointerException when trying to open the database. My objective is to store reboot count and that should be persistent (should survive reboot).Is this…
Jey
  • 93
  • 1
  • 8
2
votes
1 answer

BroadcastReceiver for BOOT_COMPLETED not returning from sleep()

I have a BroadcastReceiver that reacts on BOOT_COMPLETED. In turn it shall issue an intend, but this intend should be delayed for a while. For some reason, if the parameter to the sleep() call is greater than approx. 6000ms, the sleep never returns…
Bernd
  • 675
  • 2
  • 8
  • 30
2
votes
1 answer

Logcat : Not granting permission android.permission.BIND_DEVICE_ADMIN to package com.myprojects.myapp (protectionLevel=2 flags=0xbe46)

I have a boot complete broadcast receiver but it wasnt working as expected. Nor is the Full Screen activity that requires STATUS_BAR permission. I tried to go through the LogCat logs while the phone was booting up and this is what I found : LOG …
Vikas Singh
  • 1,781
  • 7
  • 27
  • 54
1 2
3
10 11