3

I am trying to analyze my app's network activity such as number of connections and total size of response and request per connection. However, it won't register in my Profiler's Network section.

I am using Java sockets as explained in how to create Socket connection in Android?.

How do you show it in the tool?

user1506104
  • 6,554
  • 4
  • 71
  • 89

1 Answers1

3

Apparently, the Android Studio's (Network) Profiler only captures connections made thru HttpURLConnection and OkHttp classes. This won't work if you are using Socket from the Java API.

Source: https://developer.android.com/studio/profile/network-profiler

user1506104
  • 6,554
  • 4
  • 71
  • 89