On the first load after application start, method invocation TweetUtils.loadTweet(...) cause freez of main thread for 4-5 seconds. When I enter to screen with TweetView second time it loads without any freez.
here is what I have noticed in logs during freez:
Twitter: Could not call getAdvertisingIdInfo on com.google.android.gms.ads.identifier.AdvertisingIdClient
Twitter: Could not call isLimitAdTrackingEnabled on com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
Twitter: AdvertisingInfo not present
hello, In my applizacion I want to display TweetView in RecyclerView item. I have added dependencies for app module gradle file:
compile 'com.twitter.sdk.android:twitter-core:3.2.0' compile 'com.twitter.sdk.android:tweet-ui:3.2.0'
I'm initialising Twitter in App onCreate() method:
val config = TwitterConfig.Builder(this) .logger(DefaultLogger(Log.DEBUG)) .twitterAuthConfig(TwitterAuthConfig(...)) .debug(true) .build() Twitter.initialize(config)
And here is how I load tweet:
`
`
It is called inside onBindViewHolder(...) method.
On the first load after application start, method invocation TweetUtils.loadTweet(...) cause freez of main thread for 4-5 seconds. When I enter to screen with TweetView second time it loads without any freez.
here is what I have noticed in logs during freez:
There is someting that I have missed?
Tested on Android 7.0