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

RepeatingAlarm

public class RepeatingAlarm 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.repeating_received,
                  context.getText(R.string.repeating_received),
                  NotificationManager.LENGTH_SHORT,
                  null);