android - How to share content not located on device -


i need share files other apps google-drive did. doing files located on device documentated.

gdrive seems provide content-uris , content downloaded needed while app receives via filestream.

basically need create intent list of content-uris pure virtual unless receiving app starts reading files. advise this?

regards

coyer

create provider-section in abdroidmanifest.xml like:

<provider         android:name=".sharedfileprovider"         android:authorities="com.example.android.sharedfileprovider"         android:granturipermissions="true"         > </provider> 

and create subclass of "contentprovider" , implement abstract methods.

the method "openfile" must overridden provide "parcelfiledescriptor" other app stream that.


Comments