This is making more sense. I’m not really sure how to use FileContentProvider though.
My image is named share4.png and is located in the resource folder alongside main.lua. I am trying to share it to another application.
This:
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(FileContentProvider.createContentUriForFile(fParentActivity,“share4.png”)));
fParentActivity.startActivity(shareIntent);
gets this error:
cannot find symbol
[javac] symbol: variable FileContentProvider
[javac] shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(FileContentProvider.createContentUriForFile(fParentActivity,“share4.png”)));