Share Image File from cache directory Via Intent~android

后端 未结 3 775
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 01:27

I am trying to share image file in cache directory, i have the complete path, but not able to send the file in attachments, the code is

File shareImage=Utils         


        
3条回答
  •  情深已故
    2020-12-03 02:10

    what the reason for this?

    As noted, other apps do not have access to your app's internal storage.

    none of them are able to resolve the issue

    Feel free to open a fresh StackOverflow question, where you explain, completely and precisely what specific solutions you have tried and what specific problems you have encountered.

    but that does not seems to be working as per SO post!!!

    Feel free to open a fresh StackOverflow question, where you explain, completely and precisely what "that does not seems to be working" means.

    Or, use FileProvider, which offers this capability with no code required beyond an entry for it in your manifest.

    Or, store your image on external storage, such as getExternalCacheDir().

提交回复
热议问题