Re: [android-developers] Re: App closed but notification is visible

2011-09-23 Thread ashok chakravarthy
register receiver in Manifest file and given android:enabled=true

On Fri, Sep 23, 2011 at 1:12 AM, b_t bartata...@gmail.com wrote:

 Ok, so it is normal that when the system stops my app the notification
 is still visible
 but when I force close it then it disappears.

 Then my only problem is that my app isn't notified anymore about
 battery events.
 Maybe what I am doing is wrong:

 I register broadcast receivers in the onCreate method of my
 Application.
 And my app receive these events well for a long time, until my
 application stops somewhere.

 I don't know how to solve this problem: the updating (receiving event)
 should not be stopped until
 the user force closes my app.

 Is it not good to register receivers in the onCreate of my Application
 class? Should I use a
 service for it? A service is mandatory to receive these event
 always?

 Thanks,
 Tamás

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

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

[android-developers] Re: App closed but notification is visible

2011-09-22 Thread b_t
Ok, so it is normal that when the system stops my app the notification
is still visible
but when I force close it then it disappears.

Then my only problem is that my app isn't notified anymore about
battery events.
Maybe what I am doing is wrong:

I register broadcast receivers in the onCreate method of my
Application.
And my app receive these events well for a long time, until my
application stops somewhere.

I don't know how to solve this problem: the updating (receiving event)
should not be stopped until
the user force closes my app.

Is it not good to register receivers in the onCreate of my Application
class? Should I use a
service for it? A service is mandatory to receive these event
always?

Thanks,
Tamás

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