Questions tagged [android-internet]

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

228 questions
0
votes
1 answer

why get java.lang.IllegalStateException: Unable to create directory error?

I use DownloadManager class to download a file in android and this is my code for download: Uri downloadUri = Uri.parse(urlString); DownloadManager.Request request = new DownloadManager.Request(downloadUri); …
0
votes
1 answer

wifi getLinkSpeed() return a value always

I am developing an application that displays internet speed. like: https://play.google.com/store/apps/details?id=netspeed.pt https://play.google.com/store/apps/details?id=com.internet.speed.meter.lite&hl=en I have to gain WiFi speed at any moment, I…
user3720045
  • 33
  • 2
  • 4
0
votes
1 answer

How to give url in android

I have created a back end in Ruby on Rails and I am using url http://192.168.1.6:3000/products/4.json where my phone is running with ip on the same gateway. http://192.168.1.somethign When I try connecting from android it gives the error unknown…
0
votes
1 answer

cannot Load URL with android

I want check for update of app; I use this function but it doesn't work and go to catch in first and second try. what is the problem of this ? you can see some log of it when want to download the page : http://pasteboard.co/hn2hx7t.png void…
0
votes
1 answer

Android: Broadcast or callback when internet not reachable but connected to network

I have to handle the following peculiar scenario: My phone and hence the app is connected to a Wifi Router. Now, the ethernet cable to the router is taken out so the internet connectivity is lost. But the phone is still connected to this Wifi…
Sunny
  • 7,444
  • 22
  • 63
  • 104
0
votes
0 answers

unknown GoogleAuthException while getting the token

Similar questions are already available. But in my case I checked both SHA1 and my scope, they are correct and the account is also available. But still it returns unknown GoogleAuthException. My code is :- MainActivity.java package…
Simon Chius
  • 476
  • 5
  • 18
0
votes
2 answers

AsyncTask Android on main thread

I'm trying to implement an asynchronous access to internet using AsyncTask, but in log cat PID and TID of my logging are the same, because AsyncTask doesn't create a parallel queue, so my app crashes with a NetworkOnMainThreadException. Here's my…
Nikita Semenov
  • 2,111
  • 4
  • 18
  • 31
0
votes
2 answers

Is There Any Way To Update String Array From Online File (Android)

i am working on an image gallery app in which i am loading images from URL. i have stored image URLs in a string array: public static String[] IMAGES = new String[]{ …
0
votes
2 answers

need help to pass string value from try catch

i am trying to read all texts from url text file to string but i am having these errors: Description Resource Path Location Type currentUrl cannot be resolved to a variable MainActivity.java /Copy of…
0
votes
4 answers

How to Store Images from URL in Array

i want to store Images in array from URL but i don't know how to implement this functionality. just like i stored images from drawable in array i want to store images in array from URL. example of drawable: public Integer[] mThumbIds = { …
user3739970
  • 591
  • 2
  • 13
  • 28
0
votes
1 answer

Testing for Internet not Network

Typically when building my android applications that require API calls etc, I check the NetworkAvailability before making such calls like so: public boolean networkIsAvailable() { boolean result = false; ConnectivityManager…
erik
  • 4,946
  • 13
  • 70
  • 120
0
votes
1 answer

Enable/Disable internet not working for SONY Xperia (Any other way?)

I am developing one Android app for that I need to enable/disable mobile internet problematically. The code I have written for do this works fine with all other companies devices except SONY Xperia Z. Is there any other way to stop the mobile…
MCA Shah
  • 405
  • 1
  • 4
  • 10
0
votes
2 answers

Android - How to format Internet properties from Dhcp?

I am new in android and I am creating an application in which I am showing LAN IP Address, Subnet Mask, Default Gateway and other information I got IP Address using the following code try{ WifiManager wm = (WifiManager)…
Abbas
  • 3,529
  • 5
  • 36
  • 64
0
votes
1 answer

java.net.UnknownHostException: Unable to resolve host exception coming for some urls

I am trying to download some images from some urls. The issue is that some of them are getting downloaded fine but some are giving error - java.net.UnknownHostException: Unable to resolve host "image-url": No address associated with hostname.…
0
votes
2 answers

Unfortunately App Has Been Stopped If No Internet Access

I have developed an android application which required Internet access. The app works fine when the internet connection is on, but the app gets stopped with an alert "Unfortunately App Has Been Stopped", if my internet connection is switched…
Raju.allen
  • 341
  • 2
  • 9
  • 21