Android按钮从textview共享文本

A.J*_*A.J 1 android textview

我需要分享按钮以这种方式在textView中共享文本,我是java和android的初学者

解释http://i48.tinypic.com/hw0q42.png

Moh*_*eem 12

Button Click

Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT,"Your score and Some extra text");
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "The title");
startActivity(Intent.createChooser(shareIntent, "Share..."));
Run Code Online (Sandbox Code Playgroud)