Android getUriForFile IllegalArgumentException

后端 未结 3 1691
天涯浪人
天涯浪人 2021-01-16 11:02

My code for sending a file with an Intent doesn\'t work with all file sources and I could not find the solution yet:

My app is registered for opening files, so when

3条回答
  •  不知归路
    2021-01-16 12:00

    In the referenced File:

    
    
            
    
    

    use files-path instead of external-path

    or

    use Environment.getExternalStorageDirectory()

提交回复
热议问题