Hey there,
I haven’t been able to work on this over the last few days, so sorry for the late response!
It seems something within the initialization of fabric is going wrong as I get an illegal state exception. I get this exception for the first time with the init code you’ve provided (except adding the TweetUi kit as well!)
Caused by: java.lang.IllegalStateException: Must Initialize Fabric before using singleton()
at io.fabric.sdk.android.Fabric.singleton(Fabric.java:253)
at io.fabric.sdk.android.Fabric.getKit(Fabric.java:501)
at com.twitter.sdk.android.tweetui.TweetUi.checkInitialized(TweetUi.java:107)
at com.twitter.sdk.android.tweetui.TweetUi.getInstance(TweetUi.java:55)
at com.twitter.sdk.android.tweetui.TweetViewFetchAdapter.setTweetIds(TweetViewFetchAdapter.java:77)
I’ve checked via log when I call the fabric init code and when I call setTweetIds and the order is fine, fabric should be initiated BEFORE I call setTweetIds, based on the logs! The exception only occurs if I use your init snippet, if I use my own
TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET);
Fabric.with(context, new Twitter(authConfig), new TweetUi());
I won’t get any exception but of course it is not working too… (The authConfig is the same in both init versions!)
If I use my own init code snippet then the example you’ve provided (load tweet 20) doesn’t work. I don’t get any log output…
One thing I have in mind is that there may be an context issue? But the context I use to initialize is the same as the one in which I call setTweetIds (or any TweetUi stuff for that matter)
Thanks for your help! Please let me know if you need any more code.