Skip to main content

Questions tagged [android-networking]

The Android networking subsystem. Use this tag for the Android-specific network programming only.

android-networking
0 votes
0 answers
10 views

Why does OutputStream.write wait for so long to throw java.net.SocketException: Broken pipe?

Socket mySocket = new Socket(); mySocket.setSoTimeout(8000); mySocket.setReceiveBufferSize(iReceiveBufferSize); mySocket.connect(new InetSocketAddress(InetAddress.getByName(uri.getHost()), iPort), ...
Hong's user avatar
  • 18.3k
1 vote
0 answers
63 views

How to connect ipv6 through DHCP via WIFI android?

I need to connect ipv6 through WIFI. But below code works without turning on WIFI. Let me know how to get ipv6 by turning on WIFI. I am bit confused and can you please guide me. public String ...
Shadow's user avatar
  • 6,914
2 votes
1 answer
498 views

frida-server being targeted by port scan?

Whenever I install and start frida-server, I have a banking app that behaves weirdly. After some research, I discovered some app may be able to do a port scan on the device running frida-server at the ...
dazzleworth's user avatar
0 votes
1 answer
69 views

Track application id or package name using DatagramPacket in android

I open a socket and track network calls in the Android application. Currently, I can view the hostname and IP address of the coming network traffic using the DatagramPacket class. Is it possible to ...
FaaiqKhan's user avatar
  • 143
1 vote
1 answer
83 views

What is HttpEngine in android.net.http

I noticed there are new class in the android.net.http package. Some of them are added in API 34, also in the S Extensions 7. I encountered the HttpEngine class in the package, the summary says that ...
sayang_android's user avatar
0 votes
0 answers
89 views

intercepting grpc calls for Android app is not working

I have an android application which uses grpc to fetch configs and home page content(live data) and REST for deeper engagement views. My requirements get all network traffic(sent/received) of my ...
Rishi's user avatar
  • 31
4 votes
0 answers
2k views

android.net.ConnectivityManager$TooManyRequestsException

Note: Don't mark this as duplicate as this existing answer does not solved my query android.net.ConnectivityManager$TooManyRequestsException in android while network call Update Wed 28 Jun : Found ...
amodkanthe's user avatar
  • 4,512
0 votes
0 answers
240 views

How can I find which http (not https) requests my Android app is making and know the domain they are of the request?

My app is required to have the cleartextTrafficPermitted="true" attribute, which is a problem because some third party libraries think that means they can use http instead of https. I've ...
casolorz's user avatar
  • 9,314
1 vote
0 answers
30 views

Untitled download occure when I try to download from a local server

I run an android app that let me download file from an URL, I used download manager to download the files, it works just fine when I use a public URL server from the internet but when I use my local ...
BOUCHEFIRAT Loukmane's user avatar
-1 votes
2 answers
361 views

Android java widget call http error android.os.NetworkOnMainThreadException [duplicate]

I am having the following error: FATAL EXCEPTION: main Process: com.name.app, PID: 21535 java.lang.RuntimeException: Unable to start receiver com.name.app.MyWidget: android.os....
Paul's user avatar
  • 4,302
2 votes
0 answers
195 views

ioctl() invocation with 'SIOCGIWNAME' returns EOPNOTSUPP for wireless interface

I'm trying to run the following code in the native stack of my app on Pixel 6 running Android 13. Unfortunately, the ioctl() API invocation for the wireless interface wlan0 is returning error code 95 (...
Khaled's user avatar
  • 690
1 vote
0 answers
81 views

Why does get I get -2147483648 upon calling networkCapabilities.getSignalStrength() function?

So I have implemented a network callback of type ConnectivityManager.NetworkCallback, and in the overridden function override fun onCapabilitiesChanged(network:android.net.Network,networkCapabilities: ...
Abhishek Verma's user avatar
0 votes
1 answer
74 views

How to create a common worker when using WorkManager?

I want to create a NetworkRequestWorker which executes a network request using WorkManager. All network requests would have a similar set of logic: Parameters for network request (request body) Do ...
Sohel Shaikh's user avatar
0 votes
1 answer
337 views

Calling multiple APIs using Coroutines causes error

I have a list of 30 objects for which I need to call API. I then add the result of all API calls and return as answer. But it gives 503 error after few calls. override suspend fun getScoreboard(docId: ...
kotlin_noob's user avatar
0 votes
1 answer
897 views

How to have the app check for mobile data ONLY in Android Studio

So in this app, it is required to use some sort of network because there's API calls involved. There's an error that pops up when there's no mobile data around. The thing is, it also pops up when I ...
OEThe11's user avatar
  • 351

15 30 50 per page
1
2 3 4 5
62