反击后分享Intent销毁应用程序

时间:2014-05-02 07:25:15

标签: android android-intent share

我的应用程序中有一个共享功能。我是这样做的:

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent,"Share"));

它运作得很好。但是,如果我打开它并且不选择某个应用程序来共享但只是使用反向关闭选择器对话框,我就不能在我的应用程序中执行任何操作了。我点击的每个按钮都无效。首先,如果我再次打开选择器,选择一些应用程序进行共享,该应用程序将再次运行。 有人知道为什么会这样吗? 感谢您的帮助:)

0 个答案:

没有答案