Created
August 13, 2021 09:44
-
-
Save davidelp68/85a758c2ac0baa64e2f604b087c591c1 to your computer and use it in GitHub Desktop.
Android Studio - WebView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(isConnected(this)) | |
{ | |
//aggiungere qui eventuale codice da eseguire se il dispositivo è connesso ad internet | |
} | |
else | |
{ | |
//aggiungere qui eventuale codice da eseguire se il dispositivo NON è connesso ad internet | |
Toast.makeText(this, "Non connesso ad internet", Toast.LENGTH_LONG).show() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment