Questions tagged [android-reboot]

43 questions
10
votes
1 answer

Boot BroadcastReceiver does not work on Xiaomi devices

I have a following BroadcastReceiver which should run after boot completion. I have tested it on my Xiaomi device (Redmi 1s), it's not running, while on other devices like Samsung it's running as expected. public class DeviceBootReceiver extends…
8
votes
1 answer

adb reboot hangs Gennymotion

I have used adb reboot umpteen number of times earlier, with absolutely no issues. For some reason this time however, adb reboot simply freezes my Gennymotion emulator instance (API 18 - Android 4.3) and I have no clue how to solve this issue. I…
qre0ct
  • 5,680
  • 10
  • 50
  • 86
8
votes
2 answers

Is the Application class guaranteed to be instantiated before a defined boot receiver is called

Excuse me for such an elementary question. I understand that the Application class is instantiated when my app's process starts and I understand when the phone is completed booting my boot receiver will be called. I'm assuming since the phone…
5
votes
2 answers

Alarmmanager not working after phone reboot

I had created alarmmanager on button click. but it not working after phone reboot. my AlarmbroadcastReceiver not call on phone reboot. it work when phone lock , application killed but not work after phone reboot i had created one progressbar which…
5
votes
5 answers

BOOT_COMPLETED is not getting called in device

i want to start an alram when the device gets boot, for that i have done following stuff 1) User permission 2) add receiver with intent action in manifest file …
Hunt
  • 8,215
  • 28
  • 116
  • 256
4
votes
0 answers

SD Card new written file is zero bytes until reboot

On Samsung Galaxy S5 with latest Lineage OS nightly 9-Aug-2017 (Android 7.1.2): I use FileOutputStream to write to a file on the app cache dir on the SDCard and close it. SD Card is not adopted. File file = new File(fileName); FileOutputStream fout…
RumburaK
  • 1,985
  • 1
  • 21
  • 30
4
votes
1 answer

How to shut down Android phone, programmatically?

How to make shut down in Android programmatically, I searched for the question and I found many answer the strongest answer said your phone must be ROOT, now my phone is root and my code working fine but when I execute this code below I get an…
ROR
  • 271
  • 3
  • 29
3
votes
0 answers

Adding init script to reboot android marshmallow tablet when it's booted with usb charging

I have tried to make script to reboot tablet from charging mode to normal if it's started by pluging usb charger. Android init language is quite straightforward but actually how it's then parced is quite mystery to me. so i have my_script.sh…
Juge
  • 536
  • 8
  • 21
3
votes
3 answers

Automatically boot-up MTK devices (non-samsung) when docked

I'm developing a standalone kiosk using an android tablet(iBall running on 4.2.2).Its has the chinese MTK in it. Suppose when there is no power,then eventually the tab's battery will drain out and have no juice left in it.When the power comes back I…
Basher51
  • 1,319
  • 1
  • 17
  • 28
2
votes
0 answers

FCM messages are not delivered when the device is started and it has a password

On android, the messages do not arrive after I restart my device and have a password, if he has no password he receives the message I would like to understand this situation, whether it is for security or really is a sdk failure
2
votes
2 answers

Android: set alarm/reminder after phone reboot

I'm developing an Android app with a reminder function integrated. The notifications work if the phone stay on, but when I turn it off or reboot it I lose all my alarms. I know that this is and Android feature to improve the phone efficency, but I…
Elia Mirafiori
  • 107
  • 2
  • 8
2
votes
2 answers

Determine if phone has been rebooted

I'm trying to detect if an Android device has rebooted since the last time a preference value is set. Ideally, I'd like to do it without the android.permission.RECEIVE_BOOT_COMPLETED permission. One way I'm thinking about doing this is storing…
Michael Marvick
  • 521
  • 4
  • 15
1
vote
0 answers

Is there a way to reboot an Android device using flutter Process.run()?

I want to create an app to restart my phone. My motivation for this is because my power button is broken. This is my current code (stderr doesn't print to console by default, only exceptions do): _reboot() { …
A. Dumais
  • 145
  • 9
1
vote
0 answers

After Reboot How I don"t get exception?

I am writing application for android.I have 2 activity layout.First one has customized listview that checkbox.User select listview items and click to button. And I set up 2 different alarm. First time user click to button on first activity"s layout…
1
vote
2 answers

If android application is installed in mobile but never launched .is BootCompletedReciever called?

If android application is installed in mobile but never launched and considered i have implemented boot completed receiver for this application.Now i am going to reboot the device .here boot completed receiver will call or what will happens?
1
2 3