I use Firebase in My Android App for Login & Registering. My Login Page is My Launcher Activity. I want if user is not connected to Internet or WiFi it's Shows the pop-up of No Internet Connection. How to Achieve It ?
Asked
Active
Viewed 1,298 times
1
-
if you are using retrofit in onfialure method put the dailog inside it – EL TEGANI MOHAMED HAMAD GABIR Apr 20 '18 at 15:28
2 Answers
0
You can use this answer : How to catch an Exception if the Internet or Signal is down
Or check result / put try - catch around GoogleSignIn.getClient(this, gso);

Turbolay
- 88
- 1
- 10
-
the answer in the url work even the no internet services – EL TEGANI MOHAMED HAMAD GABIR Apr 20 '18 at 15:38
0
You should look at this question to detect if internet is connected. If no, use AlertDialog (or any other "pop-ups") to show message to user.

BlizzedRu
- 357
- 1
- 3
- 10