Questions tagged [android-internet]

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

228 questions
-1
votes
2 answers

Android : Which is the most effective method to check an active internet connection

I have searching for a fast and effective method to check the internet connection, and i found that its better to ping google to find the internet connection status.But I found a number of ways to ping google and i am confused which one to use out…
KJEjava48
  • 1,967
  • 7
  • 40
  • 69
-1
votes
3 answers

Can not get response while using okHttp3

I used okhttp to get send request to my user.php file that is on localhost server running by wamp. When I run the application I don't know why the onclick method triggered automatically (I have only one button on my XML file without setting onclick.…
Jumong
  • 125
  • 12
-1
votes
1 answer

Android App Crashes if no internet during server connection

I am calling a url to fetch data and insert in my database. I have provided a no internet check. If I open the app without internet connection, it works fins, a pop up comes.. But if I connect to the url when I have internet and the internet goes in…
Prakhar
  • 710
  • 6
  • 24
-1
votes
3 answers

How to properly use AsyncTask on Android?

I need help with checking if the phone my app is running on is connected to the Internet. I started with pinging an IP to check connection. It looked like this: protected Boolean checkInternetConnection(Void... params) { try { …
-1
votes
1 answer

How load specific web pages on my android application?

Please don't minus my question if it is wrong i am new on android. I want in my application have a connection to about us of my site. means when press a button open about us of my site and show information of that. How should implement it?
user3266062
  • 522
  • 1
  • 7
  • 21
-1
votes
3 answers

android crash on internet connection turn off

I am new to android, as my study project I made an application. Which is syncing data from webservice and fetching in my application. Everything working fine. But in this scenario Launch the application Check for internet connection Get content…
ramesh
  • 4,008
  • 13
  • 72
  • 117
-1
votes
2 answers

How to check any http request from any apps on device

I have to check any http request from any app on the device for internet, so that i can display back if i have cached any of these requests on the device. Can you please let me know how to do that -regards, Manju
Manju
  • 677
  • 5
  • 13
  • 27
-1
votes
1 answer

passing HTTP GET values in url

i'm trying to send HTTP GET Request with values passed in URL for the site http://somenthing.com/c/chk.php?val=somevalue I used the following code but it doesn't seems to work HttpResponse response = null; try { HttpClient client = new…
yashhy
  • 2,856
  • 5
  • 31
  • 57
-2
votes
1 answer

Android Device, connected to camera on Wi-Fi, has to make RESP API call through 3G/4G

Android Phone is connected to the camera via Wi-Fi. Camera does not have Internet connection. Android Phone communicates with Camera through Wi-Fi. But I need to make Internet requests (REST API) and open a Socket on 3G/4G network, is it possible…
Roman Irtov
  • 363
  • 3
  • 12
-2
votes
2 answers

I am creating change password functionality in my android application which crashing on getResponsecode()

I have provided onCreate() and New password method where on debugging, it is crashing on getResponsecode(). It is crashing and not getting response. It is not going to get response from server. protected void onCreate(Bundle savedInstanceState) { …
-2
votes
2 answers

How to check internet in wifi is there or not?

I am facing the issue, Wifi is connected but internet is not there. How to check that?? Please somebody help.
Aman Jham
  • 478
  • 6
  • 18
-2
votes
1 answer

Connect to MySQL database using volley or other library

In many websites tutorials connection to a database of MySQL in Android uses httpclient class and name pair values ,which is deprecated by Google .So how to do it using volley or any other library.
mik dass
  • 381
  • 3
  • 16
-2
votes
1 answer

Reading webpage as String but error occured

Trying to read a webpage as an String this is my code : public class ReadWebPage extends Activity { private EditText url_text; private TextView textView; @Override public void onCreate(Bundle savedInstanceState) { …
-2
votes
1 answer

how to make android app fetch content from dedicated internet page?

I am planning to create a small review app in android that fetches movie reviews from a webserver/page. So how should i design the online component? The online part need not be visible through browsers, but available to the app. So, basically how…
thomess
  • 1
  • 1
  • 4
-3
votes
3 answers

Unable to show alert dialog-android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

I am trying to check internet connectivity from broadcast receiver and if there is not internet want to show an alert dialog but here I receives an error ablove mentioned due to AlertDialog.Builder(context) . But if I change it to…
SwagDevelopers
  • 109
  • 2
  • 12
1 2 3
15
16