Hi,
  You could extend the BroadcastReceiver to detect the system  intent
action 'android.intent.action.BOOT_COMPLETED'  ,and in Mainfest
file,you should define your receiver like
   <receiver android:name="your reciever name"
                        android:label="">
                        <intent-filter>
                                <action
                                        
android:name="android.intent.action.BOOT_COMPLETED" />
                                <category
                                        
android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                </receiver>

Best Regards
 Ernest
On 11月4日, 上午9时01分, moazzamk <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am writing an application which needs to check a data source
> periodically and set alarm on the phone. If the phone is turned off,
> the alarmManager clears the alarms set. Is there any way I can start
> my application as soon as the phone is turned on?
>
> Thanks,
>
> Moazzam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to