In this tip i am going to explain you how to post tweet on twitter from your android application. Copy bellow code and paste in your android app where you want to send tweet

 String tweetUrl = String.format("https://twitter.com/intent/tweet?text=%s&url=%s",
                urlEncode("My Trinitytuts tweet"),
                urlEncode("https://trinitytuts.com"));
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(tweetUrl));

       // arrow down to official Twitter app, if available:
        List<ResolveInfo> matches = getPackageManager().queryIntentActivities(intent, 0);
        for (ResolveInfo info : matches) {
            if (info.activityInfo.packageName.toLowerCase().startsWith("com.twitter")) {
                intent.setPackage(info.activityInfo.packageName);
            }
        }

        startActivity(intent);

Done 🙂