Activity starter problem

Hello dear, i want to share a dng image file directly in specific app via activity starter. I try with many ways but i can’t. But i have java code which is working with android studio, but how can i implement this on kodular activity starter?? Java code is given below. Please suggest. Thanks in advanced.

java code:

public void importPreset() {
        Log.d(this.TAG, "importPreset: ");
        File filesDir = this.context.getFilesDir();
        Uri b2 = FileProvider.a(this.context, "com.saisab.provider").b(new File(filesDir, 
        this.preset.getName() + ".dng"));
        Intent intent = new Intent("android.intent.action.SEND");
        intent.putExtra("android.intent.extra.STREAM", b2);
        intent.setPackage("com.adobe.lrmobile");
        intent.setType("image/dng");

if you know java , then you can create a extension for yourself using your java code

Why don’t you use Sharing component?:thinking:

I’m not expert in java, I just get this code from a app source code.

Unfortunately, this component cannot limit the application choice.

1 Like

What’s dng??

It is Digital Negative format introduced by Adobe.

1 Like