This tag is used for internet related questions on the Android Operating System.
Questions tagged [android-internet]
228 questions
0
votes
0 answers
Internet Permission Error in Android
I made a simple currency converter application for android. For taking latest currency rates from internet, i need to give permission to connect internet from manifest file.
I added this line to manifest file before

Burak Kurt
- 39
- 1
- 6
0
votes
1 answer
Android user-permissions in Manifest
I declared in my AndroidManifest since I thought it was the goto way of getting user-permissions.
But I got this warning : "Element user-permission not allowed here"
Via a quick google…

Martin Jäkel
- 322
- 6
- 21
0
votes
2 answers
Android check internet connection Toast displaying no internet
Hello I have a small application which simply displays a webview when it has an internet connection but it doesn't have an internet connection I want it to display a toast. Currently when I run the application it will display a toast message saying…

haderss
- 1
- 3
0
votes
4 answers
Checking internet connectivity in android
I'm trying to check internet connectivity on recieving sms.
But my service is force closing while changing internet state. E.g If I've enabled wifi its working fine but when I disable wifi app becomes closed with error.
I'm using this code in…

Hassaan Rana
- 45
- 7
0
votes
1 answer
Download image error android.os.NetworkOnMainThreadException
I have that function with how I download images on my application, but I don't know why I've received that network on main thread exception.
Here it's my class with function:
public class Tail {
String story, description, title, location;
int…

Horatiu Dum
- 31
- 2
- 7
0
votes
1 answer
Android app crashes without internet connection?
I am using parse backend service in my Android app. The problem I am facing is coding for push notification. Many times when there is no internet connection on the mobile device , an automatical alert appears "Unfortunately your app has stopped",…

Geet Gobind SIngh
- 55
- 9
0
votes
1 answer
Android APK error after updating from the Google Play
I have a running application on Google Play and it does not work without an internet connection. If you do not have an internet connection you can not pass by the splash screen.
Yesterday I've tried to give an update from Google Play, I install the…

Evlin
- 1
- 3
0
votes
0 answers
if Android Device and not google chrome (conditional)
Anyway to write a conditional; ONLY if Android Device and not Google Chrome then do something.
So, detect if Android (easy via below) but do something based on if Android and NOT google chrome; for instance do something for all Android users that…

Dr Upvote
- 8,023
- 24
- 91
- 204
0
votes
1 answer
Android ad hoc wifi connection but keep internet connection
My application creates a Wi-Fi connection to a sensor but this means that the user will have no connection to the Internet as long as he is connected to this peripheral.
I've already read that it is not possible to have two wifi connection without…

stefan
- 1,336
- 3
- 21
- 46
0
votes
1 answer
Android - Check if device supports 4G/LTE
How to determine if a android device supports 4G/LTE networks?
Checking the current network type is not an option, because I have to check it even if the current network type is 3G.
UPDATE:
OK, I have managed to detect the prefered_network_mode…

Michal
- 1
- 1
- 3
0
votes
5 answers
Check For Internet Connection in android
I'm developing an application which check internet is available or not...
I'm getting help from this.
Here is my connection class :
public class ChechConnection {
private Context _context;
public ChechConnection(Context context){
…

Tufan
- 2,789
- 4
- 34
- 52
0
votes
2 answers
Android - check internet, wifi and GPRS status with the help of ConnectivityManager?
I have read that the "ConnectivityManager" class gives information about the network. But I am confused on how to implement the code. I need an efficient way to check internet, wifi and GPRS at a time.
Thanks

Gaurav Deshpande
- 444
- 1
- 7
- 25
0
votes
1 answer
Android 5.0 OpenHttpConnection error
I am using eclipse and the problem is that my httpConnection code is works for android 2.3.3. but it is not working for android 5.0 I cannot handle it.
private InputStream OpenHttpConnection(String urlString) throws IOException{
InputStream in…

Droid
- 1
0
votes
1 answer
cannot fetch text from a file on a website android
I am trying to fetch text from a simple text file uploaded on a website accessible directly with the link i've used in my code but for some reason its not working. Using debug tool i found out that its throwing an exception after HttpResponse line.…
0
votes
3 answers
android - (HttpURLConnection) downloading image from internet
I want to create a simple android app that retrieves an image from the internet
The Activity code looks like this :
import java.io.IOException;
import java.io.InputStream;
import android.support.v7.app.ActionBarActivity;
import…

thekucays
- 568
- 3
- 9
- 32