Service or receiver...  it's not clear from the original post what
they mean by "notification defined in an activity," but generally for
things happening in the background you should use the
NotificationManager API to show this information to the user in the
status bar, so they can deal with it as they want.  You can also use
the Toast class to display a briefly floating message to them that
will not interrupt their current interaction.  We definitely prefer
that you don't display an activity.

On Mar 31, 12:15 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
> It sounds like you want to use a Service.
>
> On Mar 31, 4:10 am, novice <[EMAIL PROTECTED]> wrote:
>
> > Hi ,
> >   I have a problem with notification manager. My notification is
> > defined in an activity. Hence everytime a notification comes, my
> > activity is displayed on the screen and then the notification pops up
> > in the status bar. However, This does not appear good as the user
> > might be doing something already on the screen and my activity should
> > not over ride the screen which was being displayed.
> > I want my notification in the status bar to be displayed without the
> > activity being overridden. Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to