The INTERNET Permission
In order to use any kind of network operation we need INTERNET permission which we can get by including Internet permission in
AndroidManifest.xml
file.
Although after allowing internet it prevents users from making cleartext http requests. But we can enforce app to make cleartext http traffic if we really need to using (inside
AndroidManifest.xml
) :-
To send an HTTP request :-
If it doesn’t work and we run into
NetworkOnMainThreadException
use this :-
Packet logging with tcpdump is defined in :-
Last updated
Was this helpful?