Skip to content

nanjingdaqi/ContentObserverDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduce Steps

  1. Open the demo app
  2. Turn on and turn off auto brightness mode by the notification bar shortcut
  3. Check the log output, and make sure the onChange method is called.
  4. Add a break point in the ContentObserver#Transport#onChange as following. Break point
  5. Attatch the debuger to the process: org.peace.allinone
  6. Change the brightness mode once, so the process break in the break point as following. Break
  7. At this point, the binder thread hangs there, but the main thread is fine.
  8. Click the "Unregister Content Observer" button in the demo.
  9. Check the log output, and see the log "unregister finished" shows.
  10. Resume the program hanged by debugger, and check the log, the onChange is called still.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages