- Open the demo app
- Turn on and turn off auto brightness mode by the notification bar shortcut
- Check the log output, and make sure the onChange method is called.
- Add a break point in the ContentObserver#Transport#onChange as following.
- Attatch the debuger to the process: org.peace.allinone
- Change the brightness mode once, so the process break in the break point as following.
- At this point, the binder thread hangs there, but the main thread is fine.
- Click the "Unregister Content Observer" button in the demo.
- Check the log output, and see the log "unregister finished" shows.
- Resume the program hanged by debugger, and check the log, the onChange is called still.
-
Notifications
You must be signed in to change notification settings - Fork 0
nanjingdaqi/ContentObserverDemo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published