Sign [Q] ANDROID: Turn On smartphone from code

Good morning everyone ...

Seeking help from the community ... as always ... so forgive the inconvenience, especially if you ask has already been answered somewhere, but to this day have not found that answer ...

You see, I'm developing (or I try) A clock android application. The issue is that it brings my own terminal (bq Aquaris) does not satisfy my needs and I would schedule one in my size. In principle, make some time to sound the music for a while X and Y to be repeated when stopped after minutes pass Z, I is not complicated following other manuals and instructions found in the web.

My problem is that if I turn off the phone, my application stops running, and therefore as a wake-up is totally useless.

Hence my question ... How I can make my application running persists (or other system) if the phone is turned off and be able to restart it to sound the alarm?

I do not speak out of standby, if not physically turn on the terminal ... come on, what any alarm installed on the phone.

Any suggestions are welcome.

Thank you very much in advance to everyone s.

a greeting