通过Twitter应用程序从URL共享图像 - Android Not Working

时间:2018-01-03 06:52:34

标签: android

            case R.id.txtTweetOnTwitter:
            dialog.dismiss();

            if (Utils.checkAppInstalled(getActivity(), "com.twitter.android")) {

                Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
               shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
                shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(entryRegistrationAdapter.getList().get(lastPos).entriesImageNameURL));
                shareIntent.setType("image/*");
                shareIntent.setPackage("com.twitter.android");
                startActivity(shareIntent);

enter image description here

我将其作为Uri.parse()传递,但它不起作用。

0 个答案:

没有答案
相关问题