I\'m attempting to use the new Fabric API that Twitter is offering to let users login to my app. I\'ve followed the tutorial exactly (at least I think I have, maybe I\'ve made s
The Fabric SDK separates functionality into modules called Kits. You must indicate which kits you wish to use via Fabric.with(). This is typically done by extending Android’s Application class.
package com.example.app;
import android.app.Application;
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
TwitterAuthConfig authConfig =
new TwitterAuthConfig("consumerKey",
"consumerSecret");
Fabric.with(this, new Twitter(authConfig));
// Example: multiple kits
// Fabric.with(this, new Twitter(authConfig),
// new Crashlytics());
}
}
More info: https://dev.twitter.com/twitter-kit/android/integrate
See the canonical sample app at: https://github.com/twitterdev/cannonball-android