Google Drive GET_CONTENT intent read file

后端 未结 2 2095
醉酒成梦
醉酒成梦 2021-02-05 10:16

I have an app on android that does some file sharing using cloud storages like dropbox. To start sharing I throw android.intent.action.SEND. On the list that is sh

2条回答
  •  不要未来只要你来
    2021-02-05 10:25

    It is sending you uri of content provider which you can use it with ContentResolver,for example such as:

    getContentResolver().query(Uri contentUri, String[] projection, String selection, String[] selectionArgs, String sortOrder);
    

    Edit: For getting real path names use the solution provided below

    Android: Getting a file URI from a content URI?

提交回复
热议问题