I am using broadcast receivers in my application. I have registered receivers in manifest and activity file. It calls perfectly. Broadcast receiver will be called whenever user clicks power button.
for that I have used
In onreceive of broadcast listener I am starting an activity
Now this activity is called also. But I can not see the view of an activity. Activity runs in background.