Is this the write code to start any service on bootup
public class SmsIntentReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context ctx, Intent intent) {
ctx.startService(new Intent(ctx, SMSSchedulerService.class));
}
}
manifest entry
<receiver android:name="SmsIntentReceiver" android:enabled="true"
android:exported="true">
<intent-filter>
<action
android:name="android.intent.ACTION_BOOT_COMPLETED" />
</intent-filter>
</receiver>
--
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