> > Yes. It is a separate class. Registered in the manifest. See, it work when >> the app is closed. But when you close the app from the Recent apps (as in >> there is no instance of the app running), then the broadcast receiver stops >> receiving broadcasts. > > On Wednesday, March 2, 2016 at 8:32:02 PM UTC+5:30, MagouyaWare wrote: > > How are you creating your broadcast receiver? Is it a separate class and > defined in the manifest? Or is it created and registered in an activity? > > On Wed, Mar 2, 2016 at 2:49 AM Narendran Anil <[email protected] > <javascript:>> wrote: > >> Hello, >> >> I am working on an app that will show a pop up on call end. It works fine >> with a broadcast receiver but if the user force closes the app, the >> broadcast receiver stop s working (as it should) and herein lies my >> problem. My app's main functionality is to give the user a screen after the >> call ends so he can select an action he requires. This pop up appears only >> for certain numbers that he chooses so it is not a hassle in any way. >> >> I know that TrueCaller pop up will appear on receiving an incoming call >> even if the app is forced stopped. How do they achieve this? Do they use a >> special Broadcast Receiver? >> Can I make my app work by using some other method? >> >> PS - I am here because of this article ( >> http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/) >> >> led me here. >> >> I hope you guys help me out. Thank you. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Android Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/android-developers. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/android-developers/14a64231-8141-48cf-a1c0-8f521eec305c%40googlegroups.com >> >> <https://groups.google.com/d/msgid/android-developers/14a64231-8141-48cf-a1c0-8f521eec305c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/d820939c-1baa-45ef-b8ce-b502a43606e6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

