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

krihsna

Member
Oct 1, 2016
6
0
0
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.
 
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.
 
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.
 

Trending Posts

Members online

Forum statistics

Threads
959,558
Messages
6,979,775
Members
3,164,282
Latest member
Sandryn97