Sam
Sam

Reputation: 433

How can I monitor and get http traffic in an android application?

I am wondering is there a way to intercept/monitor http traffic in android. One way which I could think of is to install custom module in android's browser source code such that all traffic goes through it.

Please steer me to the pertinent choice. Else how can we implement custom module, any guidelines?

Upvotes: 7

Views: 3874

Answers (1)

Reno
Reno

Reputation: 33782

If you know the browsers PID, you can use getUidRxBytes() to get TrafficStats

Upvotes: 3

Related Questions