kivy android share image

前端 未结 1 1218
[愿得一人]
[愿得一人] 2021-01-05 09:47

I want to create share button that will use android ACTION_SEND intent for sharing image. It\'s my code:

from kivy.setupconfig import USE_SDL2


def share(pa         


        
相关标签:
1条回答
  • 2021-01-05 10:21

    I found solution. You must cast uri to parcelable and then pass it to intent:

    parcelable = cast('android.os.Parcelable', uri)
    shareIntent.putExtra(Intent.EXTRA_STREAM, parcelable)
    
    0 讨论(0)
提交回复
热议问题