通过从意向preferenceScreen分享链接 [英] Share link via Intent from PreferenceScreen
本文介绍了通过从意向preferenceScreen分享链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用这code显示在Play商店的应用程序:
< preferenceScreen机器人:标题=请评价和评论>
<意向
机器人:行动=android.intent.action.VIEW
机器人:数据=https://play.google.com/store/apps/details?id=com.chovanec.square/>
< / preferenceScreen>
也是我想分享此链接。我该怎么办呢?这不工作:
< preferenceScreen机器人:标题=请评价和评论>
<意向
机器人:行动=android.intent.action.SHARE
机器人:数据=https://play.google.com/store/apps/details?id=com.chovanec.square/>
< / preferenceScreen>
解决方案
试试这个:
的http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
您可以尝试从GitHub下载插件。
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>
解决方案
Try this :
http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
You can try to download plugin from github.
这篇关于通过从意向preferenceScreen分享链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文