Debugging tools
When in the debug phase, from the networking point of view, we need flexible tools let us test our application in different connectivity conditions, checking what we are transmitting over the network, how we are doing it, how we handle and cache responses, and if the communications are safe and secure.
In the following sections we want to discuss the new adb
command introduced to support the changes inside the new Android N SDK. And, then, besides the Android tools we discussed previously in Chapter 2, Efficient Debugging, such as the Network Statistics tool and the TrafficStats
API, we want to briefly introduce a couple of helpful tools. These will let us analyze the networking performance of the application and intercept the network communication to be analyzed in detail, to improve it by using the patterns we discussed earlier in this chapter.
Android N Networking ADB tool
As discussed in the previous pages, Android N introduced new restrictions on data network background...