I am using Firebase in My Android App for Login & Register. App Login Page is My Launcher Activity. I want to have a functionality that if user is not connected to Internet or WiFi, it Shows the pop-up of No Internet Connection. How to Achieve It ?
Asked
Active
Viewed 1,135 times
1
random.123
- 45
- 7
-
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
- 78
- 9
-
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
- 340
- 1
- 2
- 10