>
> On Jan 29, 3:49 am, Chirayu Dalwadi <[email protected]> wrote:
> > I dont know how to use NotifyWithText. I need a code, that will help in
> > implementing it
>
>
Y'know, I'd never heard of it before, either...took all of a minute to find
the info, though.

To replicate my research and get a lot more information, OP, try
http://tinyurl.com/yc3sbm4

The easiest example is in
./docs/reference/android/app/NotificationManager.html

 public void notifyWithText(int id,
CharSequence<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/java/lang/CharSequence.html>text,
int viewDuration,
Notification<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/Notification.html>notification)
Put up a notification, including a message that is shown briefly to the
user.
Parameters  id A identifier for this notification unique within your
application.  text The message to show. It is a CharSequence passed into a
TextView<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/widget/TextView.html>,
so it can be formatted text.  viewDuration Pass either
LENGTH_SHORT<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/NotificationManager.html#LENGTH_SHORT>or
LENGTH_LONG<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/NotificationManager.html#LENGTH_LONG>for
this parameter.  notification
A 
Notification<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/Notification.html>object
describing how to notify the user, other than the view you're
providing. If you pass null, there will be no persistent notification and no
flashing, vibration, etc.
   public void notifyWithText(int id,
CharSequence<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/java/lang/CharSequence.html>text,
int viewDuration,
Notification<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/Notification.html>notification,
int gravity, float horizontalMargin, float verticalMargin)
Put up a notification, including a message that is shown briefly to the user
at the specified location on the screen.
Parameters  id A identifier for this notification unique within your
application.  text The message to show. It is a CharSequence passed into a
TextView<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/widget/TextView.html>,
so it can be formatted text.  viewDuration Pass either
LENGTH_SHORT<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/NotificationManager.html#LENGTH_SHORT>or
LENGTH_LONG<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/NotificationManager.html#LENGTH_LONG>for
this parameter.  notification
A 
Notification<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/Notification.html>object
describing how to notify the user, other than the view you're
providing. If you pass null, there will be no persistent notification and no
flashing, vibration, etc.  gravity The location at which the notification
should appear on the screen  horizontalMargin The horizontal margin, in
percentage of the container width, between the container's edges and the
notification  verticalMargin The vertical margin, in percentage of the
container height, between the container's edges and the notification
   public void notifyWithText(int id,
CharSequence<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/java/lang/CharSequence.html>text,
int viewDuration,
Notification<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/Notification.html>notification,
int gravity)
Put up a notification, including a message that is shown briefly to the user
at the specified location on the screen.
Parameters  id A identifier for this notification unique within your
application.  text The message to show. It is a CharSequence passed into a
TextView<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/widget/TextView.html>,
so it can be formatted text.  viewDuration Pass either
LENGTH_SHORT<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/NotificationManager.html#LENGTH_SHORT>or
LENGTH_LONG<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/NotificationManager.html#LENGTH_LONG>for
this parameter.  notification
A 
Notification<http://lampwww.epfl.ch/%7Elinuxsoft/android/android-m3-rc20a/docs/reference/android/app/Notification.html>object
describing how to notify the user, other than the view you're
providing. If you pass null, there will be no persistent notification and no
flashing, vibration, etc.  gravity The location at which the notification
should appear on the screen

Now, given all that, where's your usage problem?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to