Android 安卓应用程序中发送的意向动作标题

Android 安卓应用程序中发送的意向动作标题,android,android-intent,Android,Android Intent,当我使用ACTION\u SEND时,我将获得默认的活动名称。如何将标题从活动名称更改为要选择的标题 到目前为止,我们已经使用了以下方法 Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.setType("text/plain"); sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My subject"

当我使用
ACTION\u SEND
时,我将获得默认的活动名称。如何将标题从活动名称更改为要选择的标题

到目前为止,我们已经使用了以下方法

Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My subject");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, finalUrl);
startActivity(Intent.createChooser(sharingIntent, getResources().getString(R.string.app_name)));

您可以使用以下命令设置标题

Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My subject");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, finalUrl);
startActivity(Intent.createChooser(sharingIntent, getResources().getString(R.string.app_name)));

startActivity(Intent.createChooser(共享内容,“您的标题”))

你想做什么请解释我的意思告诉我你的完整要求我想把url发送到其他应用。为此,我使用了意向行动。但在打开的框中,我看到的标题是活动名称。我想将标题更改为“通过发送URL”。表示您想共享应用程序的名称。不清楚您在哪里看到活动名称。将其设为默认活动名称。当我使用此操作时,我没有看到这样的名称。我们鼓励您发布完整的意图代码。您不是在为google play store编程吧!?我想你正在编写自己的应用程序。所以,请只谈论你在自己的应用程序中看到的内容。请直截了当地回答我的问题。