0

I'm using Retrofit2 in my app and the problem is when my app is starting if app was unable to access internet, app will crash and terminate. so i've fixed this issues with connection checker, but it's only check if internet or wifi is connected or not.

How can i make my app to check http is access-able or not? i want in my app to show server is down for minutes, and stop closing app and make them use offline to get network access again. Like whatsapp when you're offline, you can open app.

Edit 01 : App Gain access to internet, then he want to get access to php file on server, but it's not able to access it, so i want my app check if php file is exist http://simple.com/file.php then continue and show contents, and if it's not exist show a toast message that server is not available now.

0 Answers0