FileDocCategorySizeDatePackage
OneShotAlarm.javaAPI DocGoogle Android v1.5 Example1500Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.app

OneShotAlarm

public class OneShotAlarm extends android.content.IntentReceiver
This is an example of implement an {@link IntentReceiver} for an alarm that should occur once.

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

        NotificationManager nm = (NotificationManager)
            context.getSystemService(Context.NOTIFICATION_SERVICE);
        nm.notifyWithText(R.string.one_shot_received,
                  context.getText(R.string.one_shot_received),
                  NotificationManager.LENGTH_SHORT,
                  null);