Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCan not extend android.content.ContentProvider #1547
Comments
|
@mrfuxi, thanks for reporting this issue. Implementing content providers in javascript is unfortunately not supported at the moment. Content providers are instantiated very early in the application lifecycle (prior to creating the context) and the NativeScript runtime is not yet initialized at this stage. |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns infoin your project folder or by inspecting thepackage.jsonof the project):Describe the bug
When starting app that has
android.content.ContentProvideras in the simplest way I could find Android explodes withRuntimeExceptionas below:To Reproduce
Extend
android.content.ContentProviderwith any content and try to start the app.Expected behavior
Sample project
Demo project based on "Plain JavaScript -Hello World" template
Additional context
I managed to have it working using pure Android without problems and I copied the fragments of
AndroidManifest.xmlfrom it.