FileDocCategorySizeDatePackage
OneShotAlarm.javaAPI DocAndroid 1.5 API1354Wed May 06 22:41:08 BST 2009com.example.android.apis.app

OneShotAlarm

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

When the alarm goes off, we show a Toast, a quick message.

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

        Toast.makeText(context, R.string.one_shot_received, Toast.LENGTH_SHORT).show();