There is a demo app, for which this is the documentation:
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/StatusBarNotifications.html



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Oct 4, 9:00 am, Magic-H <har...@alexandersoftware.net> wrote:
> 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