Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
260 views

By default, Android bring up an ethernet interface through addInterface() in EthernetTracker.java. That is, When a ethernet cable is connected, it will bring up that interface and set Ip automatically....
CaptianR's user avatar
2 votes
1 answer
238 views

I see OEM_PAID and OEM_PRIVATE networks in android. I see below info in PANS documentation. OEM_PAID Used primarily for apps that can be routed on both OEM and non-OEM networks. OEM_PRIVATE Used ...
CaptianR's user avatar
0 votes
0 answers
61 views

I am using this: fun startNetworkObserver() { try { val builder = NetworkRequest.Builder() builder.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) builder....
rosu alin's user avatar
  • 5,848
1 vote
0 answers
28 views

I am learning Android development, and then I found an error with Android networking uses. I add this implementation (com.github.amitshekhariitbhu.Fast-Android-Networking:android-networking:1.0.4"...
White hate criminal's user avatar
0 votes
0 answers
16 views

I am currently trying to build my first app with android studio. I am trying to access data from a webserver My code is: class MainActivity : AppCompatActivity() { override fun onCreate(...
user28783786's user avatar
0 votes
1 answer
136 views

I just switched from iOS to Android and found out that with the release of Android 12, Google removed support for L2TP VPN protocol. I’ve been searching for third-party VPN apps that still support ...
parsa2820's user avatar
  • 608
1 vote
0 answers
140 views

I'm using SSE (Server-Sent Events) in an Android app with OkHttp. After 5 minutes of idle time, the connection stops receiving data on mobile networks, but works fine on WiFi. No errors or callbacks ...
Parth Bhatti's user avatar
1 vote
0 answers
140 views

I have an Android device that's used for mobile testing. This device has cell connectivity and is separately connected to the local network over ethernet (which is used for ADB). How can I configure ...
David Chouinard's user avatar
2 votes
1 answer
126 views

I am trying to run my flutter application on android virtual device using vs code but when I run the code it shows following error I/xample.chalbha(11197): Waiting for a blocking GC ProfileSaver and ...
moiz bhatti's user avatar
1 vote
0 answers
114 views

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,919
2 votes
1 answer
1k views

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
127 views

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
2 votes
1 answer
415 views

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
5 votes
0 answers
4k views

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,540
0 votes
0 answers
322 views

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,814
1 vote
0 answers
70 views

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
444 views

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,618
2 votes
0 answers
304 views

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
  • 710
3 votes
0 answers
141 views

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
107 views

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
390 views

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
1k views

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
  • 361
1 vote
0 answers
443 views

I have an application in production that contains an AppWidget that schedules periodic refreshes via a WorkManager CoroutineWorker. My RefreshWidgetWorker simply requests some data from a Retrofit ...
Waking7319's user avatar
0 votes
1 answer
409 views

I am developing an Android SDK/library, In here I am performing several network calls. But I don't want the Application developer(who uses my SDK) can log the network calls I performed from my sdk. As ...
Tareq Islam's user avatar
0 votes
1 answer
31 views

This is probably not feasible, but I have a WearOS app that has downloading functionality. According to the documentation, I can request a high-bandwidth network: https://developer.android.com/...
Kris B's user avatar
  • 3,578
-2 votes
1 answer
443 views

Is there any way to get the name of the interface working for WiFi hotspot? I have seen that there are many names e.x ap0, swlan0 etc. Anybody knows other names or a way to find it easily?
EAK TEAM's user avatar
  • 7,773
0 votes
0 answers
38 views

In my app, I want a worker to request my server every 1 minute using ( PeriodicWorkRequest ) whether there are new messages for the user. The transmission is therefore kept very small and always ...
Jonisko's user avatar
0 votes
1 answer
150 views

I am getting these error logs when the API is called from any device running Android 5 (API 21). Not sure if it's related to the networking library or any legacy issue with Android version 5 and below....
Om Infowave Developers's user avatar
1 vote
0 answers
106 views

I'm trying to connect to WiFi AP provided by peripheral device with NetworkRequest.Builder().setNetworkSpecifier(). I succeeded to connect but I still have a problem in failure case. fun ...
honeybee's user avatar
-1 votes
1 answer
427 views

I am trying to make a function that detects if an user is connected to the internet so that I can request a new interstitial ad in case this function returns true. This is the function I made, but now ...
Eldestornillador's user avatar
0 votes
1 answer
186 views

I've been having an issue making HTTP GET requests consistent between versions of Android. On Android 7-12, this code works perfectly for accessing my remote server, and gets a response back ...
Knuxfan's user avatar
  • 21
1 vote
0 answers
659 views

I am using this code after checking several posts in stackoverflow.com It works fine when connected to Cellular and senses whether it is online. However, for Wi-Fi, it gives 'true' always. Observed ...
SNAD's user avatar
  • 33
0 votes
0 answers
1k views

I am using this code for checking internet connectivity. It works fine and when the device is offline, the screen just blanks out. Is there a method to show some screen during the wait? public boolean ...
SNAD's user avatar
  • 33
4 votes
1 answer
2k views

In my code, I need to track the internet connection and make appropriate changes. First of all, I create a network request, then register a network callback using the ConnectivityManager. val ...
Hayk Mkrtchyan's user avatar
0 votes
0 answers
167 views

I am trying to convert a URL to Base64 in Kotlin. I am using Apache Commons IO to accomplish this by first converting the URL to a ByteArray: val imageBytes = IOUtils.toByteArray(URL(url)) This line ...
Tom Darious's user avatar
2 votes
1 answer
968 views

I am learning WorkManager and wondering if following the correct way of setting network constraint for both Wifi and data (cellular): val constraints = Constraints.Builder().run { ...
Sam Chen's user avatar
  • 9,138
0 votes
0 answers
145 views

I have one strange reported by one of the clients. They are on 4G, but in the app it says that they do not have Internet connection. In the app I am using this logic to inform the user that they have ...
Zookey's user avatar
  • 2,707
0 votes
1 answer
754 views

I have created an API in DjangoREST,and it is running on my localhost with address http://localhost:xxxxx/api/allproduct. I have also created an Android app in Futter, using Android Studio and tried ...
Zaheer UD Din Baber's user avatar
0 votes
0 answers
163 views

Problem: By default, Android has only one active Network, so when you have your other device connected to your phone over Wi-Fi (IoT, Dashcam, whatever, obviously with no internet), your Android ...
punov's user avatar
  • 838
1 vote
0 answers
237 views

In one of our android app while trying to connect to server using https, it is throwing me error saying, network capability changed: [ Transports: WIFI Capabilities: NOT_METERED&NOT_RESTRICTED&...
user3863488's user avatar
3 votes
1 answer
2k views

I'm working on android 9 and I want to give preference to WiFi over Ethernet. I tried giving wifi higher priority than ethernet in my config.xml file as shown below but still my ethernet has higher ...
Sourabrt's user avatar
  • 2,366
2 votes
0 answers
308 views

I'm getting many, many entries in my Android app logging (I've replaced application id with xxx.xxx.xxx): 2021-09-14 09:40:11.131 21345-22853/xxx.xxx.xxx D/NetworkManagementSocketTagger: tagSocket(73) ...
Costyn Van Dongen's user avatar
0 votes
1 answer
241 views

Say, I am going to download two tables of data from the web server, categories and items: data class Category(val id: Long) data class Item(val id: Long, val name: String, val categoryId: Long) Then ...
Sam Chen's user avatar
  • 9,138
0 votes
1 answer
430 views

I am learning Android development to my own and wandering to know if my device has the hardware that can support the LTE network. I am trying the below, but I think it is giving me wrong data ...
Java Nerd's user avatar
0 votes
1 answer
171 views

Below is the model class I am created for my json response : data class MyModelClass( val one: String, val two: String, val three: String, val four: Int, val ...
Jaimin Modi's user avatar
  • 1,707
0 votes
1 answer
506 views

I have added a passpoint configuration in my app on Android 11. The add works perfectly but it doesn't connect. I tried to get a list of which passpoints are added but get an empty list. val ...
theblitz's user avatar
  • 6,901
0 votes
0 answers
60 views

I am new to Android. It runs well before receiving data from the Putty(PC) but Error message printed when received a data SocketServer$SocketServerThread.run(SocketServer.java:56) "...
YS_PEN's user avatar
  • 31
4 votes
0 answers
685 views

I've got a Foreground Service (extends androidx.core.app.JobIntentService) that gets work enqueued when a push notification comes in. Its job is to connect to the Wi-Fi AP of an IoT device and ...
Jeff's user avatar
  • 41
0 votes
1 answer
2k views

I am making News App using Newsapi.org API key I have written all the code and compiled successfully but app is not fetching any data through that key. This is my MainActivity.java file package ...
YASH 18cs85's user avatar
0 votes
1 answer
894 views

I'm currently using NetworkRequest and NetworkCallback approach (recommended by Google official) to get status of Wifi connection, and it works partially. I'm expecting the onUnavailable() will get ...
Sam Chen's user avatar
  • 9,138

1
2 3 4 5
19