Questions tagged [reboot]

Reboot is a Unix command to restart the operating system. It is also a generic term for restarting any operating system.

559 questions
80
votes
2 answers

How can I get the Windows last reboot reason

I'd like to know what is the Windows API function (if any exists) that provides information about the last Windows reboot source. There are three main possible causes: The computer crashed on a blue screen A user or a program shutdown/restarted the…
Frederic
  • 1,805
  • 2
  • 17
  • 22
46
votes
10 answers

How to find the IP address of an amazon EC2 instance on reboot

On reboot, the IP address of an amazon instance changes. How to find the new IP address using java API?
figaro
  • 2,105
  • 3
  • 19
  • 25
43
votes
4 answers

NSUserDefaults losing its keys & values when phone is rebooted but not unlocked

We are currently experiencing the following weird issue with our iPhone app. As the title says, NSUserDefaults is losing our custom keys and values when phone is rebooted but not unlocked, and this is happening on a very specific scenario. Context:…
mp3821
  • 751
  • 1
  • 9
  • 18
38
votes
4 answers

Reboot machine from a C#/WPF app

I want to have a button in my WPF app that restarts the machine. This app is always running on Vista. The fact that a quick search hasn't turned anything up makes me think this might be harder than I wish it was... any ideas? Thanks!
Josh Santangelo
  • 906
  • 4
  • 11
  • 16
35
votes
5 answers

Android BroadcastReceiver, auto run service after reboot of device

Hello i am writing an application, which is when the phone reboot, the service will auto start instead of click on the application. Here is my code for BootCompleteReceiver.java package com.example.newbootservice; import…
BangBoat
  • 415
  • 2
  • 5
  • 10
30
votes
7 answers

How to reboot emulator to test ACTION_BOOT_COMPLETED?

Well, I have searched a lot. People say that I need to close the window of emulator to close it. However, I need to reboot the emulator to catch ACTION_BOOT_COMPLETED by my BroadcastReceiver. How can I do that?
user942821
29
votes
1 answer

Android AlarmManager after reboot

I have a set of alarms that I need to keep after reboot. I've tried using on an boot receiver but they won't start again. I'm not sure if I understand the boot receiver and how to then restart all the alarms. I already have one receiver for my…
user1281053
  • 377
  • 1
  • 5
  • 10
28
votes
2 answers

Setting environment variables requires reboot on 64-bit

I am working on an installer using Wix 3.5 that needs to set the system PATH environment variable. This is how I am setting the environment variable:
Alan Spark
  • 7,716
  • 8
  • 45
  • 88
28
votes
2 answers

Is there a command to restart computer into safe mode?

I would like to know if there is a command that could be written in the command line to restart the computer and make it boot in safe mode? If there isn't a command like this, is there any other way to do it? I would like the process to be fully…
sSmacKk
  • 1,033
  • 4
  • 15
  • 30
23
votes
3 answers

Start AlarmManager if device is rebooted

In my app I want to run some code every day at a specific time using an AlarmManager. In the android documentation I found this: Registered alarms are retained while the device is asleep [...] but will be cleared if it is turned off and…
Cilenco
  • 6,264
  • 15
  • 62
  • 128
22
votes
3 answers

Can I get logcat logs after phone reboots?

I'm testing an android application with a long running service. I'm using Eclipse and have the usb cord hooked up with the phone sitting next to me. Since it's a long ongoing service, I do some other work while it runs and check the logcat logs…
Scott Saunders
  • 27,788
  • 14
  • 52
  • 63
19
votes
9 answers

Restarting a device programmatically

In my android application, I want to restart my android device on button click. But its not working. I have done this so far. ImageButton restartmob = (ImageButton) this.findViewById(R.id.restartmob); restartmob.setOnClickListener(new…
Suniel
  • 1,369
  • 7
  • 22
  • 39
19
votes
3 answers

Is it possible to prompt for restarting the machine after installation using WiX?

Is it possible to prompt for restarting the machine after installation using WiX?
abmv
  • 6,716
  • 16
  • 59
  • 99
18
votes
5 answers

How to restart Redmine?

I have a Redmine installed on CentOS without GUI. I changed email configuration and a reboot is necessary. How to restart redmine from command line?
FilippoG
  • 272
  • 1
  • 2
  • 11
17
votes
5 answers

Runtime.exec() : Reboot in Android?

I'm looking for a solution which can be used to reboot a rooted device. I jknow that rebooting a device is very poor design for the user, as stated here, and it's not really for an application. The main purpose is to reboot the phone during my tests…
Rob
  • 2,736
  • 5
  • 29
  • 38
1
2 3
37 38