Android 将listitems中的数据解析到facebook的textview以便共享
如何将数据从listitems解析到facebook的textview。 这是我的代码,但它不能工作,它只解析数据到gmail,电子邮件文本视图 kAndroid 将listitems中的数据解析到facebook的textview以便共享,android,Android,如何将数据从listitems解析到facebook的textview。 这是我的代码,但它不能工作,它只解析数据到gmail,电子邮件文本视图 k String text = (String)parent.getItemAtPosition(position); Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType
String text = (String)parent.getItemAtPosition(position);
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, text);
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject");
startActivity(Intent.createChooser(sharingIntent, "Share text"));