Skip to content Skip to sidebar Skip to footer

Tweets Are Not Posted Using Fabric

I’m trying to post tweets form my android application. After the user authorize my application to use its account, normally the tweet have to be posted automatically but in my ca

Solution 1:

Try checking this its a lil bit old code

 try {


            Intent intent = new Intent();
            intent.setAction(Intent.ACTION_SEND);
            intent.putExtra(Intent.EXTRA_SUBJECT, "");
            intent.putExtra(Intent.EXTRA_TEXT, "");
            intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
            intent.setType("text/plain");
            intent.setType("image/jpeg");
            intent.setPackage("com.twitter.android");
            startActivity(intent);
        } catch (Exception e) {
            commonAction.showToast("No twitter App Installed in device");
            Log.v("VM", "Exception while sending image on" + "com.twitter.android.PostActivity" + " " + e.getMessage());
        }

Post a Comment for "Tweets Are Not Posted Using Fabric"