Integrating Twitter Sdk With Android App In Android Studio?
I want to share posts on twitter from my android application, For this i need to integrate the twitter sdk with my android application in android studio. The examples that i am get
Solution 1:
There's a plugin for android studio to integrate twitter that is Fabric.
Step 1- Go to dev.twitter.com
Step 2- Download FabricAndroidStudioPlugin.
Step 3- After downloading, follow this link to add this plugin in android studio.
To add this plugin in android studio
Go to File
->> Settings
->> Click on Plugins
-->> then click on Install plugin from disk
button -->> then select that FabricAndroidStudioPlugin zip file and ok..!! An icon of fabric will be there on toolbar. Then click that icon and follow the steps. fabric will now do everything automatically.
Solution 2:
It helps me for Twitter integration in android application.
This is offical Twitter Kit for Android(Twitter SDK)
check this link https://dev.twitter.com/twitterkit/android/installation
dependencies {
// Include all the Twitter APIs
compile 'com.twitter.sdk.android:twitter:3.0.0'// (Optional) Monetize using mopub
compile 'com.twitter.sdk.android:twitter-mopub:3.0.0'
}
repositories {
jcenter()
}
publicclassCustomApplication {
publicvoidonCreate() {
TwitterConfig config = new TwitterConfig.Builder(this)
.logger(new DefaultLogger(Log.DEBUG))
.twitterAuthConfig(new TwitterAuthConfig("CONSUMER_KEY", "CONSUMER_SECRET"))
.debug(true)
.build();
Twitter.initialize(config);
}
}
Post a Comment for "Integrating Twitter Sdk With Android App In Android Studio?"