ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Follow publication

Various methods to debug HTTP traffic in Android applications

Eugene Tkachenko
ProAndroidDev
Published in
8 min readNov 11, 2018

--

Many developers come across the question: “How to debug outgoing and incoming traffic on Android?”. There are many ways to profile the network, but it would be hard to tell about each of them.

You can find the following tools:

  • Network Inspector
  • Square OkHttp Logging Interceptor
  • OkHttpProfiler
  • Charles
  • Facebook Flipper
  • Proxyman
  • Chucker

in the video:

In this article, we will describe only:

They all have pros and cons, but they can make the profiling clear and straightforward.

Android Profiler

Each year, Google inventors make developers’ lives more efficient and comfortable. They added a great feature to Android Studio 3.0 — “Advanced network Profiling”.

It can show the amount of incoming and outgoing data, the net timings, but its main feature is that you can see the request data directly in Android Studio. Nevertheless, it has some restrictions- it supports only HttpURLConnection and OkHttp, but I don’t think it can be a real problem.

Let’s turn it on!

Go to the Run > Edit Configurations

--

--

Responses (4)

Write a response