Intent shareIntent = new Intent(); shareIntent.setAction(Intent.ACTION_SEND); //123代表要分享的值 shareIntent.putExtra(Intent.EXTRA_TEXT, "123"); shareIntent.setType("text/plain"); //设置分享列表 context.startActivity(Intent.createChooser(shareIntent, "分享到"));
Android原生分享
猜你喜欢
转载自blog.csdn.net/weikai_/article/details/79044029
今日推荐
周排行