how to collect or best way 2g/3g data connectivity information

krihsna

Member
Oct 1, 2016
6
0
0
Visit site
right now i ping my mobile operator DNS server before sending an e-mail or if i have to do anything urgent. i am using terminal emulator [ 1.0.70 ].can i run script using terminal emulator on my android device to check periodically whether my data connection is up or down & save it in text file ?

if i can use script, where can I download it ? i just want to check for every hour for a few days.

is there any app to check connectivity periodically, if possible ability to save result in text file.

please provide suggestion or direction.
 

Rukbat

Retired Moderator
Feb 12, 2012
44,529
26
0
Visit site
The text file is trivial:

ping <name of server to ping> > <name of text file>

Writing the program to read the text file and figure out whether you're connected or not is the challenge.
 

krihsna

Member
Oct 1, 2016
6
0
0
Visit site
Writing the program to read the text file and figure out whether you're connected or not is the challenge.

i am at loss about how to write a program. can you please provide a link where i can find code. i will see & modify the code.

thank you.
 

Forum statistics

Threads
943,007
Messages
6,916,856
Members
3,158,771
Latest member
planeboy