I want to have my Android app track its own data usage. I can get the Content-Length of the HTTP response, but I can’t find how to get the size of the request before it’s sent out. All the requests (GET, POST, PUT, etc) are instances of HttpUriRequest.
Thanks
All requests with content should be a subclass of
HttpEntityEnclosingRequestBase.