Questions tagged [android-internet]

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

228 questions
1
vote
1 answer

Send email programmatily from recent Android

I've read the question linked here. I've tried this method to send email programmatily when, for example, user press a button. It does works on 2.3.7 version of Android. The issue is when trying to launch the app on more recent version of Android…
Stefano Munarini
  • 2,711
  • 2
  • 22
  • 26
1
vote
1 answer

How to turn 3G on and off in Android

I am an android developer, I want to run 3G connection on or off via a button in my application.
user2207848
  • 47
  • 3
  • 9
1
vote
2 answers

Detect server status throughout the application android

I am developing an application which requires internet access all the time. I am able to find if its connected to internet or not using the following code. private Boolean isNetworkAvailable() { ConnectivityManager connectivityManager =…
bharath
  • 953
  • 4
  • 17
  • 30
1
vote
3 answers

Access network availability state android

I am developing an application where i want to access whether there is internet connectivity or not. I can access the network state by using private Boolean isNetworkAvailable() { ConnectivityManager connectivityManager =…
bharath
  • 953
  • 4
  • 17
  • 30
1
vote
2 answers

How to solve java.lang.RuntimeException error occured while executing doInBackground()?

I am beginner in android development, I am getting error in following code. I am calling asyn method for http request, before that I am checking Wifi or Mobile Network is available or not. When Internet connection is available My Service is running…
CKnDROID
  • 123
  • 1
  • 3
  • 13
1
vote
1 answer

passing data to server and receiving it

I need to pass 3 drop down values from my app to the website link http://www.way2franchise.com/ say: Advertisement and media,select investment,select state. Are my 3 values. I need to pass to the search filter link:…
Punjan Sudhar
  • 221
  • 1
  • 2
  • 8
1
vote
3 answers

Application crashing without internet

Here , Basically all i am doing is, checking whether the connection is available or not.If the connection is not available i am redirecting to another activity.That is all.But it keeps crashing. Intent i; public void onCreate(Bundle…
Punjan Sudhar
  • 221
  • 1
  • 2
  • 8
1
vote
2 answers

Android get browser's address

Is there a way to get address from the browser that user is trying to open using some listener or something, and if the address is in the database and the address is banned, stop loading that address in the user's browser?
1
vote
3 answers

Checking Internet connection in Android

Is there any background task which runs with in application to check for internet connectivity for below scenarios as common ? 1.Start of parsing/fetching data from server 2.In between of parsing/fetching from server Any sample code or links helps…
Manju
  • 720
  • 9
  • 23
1
vote
0 answers

After a few hours all requests start to fail with an UnknownHostException

I'm using an IntentService that receives an intent from an AlarmManager every 30 seconds and updates my app widgets. Every time it runs, it brings data from a server using a DefaultHttpClient. Everything works fine for a few hours, but after a few…
1
vote
2 answers

Can I build an app works for phones with & without google maps capability (allow users to use the map and others to exclude this functionality)

I am building an app that has multiple useful functionalities. One activity uses google maps. Can I make it so that users can use this functionality if they wish, but exclude it from older phones that cant use it (similar to how a video game can be…
Goku
  • 1,565
  • 1
  • 29
  • 62
1
vote
2 answers

Disable Mobile Data

i need to disable mobile data connection programmatically i followed this private void setMobileDataEnabled(Context context, boolean enabled) { final ConnectivityManager conman = (ConnectivityManager)…
Bucks
  • 689
  • 3
  • 11
  • 28
1
vote
3 answers

Load websites in offline mode

I want to load websites from cache when internet is not connected. Here's how I setup the webview in onCreate: browse.getSettings().setJavaScriptEnabled(true); browse.getSettings().setPluginsEnabled(true); …
Adnan Zahid
  • 573
  • 1
  • 10
  • 38
1
vote
1 answer

How disable other connection's .if wifi available

Is there any solution to disable all connection's(i.e mobile) if WIFI available.
Monty Sharma
  • 183
  • 2
  • 13
0
votes
2 answers

Data update in offline app

I'm developing an Android App for the tourism sector. All data is available offline without any internet connection. The app includes a map where the data is also only available in an offline mode. So, I use Openstreetmap with osmdroid for this and…
pinyin_samu
  • 174
  • 1
  • 12