jjzjj

Android 应用程序在 "share" Intent 后崩溃

我的应用提供“分享/告诉friend”功能。当按下“分享”按钮时,将调用以下方法来打开可以执行操作的应用程序列表(例如Gmail、Twittroid、Facebook...):publicvoidshare(){IntentshareIntent=newIntent(android.content.Intent.ACTION_SEND);shareIntent.setType("text/plain");shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,getText(R.string.menu_share_subjec