Let's take a look at the question's first, original revision:
Hi I was wondering programatically
Hi I was wondering what the command was to hot reboot an android. When I say hot reboot I mean a fast reboot or it goes straight to boot animation.
The most important requirement for a question to be on-topic on Stack Overflow is that it must be a programming problem. Although somewhat unclear, in the very poorly written title, it does say programmatically.
I won't get into too many details on the title, but in general, the title should entice people from the main page to view the question; thus, it should summarize what the post is about.
Instead of being closed as off-topic, I would have closed it as not a real question:
not a real question
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
The best questions on Stack Overflow show research effort. They list what was tried, where the asker is stuck, what output or error messages the person is getting, or otherwise include details that help the answerers write awesome answers. After all, nothing is worse than writing a really detailed answer and then having the asker exclaim "No! I tried that already and it didnt work!!".
With that said, I want to address one of your comments to the other answerers:
However it was still answerable and wasn't off topic at all?
First, let's ignore the fact that it's a duplicate for the purpose of this discussion.
After some very helpful edits from Barak and Jonathan Leffler, the question is now somewhat more presentable, and was reopened. This by no means suggests that the question was unfairly closed or that the original 5 close voters don't know what they're doing.
In the close reason, in all of the close reasons, is this last sentence, or something similar:
For help clarifying this question so that it can be reopened, see the FAQ.
It's important to understand that the purpose of closing a question is to put it into a state of remission so that it doesn't get any answers while the asker, and/or the community, work on reformulating the question so that it meets the guidelines outlined in the FAQ.
Closure is not permanent, and it's not designed to tell anyone to go away or to mistreat them. In this example, the system works! A few well-intentioned passerby's edited the question to clean it up and then cast their reopen votes.
It's not uncommon for the same close voters to vote to close, edit, and then reopen a question, as the end result is generally something that will help not only the asker, but many future visitors for years to come. This is the goal of Stack Overflow. Hope this helps!