FileDocCategorySizeDatePackage
BootCompletedReceiver.javaAPI DocAndroid 1.5 API1451Wed May 06 22:42:48 BST 2009com.android.stk

BootCompletedReceiver

public class BootCompletedReceiver extends android.content.BroadcastReceiver
Boot completed receiver. used to reset the app install state every time the device boots.

Fields Summary
Constructors Summary
Methods Summary
public voidonReceive(android.content.Context context, android.content.Intent intent)

        String action = intent.getAction();

        // make sure the app icon is removed every time the device boots.
        if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
            Bundle args = new Bundle();
            args.putInt(StkAppService.OPCODE, StkAppService.OP_BOOT_COMPLETED);
            context.startService(new Intent(context, StkAppService.class)
                    .putExtras(args));
        }