Share image to another app using Intent in android

后端 未结 2 2027
春和景丽
春和景丽 2020-12-21 21:47

I want to share image and text to another app but i\'m getting file format not supported when i\'m using this code please help...

 Uri picUri = Uri.parse(\"h         


        
2条回答
  •  心在旅途
    2020-12-21 21:58

    The documentation for EXTRA_STREAM says that the Uri needs to have a content scheme. file usually also works, at least on Android 6.0 and older. Few apps will expect an http URL.

提交回复
热议问题