This tag is used for internet related questions on the Android Operating System.
Questions tagged [android-internet]
228 questions
0
votes
1 answer
android periodic service has difficulty using 3G when phone is idle
I am working on an Android app which runs a periodic service (every 15 minutes) using AlarmManager.
The service sends/receives data over the internet.
I have noticed when 3G is enabled and the phone is idle. It has difficulty communicating with the…

Abhishek
- 1,749
- 9
- 27
- 39
0
votes
0 answers
Trying to convert String to Document object - Too heavy?
I'm trying to get an RSS feed and load it to a Document object.
When running the code as Java Application, everything works fine.
When running the code as Android Application - Nothing happens after I step over in debug mode on that line of…

ohadinho
- 6,894
- 16
- 71
- 124
0
votes
2 answers
How to add timeout to an HTTP Post
Why the code is Not working for me, Even the connection is stale, (there is no response from the server for a long time, the code is not throwing any exception!
try{
HttpParams httpParameters = new BasicHttpParams();
…

VISHAL DAGA
- 4,132
- 10
- 47
- 53
0
votes
0 answers
okhttp SocketTimeoutException in ResponseBody.string() call
I'm using okhttp library v.3.14.7 with Retrofit and Moshi to make network requests.
I have a custom interceptor for handling errors:
class ErrorInterceptorProvider @Inject constructor(
private val serverErrorConverter: ServerErrorConverter
) :…

Дмитрий
- 11
- 1
0
votes
1 answer
how to determine internet access is not available on resuming android application
my current android application has a requirement to inform the user when internet access has been lost during a user session
i employ the following callback listener:-
@OptIn(DelicateCoroutinesApi::class)
class ConnectivityListener @Inject…

Hector
- 4,016
- 21
- 112
- 211
0
votes
0 answers
How to trottle or set internet speed in android phone?
I want to set my internet speed for test some app. so that can manage internet speed as per requirement. I am getting 4G speed in my location. so that i am unable to manage that. so why i am looking this. i searched many but not getting my point. so…

pankaj
- 1
- 17
- 36
0
votes
1 answer
How can I improve the speed of retrieving data from internet in an AsyncTask?
In my following code I am trying to retrieve some JSON data by passing an URL. It works fine but does take some time in fetching data from the Internet. Even though the data isn't that bulky but still it takes like few seconds and then I can see…

xafak
- 21
- 1
- 1
- 7
0
votes
1 answer
I'm not able to connect to internet on Android Emulator, I'm using Tata Photon+(2g Mobile Broadband) device
I'm not able to connect to internet on Android Emulator, I'm using Tata Photon+ device.
I've disabled my all other connection like Lan and Wifi...
Removed all other settings like other mobile, and other device dial-up settings.
Please help me, how…

Vins
- 8,849
- 4
- 33
- 53
0
votes
3 answers
How to check if I have enabled WIFI before downloading a file?
I have a Button that downoad a File, and works fine. If I dont have Internet conection, the file doesnt download (obviously). The problem is that the app continues trying to download, instead of stop it.
I want to show a Toast saying "The device its…

Miwell Joestar
- 55
- 10
0
votes
1 answer
having problem to connect internet in android
I am trying to access google map in a specific point in a android activity. My emulator is connected with internet.
I also give internet permission to manifest.xml file. But my program can not connect to internet. Only show grid lines but no map. …

DPD
- 143
- 2
- 8
0
votes
3 answers
Views not loading after updating device to Android Pie 9.0
I recently updated my phone to Android 9.0. The app which I was developing was working fine in earlier Android version. But after the update some views which require internet are not loading. Blank spaces are being displayed in their places.
It…

Dev Sharma
- 634
- 7
- 26
0
votes
0 answers
Internet connectivity issue in Android App even after net connected
I have an app which "sometimes" doesn't connects to the internet. My app fetches JSON data from Volley and also Firebase valueEventListeners that fires up on app launch. Even after being connected to the internet, my app sometimes doesn't fetch data…

Mukesh
- 154
- 1
- 11
0
votes
2 answers
Android Service: Detect if data connection is available either Wifi or Mobile Data
How can I detect continuously or by schedule if data connection is available either Wifi or Mobile Data?
I need to detect it even if the app gets in foreground, background, or get killed by the system or user.
I already seen a lot of relevant…

Mihae Kheel
- 2,441
- 3
- 14
- 38
0
votes
1 answer
How to stop broadcast receiver to be fired when activity first launched
I have asked the following quoted question but found that all working gone in vain as android is now not allowing to register the broadcast for network changes.
You can not do it in Manifest where as you can still get calls when you register it in…

A.s.ALI
- 1,992
- 3
- 22
- 54
0
votes
1 answer
Is there any API to check wether the WiFi is connected to the Internet or not?
Are there any APIs to check if the WiFi which the Android device is connected to, really serves internet or not?
whenever the device is connected to WiFi, it considers it as online though the Wifi router does not serve internet or idle.
How to…

Roohi Zuwairiyah
- 363
- 3
- 15