Jump to content
Sign in to follow this  
TurboMagic

Sharing a file

Recommended Posts

Hello,

 

I've got trouble sharing a file which is local to my app now. Code previously worked before migrating to 10.4.1 and moving the file to the

app local directory to make it Android 10+ compatible.

 

Before showing the code I'd like to know if the following path I see in the Android logcat log is correct or who it would need to look like:

 

04-07 12:10:09.190: I/ActivityTaskManager(1352): START u0 {act=android.intent.action.SEND dat=content://com.mycompany.MyApp.fileprovider/root/data/data/com.mycompany.MyApp/files/1.dat typ=*/* flg=0x1 cmp=android/com.android.internal.app.ResolverActivity} from uid 10269

 

I have the suspicion that this one is a concatenation of two things and thus wrong:

content://com.mycompany.MyApp.fileprovider/root/data/data/com.mycompany.MyApp/files/1.dat

 

When trying to share it with GMail I do get an empty mail composer screen, but no attachment.

 

Cheers

TurboMagic

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×