1

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 ?

Ryan M
  • 18,333
  • 31
  • 67
  • 74

2 Answers2

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
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