Execute shell commands and get output in a TextView
I found the above solution while searching for answers but this just outputs the result of the ping command for me. My idea is similar to when you are executing PING on command prompt/terminal where you get a line by line output of statistics like latency, etc.