Home > Software design >  How can I use Splash Screens API with Retrofit?
How can I use Splash Screens API with Retrofit?

Time:04-20

I want to use Splash Screens API in my app and I want to load data from the server in Splash Screen but what can I do if the connection failed? Should go to the next activity or keep the user in Splash Screen with an error message or something else?

What is a good approach to handle this scenario?

CodePudding user response:

If you get data from API then put it to splash screen. But while the connection is lost or User start app as offline then you should have another designed splash screen which start activity with message to "on the internet connection" or any Warning or Error Message.

Or else you can put any button of text view that suggest user to on their internet connection.

  • Related