Hello Everyone

I'm having a small issue and needed some advice. I have an alarm set
to trigger at a specific date and time. I know how to configure it to
display a toast after the alarm is triggered but I do not know how to
trigger a simple notification. Here is my sample code that displays
the toast after the alarm goes off, any help would be appreciated:

public class AlarmTriggered extends BroadcastReceiver{
        Toast mToast;
        NotificationManager nm;
        private static final int HELLOID = 1;
    @Override
    public void onReceive(Context context, Intent intent)
    {
        mToast = Toast.makeText(context, "Alarm Works",
Toast.LENGTH_LONG);
        mToast.show();

    }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to