Problem in Boot Receiver

Put your problem here if it does not fit any of the other categories.

Problem in Boot Receiver

Postby Chitra » Fri Sep 09, 2011 1:42 pm

Hi All,

I have HTC Desire Device. In that we have three Reboot options.
1) Power Off
2) Restart
3) Battery Remove

Here, android.intent.action.BOOT_COMPLETED listening on Restart ad Battery Remove scenarios. In power Off i didn't receive any broadcast listener. :oops:

Below My code
Manifest.xml
Code: Select all
<receiver
   android:name=".receiver.BootReceiver">
   <intent-filter>
      <action
         android:name="android.intent.action.BOOT_COMPLETED" />
   </intent-filter>
</receiver>


BootReceiver.class
Code: Select all
public class BootReceiver extends BroadcastReceiver {
     @Override
        public void onReceive(Context context, Intent intent) {
      Log("~~~~~~~~BootReceiver~~~~~~~");
           }
}


any issues?? :roll:
Thanks,
Chitra
User avatar
Chitra
Master Developer
Master Developer
 
Posts: 213
Joined: Mon Mar 01, 2010 7:59 am
Location: Bangalore

Top

Re: Problem in Boot Receiver

Postby Chitra » Thu Sep 15, 2011 8:26 am

Here "Power Off" is not consider as "Restart". Its just phone in sleeping Mode.
Thanks,
Chitra
User avatar
Chitra
Master Developer
Master Developer
 
Posts: 213
Joined: Mon Mar 01, 2010 7:59 am
Location: Bangalore

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests