HOW TO CHECK CONNECTIVITY IN SKETCHWARE
ad
ad
Step 1 : Create An app With Your Choice.
With No components
Step 2 : Create A new Block And Use It On On Create page
Step 3 : Create Boolean Variable Name Connected Boolean Variable And
A String Command
Use This Code
Ad Source Directly
try{
Then Set Connected To
ping -c 1 google.com
And Third Block
connected = (Runtime.getRuntime().exec (command).waitFor() == 0); } catch (Exception e){ showMessage(e.toString());}
Tags:
Sketchware
ITS TOTALLY WRONG... TRY TO FIX
ردحذف