Share link via Intent from PreferenceScreen

2019-06-06 13:58发布

I am using this code to display app on play store:

    <PreferenceScreen android:title="Please rate and comment" >
        <intent
            android:action="android.intent.action.VIEW"
            android:data="https://play.google.com/store/apps/details?id=com.chovanec.square" />
    </PreferenceScreen>

but also I want to share this link. How can I do it? This do not work:

    <PreferenceScreen android:title="Please rate and comment" >
        <intent
            android:action="android.intent.action.SHARE"
            android:data="https://play.google.com/store/apps/details?id=com.chovanec.square" />
    </PreferenceScreen>

1条回答
孤傲高冷的网名
2楼-- · 2019-06-06 14:38
登录 后发表回答