Pascal Welsch
Pascal Welsch
I never tested it with Robolectric but it doesn't look like a big problem. You have to make sure that `context.getString(R.string.tray__authority)` ([here](https://github.com/grandcentrix/tray/blob/master/library/src/main/java/net/grandcentrix/tray/provider/TrayContract.java#L124) `context` is the Application context) returns the correct...
I haven't had the time to look deeper into this. But I suggest to mock the `Storage` of `Tray`. Instead of `TrayPreference` you should work with [`AbstractTrayPreference`](https://github.com/grandcentrix/tray/blob/806f53e1370709a33191b04a0b40ea86ca1d2eff/library/src/main/java/net/grandcentrix/tray/TrayPreferences.java#L43) and inject a...
How about not deleting the db?
I see the benefit of saving Lists or Sets. But I think saving complex "json" structures is out of the scope for this library. You could easily use gson to...
Does it happen only for release builds? how often does it happen? Always? When are you querying the provider? Right after the app has started?
Please provide more information. Which tray version are you using? What was the device this is happening and which Android version? Are you calling it in `Application#onCreate()`?
I have in mind that I've seen crashes there because the `ContentProvider` isn't ready yet or the `Application` is too busy on slow phones causing such problems. But without more...
Are you accessing Tray in `Application#onCreate`?
The `ContentProvider` is an implementation detail and not accessible from the outside. Write your own `ContentProvider` to exchange data between your apps.
We don't have a rx wrapper. Feel free to add it to the project. I'm awaiting your PR