0

In my application I want to use the Local Notification. I don't know is there any local notification available in Android or not.

If yes then please give me any sample example to implement it.

Thanks.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Shreyash Mahajan
  • 23,386
  • 35
  • 116
  • 188

3 Answers3

4

Android doesn't really have a distinction between remote (push in Apple terms) and local notifications. You don't get a box pop up or any UI at all for free with Android's C2DM.

I think you just want to look at:

For doing something at a certain time you want to look at:

mattjgalloway
  • 34,792
  • 12
  • 100
  • 110
  • Ok Thanks for the Answer. Let me check it. – Shreyash Mahajan Dec 22 '11 at 04:09
  • I want the notification like that if i have set the notofication in to the application for perticular time and date then the device should display the message at that time even if the application is close. The message should be of any form or like the dialog. Is it possible? – Shreyash Mahajan Dec 22 '11 at 04:19
  • For the "at a certain time" stuff, look at http://developer.android.com/reference/android/app/AlarmManager.html – mattjgalloway Dec 29 '11 at 12:30
1

there is a sample of new Notification with PendingIntent for call Activity when the user click on.

PendingIntent of Notification don't call my Activity second time

Community
  • 1
  • 1
fingerup
  • 4,828
  • 2
  • 16
  • 22
0

yes, there are local notifications in android. To understand how to work with them see this answer - How schedule local notifications Android?

Community
  • 1
  • 1
Ajit Singh
  • 2,436
  • 23
  • 27