This tag is used for internet related questions on the Android Operating System.
Questions tagged [android-internet]
228 questions
0
votes
2 answers
permissions for opening uri in android browser
If an android app converts user input to a valid uri and the app launches a browser window with that uri, does the app need to declare android.permission.INTERNET or similar the manifest? On my own device it works fine without but I'm not sure if…

geco17
- 5,152
- 3
- 21
- 38
0
votes
1 answer
In retrofit call requested after that internet gets off then it jumps to onfailure()..even though call requested call was successfull..
I have tried to use retrofit 2.1.0 for my image upload call in multipart. But the issue that i m facing is call is requested so server side the update is done but in the way of response if internet connection gets off it jumps to onFailure() method…

Chirag
- 27
- 7
0
votes
2 answers
checking internet connection for some time
I'm trying to make my app check if it is able to connect to the internet.
My research tells me that network-level connectivity doesn't necessarily mean you can access remote sites / services. For example:
Detect if Android device has Internet…

Omar Labib
- 55
- 9
0
votes
1 answer
How can I avoid black screen when starting new activity?
Helo,
I've got activities, which do internet related work.
when I've got a slow internet connection, starting a new activity turns into black screen and after some seconds it will be displayed.
Internet work is done by AsyncTask.
How can I avoid…

ubik
- 95
- 2
- 10
0
votes
3 answers
How I can check android device is connected to the Internet?
Is there any way to find out that android device is connected to the Internet or not. I use this function:
public boolean isDeviceOnline() {
ConnectivityManager cm =
…

Amir
- 37
- 14
0
votes
0 answers
Android app Text-to-Speech voice download notification for users
I have coded my Android app with "Text-to-Speech", voice "English-UK",
lg.setLanguage(Locale.UK)
So, when I install it's apk in a new mobile for testing, it starts downloading voice "English-UK", as shown below,
But, if the Internet isn't…

Aman Chawla
- 304
- 3
- 8
- 23
0
votes
3 answers
Internet Connection in Android
I have work on Application That use Internet.
It contains XML parsing from url.
than
Showing Progress Dialog While parsing
time.
Stop dialog when parsing is done.
set TEXT(Data) in ListView.
my issue is that, When device is connected to internet…

Piyush
- 2,589
- 6
- 38
- 77
0
votes
1 answer
Connection Change Receiver doesn't work?
First of all I'm using api 23 and not android N so android.net.conn.CONNECTIVITY_CHANGE should still work for me but it doesn't.
Manifest:

future engineer
- 109
- 1
- 8
0
votes
3 answers
Rapidly load data on Re-launch of an Activity
Actually, i am fetching XML from the web, parsing it and display it on the screen. The problem which i am getting is that the activity tries to load the data from web each time the activity is called.(Actually, my mobile app requires frequent trips…

Paresh Mayani
- 127,700
- 71
- 241
- 295
0
votes
0 answers
Android HttpURLConnection caching issue
This is the first time I am using HttpURLConnection in Android.
URL url = null;
HttpURLConnection con = null;
BufferedReader in = null;
try {
url = new URL(companyInfo.getCompanyCurrent());
Log.i(Constant.TAG, "URL:" + url.toString());
…

D-D
- 954
- 2
- 12
- 27
0
votes
2 answers
App crashes if Internet is not available - Android
I am loading JSON from server but the app crashes if the internet is not available. How to fix this problem? I have added try catch in most part. Unable to find the problem. lvMovies.setAdapter(adapter); gives error when internet is not available.…

akkk
- 1,457
- 4
- 23
- 41
0
votes
0 answers
Android - automatically internet connection when app is close?
I am creating an app that connect to a service and get a notification from service ,I need that when app is close or don't use check internet connection then if connected internet, send my notification to user, I don't like to use a live thread in…
user4813855
0
votes
1 answer
WebView take very long time when close internet connection during loading page
i worked on android application and i have a webview that show some web content for user.
Now i try to do some integration test cases in order to ensure that all things are correct.
One of this test cases is to turn off the internet connection…

Marzouk
- 2,650
- 3
- 25
- 56
0
votes
2 answers
checking internet for screen-splash
Here are my simple class Splash Screen. Now, I need checking if have internet in my webview. Where I make this checking?
public class Splash extends Activity{
private static int tempo_splash = 1000;
protected void onCreate(Bundle…

Kevin Jhon
- 55
- 2
- 12
0
votes
1 answer
I want to check the Internet connection
I try code
ConnectivityManager cm =
(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
boolean isConnected = activeNetwork != null &&
…

Kung
- 33
- 5