lennon-wechat

亲给个好评吧!!

       Uri uri = Uri.parse("market://details?id=" + getPackageName());
                Intent intent = new Intent(Intent.ACTION_VIEW, uri);
                intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                startActivity(intent);

然后就有了这段代码。。。

 

分享手机中所有安装分享的平台

Intent sendIntent = new Intent();  
sendIntent.setAction(Intent.ACTION_SEND);  
sendIntent.setType("text/*");  
sendIntent.putExtra(Intent.EXTRA_TEXT, contentEditText.getText().toString());  
startActivity(sendIntent); 

 

分类:

技术点:

相关文章:

  • 2021-12-04
  • 2021-12-10
  • 2021-09-20
  • 2021-11-19
  • 2021-04-26
  • 2021-09-20
  • 2021-09-20
  • 2021-12-22
猜你喜欢
  • 2021-08-15
  • 2021-12-09
  • 2021-08-07
  • 2021-05-29
  • 2021-08-07
  • 2021-11-14
  • 2021-09-03
相关资源
相似解决方案