Skip to content Skip to sidebar Skip to footer

When The App Starts For The First Time, The Picture Starts To Flicker. After Restarting, This Issue Is Resolved. Why?

When the app starts for the first time, the picture starts to flicker after the login. After restarting, this issue is resolved. Is the error in MainActivity.java or in the Android

Solution 1:

I am exactly sure about the problem you are having. However, I can point out some things which I found useful considering when you are changing your code to solve the problem.

First, let us consider the following message.

No Network Security Config specified, using platform default

You need to setup your network configuration as specified following the guideline here.

Skipped 88 frames! The application may be doing too much work on its main thread

As you have mentioned already, your application is doing too much works in its main thread. And hence, you need to check if there's a possibility of moving anything in a background task so that the main thread is doing only things necessary to populate the initial views.

No setter/field for views found on class com.bbinkconnect.bbinktattoo.model.Story

Please check this class and write setters for views and make the setters public.

After logging in, I think you are loading the HomeFragment which is doing too much work in the main thread. If it is loading images in the main thread from network, consider using Glide.

I hope that helps!

Post a Comment for "When The App Starts For The First Time, The Picture Starts To Flicker. After Restarting, This Issue Is Resolved. Why?"