question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FlowContentObserver Crash on Android O

See original GitHub issue

DBFlow Version: 4.0.3 Issue Kind (Bug, Question, Feature): Bug/Question

Description: Calling registerForContentChanges() on FlowContentObserver causes java.lang.SecurityException: Failed to find provider TimeEntry_Model for user 0; expected to find a valid ContentProvider for this authority

This link explains the change in Android O https://developer.android.com/preview/behavior-changes.html#ccn

In debugging I found that the Uri DBFlow uses for my model is dbflow://%60TimeEntry_Model%60 I’ve tried adding that to the authorities property for my content provider in the android manifest file. I also tried adding TimeEntry_Model. However, I always get the same crash. My question is does this change in Android require something to change in DBFlow, or am I just not specifying the correct authority for my database model?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
agrosnercommented, Dec 17, 2017
3reactions
SjoerdvGestelcommented, Sep 21, 2017

observeOnTableChanges in the RX implementation also don’t seem to work anymore on Oreo, and when removing .modelNotifier(DirectModelNotifier.get()) from the init it goes back to SecurityException with the invalid uri.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors with ContentObserver for Contacts - android
I am a beginner and I'm developing an app where I want to get notified when a new contact is added. I tried...
Read more >
ContentObserver
If a Handler was supplied to the ContentObserver constructor, then a call to the onChange(boolean) method is posted to the handler's message queue....
Read more >
Crash of CSipSimple
Hi, I'm facing an issue when some changes are done in the Settings inside the application or in the help menu and come...
Read more >
copper/FlowContentResolver.kt at trunk · cashapp/copper
A content provider wrapper for reactive queries. Contribute to cashapp/copper development by creating an account on GitHub.
Read more >
GAINDroid: General Automated Incompatibility Notifier for ...
version of the Android operating system installed on a device and the version of the app installed, can lead to several run-time crashes,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found