This tag is used for internet related questions on the Android Operating System.
Questions tagged [android-internet]
228 questions
1
vote
2 answers
Android: Check internet connection - returns true (incorrectly)
To check for internet connectivity, i am using this code:
public boolean isOnline() {
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo netInfo = cm.getActiveNetworkInfo();
…

Jasper
- 8,440
- 31
- 92
- 133
1
vote
1 answer
No internet access in signed APK
I was working on an app that was working fine in the Debug build version and then I created a signed APK using keystore , and then with Android Studio --> Generate SIgned APK.
When I install the signed APK manually by downloading on to my phone, it…

dowjones123
- 3,695
- 5
- 40
- 83
1
vote
0 answers
how to enable Mobile Data on BroadcastReceiver
I am working on BroadcastReceiver app, and I am trying to enable the Mobile Data internet. I have code to enable the wifi:
public class SMSReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
…

asdasd asd
- 51
- 7
1
vote
2 answers
Effective way to check for slow internet connection and differentiate between network connection and actual internet connection in android
How to check if the device is connected to internet or it is just connected to external wifi network? Because NetworkInfo returns true if a device is connected to an external wifi network even there is no network connection.
When device is connected…

akg
- 670
- 10
- 30
1
vote
1 answer
how to get all image link location from url diractory
i have uploaded some images on cloud storage in a directory / folder.
example: http://dropbox.com/image-directory/
now my question is how can i get link location of all the images that is stored in URL directory / folder and store these links to an…

user3739970
- 591
- 2
- 13
- 28
1
vote
0 answers
Capture in real-time pages visted by user
I want to make small parental control application. It should capture URLs of all visited by user pages and save it to the log-file. I do not know how to do that, because user can use any available web-browser and that is simply impossible to my app…

adam009
- 11
- 1
1
vote
2 answers
httpPost not working android
I'm trying to send a httpPOST request to some url.This is my code.
I'm using ASync Task method which i found on the net
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
…

kushal
- 301
- 1
- 7
- 18
1
vote
0 answers
Android - Set timeout to Loader
I'm using loaders to handle internet connections and it's working fine. Now I want to control the duration of the connection attempt, in other words to set a timeout.
I'm using the following code:
in onCreate method:
Uri SearchUri =
…

user1851212
- 691
- 1
- 7
- 19
1
vote
2 answers
How do I display no internet connection popup and an html page when internet is not available for webview?
I am using webviews in my app and want to make sure when internet is not available the pop up message displays for no internet connection and also displays an html page in the background saying internet connection required. I have added some code…
user2386226
1
vote
3 answers
Android Localhost?
I know this has been asked and answered before, but I use 10.0.2.2 for the emulator. And I heard I must use something else for my real device. Can someone tell me what that is? And can I have them both run off of 1 URL. Instead of having one for the…

Anonymous
- 171
- 1
- 2
- 9
1
vote
0 answers
how to make a independent, process, scheduler that will download online data
I'm making android application that needs to refresh it's contents ones a day. I need some sort of a process that will even if the app is not started and this process needs to download the data that the app will use the next time is started. Any…

user1796624
- 3,665
- 7
- 38
- 65
1
vote
2 answers
How can I workaround window.scroll not working in iFrame on Android
window.scroll and window.scrollTo (its alias) don't seem to work on an

LoveAndCoding
- 7,857
- 2
- 31
- 55
1
vote
1 answer
Checking for internet connection constantly with android
I making an app. The app needs internet for 5 activities, the 4 other activities don't need internet.
The Activity's that need to have internet need it because they have to do a CRUD and do httppost to the website to communicate with the DB.
So at…

mXX
- 3,595
- 12
- 44
- 61
1
vote
2 answers
how to read and use the content of a website in android
I want some help;
I actually have to read and use the content of some website in an Android app. I followed some tutorials but in vain. Someone can help me here.
Updated:
I actually have used two different codes to get the content of a website but…

user2281330
- 181
- 2
- 11
1
vote
2 answers
Android browser unable to open web page
Hello i am new to android and i written a small app for "Simple web Browser".
but my browser is unable to open the page and it's showing error like no network available(Web Page not available) even wifi is on and normal browser is working on that…

StackOverflow
- 21
- 3