我通过以下代码发送HTML文件:
shareBtn.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/html");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, title[1]);
sharingIntent.putExtra(android.content.Intent.EXTRA_UID, title[1]);
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "<!DOCTYPE html><html><head><title>"+Html.fromHtml(title[1])+"</title></head><body>"+Html.fromHtml(introText[1])+"</body></html>");
startActivity(Intent.createChooser(sharingIntent, "Share via"));
}
});
现在我想知道是否有办法改变通过蓝牙发送的HTML文件名???
非常感谢