Fabric is Twitter's  mobile application development platform. For more about Fabric and install on Android Studio Please refer below link:- 
https://get.fabric.io/android
After Install Fabric. Login using Twitter account and create  Twitter app and Embed initialization code.
Replace initialization in activity with
 
     TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET);
        Fabric.with(this, new TwitterCore(authConfig),new TweetComposer());
 
* On Twitter's  Tweet Button write down the below code. :
 
   TweetComposer.Builder builder = new TweetComposer.Builder(this)
                .text("just setting up my Fabric.");
        builder.show();
 
 
Happy Coding ;)
                       
                    
0 Comment(s)