Questions tagged [android-internet]

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

228 questions
1
vote
1 answer

Android Testing - Signal Quality

I want to test how my app functions with api calls in different levels of network strength. Is there anyway to control or limit the network strength on an android device? I want to test my app during minimal cellular signal, 3g signal, 4g signal,…
1
vote
1 answer

How to Set Tag to the request and get it from Response Volley asynchronous request?

I have an Android application with multiple REST Api's. The API's are managed using the Volley library. The response is getting and it's woking fine. But when I make asynchronous requests, I can't identify the response of each request. My request…
1
vote
1 answer

java.net.SocketException:socketfailed:EACCES(permission denied) for OTP application in Android Studio

I am trying to create an One time password access android application. I have created a local host server using wamp and I am trying to access that thing with the mobile application I have designed. Unfortunately, I am getting the error as following…
1
vote
2 answers

Internet Connectivity Change Broadcast Not Happening

For some reason, my network change receiver isn't working and broadcasting a CONNECTIVITY_CHANGE to my NetworkStateReceiver class in my Android application. I've checked to see if it is simply a problem with my dialog box, but the Log.d's that are…
f3d0r
  • 541
  • 3
  • 12
  • 27
1
vote
0 answers

How to know data is receiving or Not when user is already Connected to Internet?

I am able to know Device is connected to Internet(whether connected with wifi\ mobile data) or not but i want to know is data is receiving from Current connection or not, now I want to check if data receiving speed is 0 kbps app should notify user…
Kapil Rajput
  • 11,429
  • 9
  • 50
  • 65
1
vote
0 answers

Android: Setup and manage VPNs programmatically

I would like to setup a VPN configuration and connect to it programmatically. Similar to what we can do manually at: Settings > Network connections > More networks > VPN I saw the VpnService class but I don't think it does what I want? Any idea if…
lyc001
  • 777
  • 1
  • 10
  • 25
1
vote
1 answer

After enable Wi-Fi, it should open a new activity

I'm using now this code that checks the Internet connection is on or off. If it is off, a wireless setting page is shown. So, what I want is, after I'll enable wi-fi connection, it should open SplashScreen 2 activity. How to do this? As you'll see…
Holly Ikki
  • 199
  • 1
  • 10
1
vote
1 answer

If internet connection is false, it should wait to connect

I have the code that checks the Internet connection with two actions. If the Internet connection is ON, the application starts one specific activity. If the Internet is disconnected, the application shows a message asking for user connecting to…
Holly Ikki
  • 199
  • 1
  • 10
1
vote
0 answers

Android: Best way to block certain apps from using the internet especially cellular data

I am developing an Android Device Management (Enterprise) application. One of the requirements given to me was to block all the applications on the device (Tablets) from using cellular data except the applications installed by the organisation. The…
1
vote
5 answers

How to check My test android device is connected to internet or not?

protected boolean isOnline() { ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info = cm.getActiveNetworkInfo(); if (info != null &&…
1
vote
2 answers

Android: check internet access continuously

Besides this: InetAddress.getByName("www.xy.com").isReachable(timeout) or pinging to any server is there any other way to continuously check if the device has internet access. And by that I mean not just connected to any network, but having actual…
patrickfdsouza
  • 747
  • 6
  • 17
1
vote
1 answer

Internet Permission issue in Android App?

App name is: ThreadingNoThreading Faulty Class Name: threading.java Mine is a simple program. This particular class has two Buttons. One to toast and another to download the image from internet and set it in the image view. Using AsyncTask for the…
Manjunath Rao
  • 1,397
  • 4
  • 26
  • 42
1
vote
4 answers

Loading local JsonData while no Internet connection is present

I am making an android app in which i want to load json data. My specification is that, if there is internet available, then load the data from a url which i provide. If There is no internet, then load the local json.txt file. My app is able to load…
penta
  • 2,536
  • 4
  • 25
  • 50
1
vote
3 answers

Check internet in background - Android

I have been doing some research and seen some debate of whether to use Broadcast Receiver or Alarm Manager, Im not sure what to use but here is what I am trying to do and have done. I have a method that will check if there is internet connection.…
james brown
  • 250
  • 1
  • 4
  • 11
1
vote
0 answers

User asks to run as user -2 but is calling from user 0 error

First of all, PLEASE don't take it as a duplicate! I have tried every single thing I have found over stackoverflow and other sources but nothing seems to work for me! I have exported my project from Eclipse and imported it in AS and got this error. …
Vlad
  • 910
  • 1
  • 10
  • 18