Questions tagged [android-internet]

This tag is used for internet related questions on the Android Operating System.

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…
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) { …
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 = …
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…
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