using tcpdump capture the network state . implement in Android.
the RTT is assosiate with [happen time] [tcp/ip flow] [rtt].
and if want to see it , you may modify it in MainActivity.java in mainGather() method,
and uncomment the system.out.println().