简体   繁体   中英

android get full path to my application via share option

I am writing an application where my application should show as option when user shares a file ( any type image or normal text file or pdf or with with no extension)

I know it for file like image by adding image/* as data in manifest file and i can able to handle image as URI.

But I needed it for any file type.

Another example is, I open file browser and select a file (can be any type) then in share option my application should appear to handle.

How can I modify my application for this case

You need to add mimeTypes for all file types you wish to handle.

More information at: http://developer.android.com/training/sharing/receive.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM