In my Android application I want to run a Service
without opening/running my application. For that I have extended BroadcastReciever
class. But this
Remove android:exported="false"
from the <receiver>
. That says you do not want anyone (other than yourself) sending a broadcast to this receiver. As a result, your receiver will be ignored by the system.
Beyond that, you also need an activity and to have run that activity before trying to reboot the device. You may already have that, but I thought that I would mention it for completeness.