2013-10-04 57 views

回答

0

如果您的应用程序在Play商店或已经托管在某个地方,只需制作一个字符串,其中包含您想要通过链接播放商店或您的apk文件发送的消息。

这是代码,这样

enter image description here

Intent sendIntent = new Intent(); 
sendIntent.setAction(Intent.ACTION_SEND); 
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); 
sendIntent.setType("text/plain"); 
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to))); 

更多信息显示了一句:http://developer.android.com/training/sharing/send.html

相关问题