android get full path to my application via share option

106 Views Asked by At

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

1

There are 1 best solutions below

2
On

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

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