Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. Are BroadcastReciever and ContentObserver killed If Started From Service?

Are BroadcastReciever and ContentObserver killed If Started From Service?

Scheduled Pinned Locked Moved Android
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Django_Untaken
    wrote on last edited by
    #1

    Hello all. 1- I register a BroadcastReciever in a service dynamically, and then start service. Now if app crashes or I stop service manually, will this also kill the BroadcastReceiver? 2- Same question for ContentObserver. I add ContentObserver for listening changes to addition/updation/deletion of contacts. Will this ContentObserver be also killed if somehow the service is destroyed Thanks for any input.

    L 1 Reply Last reply
    0
    • D Django_Untaken

      Hello all. 1- I register a BroadcastReciever in a service dynamically, and then start service. Now if app crashes or I stop service manually, will this also kill the BroadcastReceiver? 2- Same question for ContentObserver. I add ContentObserver for listening changes to addition/updation/deletion of contacts. Will this ContentObserver be also killed if somehow the service is destroyed Thanks for any input.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You could probably find the answer by running the code in the debugger and killing the service.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups