Android :: Force Connection (http) To Go Over OTA (WiFi)

Mar 10, 2010

is there a way to force a connection (http) to go over OTA (Over-The- Air) even if you have a wifi connection?

Android :: force connection (http) to go over OTA (WiFi)


Android :: Http Connection Over WiFi?

Aug 17, 2010

I am using org.apache.http.*; API's to make HTTP Post Connections over Internet from the Android Application. I added the Internet Permissions in the Manifest file and it works fine. Now i want my application to make the same HTTP requests over WiFi network through which the handset is connected.

Do i need to make code changes to achieve this? Do i need to add some permissions? as i am unable to make requests...

View 1 Replies View Related

Android :: How Http URL Connection Work?

Jan 18, 2010

I need to send asynchronous calls to the server. During network connection this works fine. How ever if i disable my LAN from Network connections android will through a socket exception after the specified timeout for that particular call. Now the issue that i face is the time out happens in a synchronous manner. Though both the calls has been started in a thread the timeout is not happening at the same time. If i keep the timeout as 20sec i am getting a socket exception for the first call after 20 sec and after the next 20 sec i get the timeout for the next call. Why is this happening..? I am not opening two connections asynchronously in this case. I am attaching a sample code that can replicate the above scenario. Code...

View 9 Replies View Related

Android :: Retrying Http Connection

Oct 14, 2010

I'm making an http request. I'm on a platform (android) where network operations often fail because the network connection might not be immediately available. Therefore I'd like to try the same connection N times before completely failing. Was thinking of something like this:

DefaultHttpClient mHttp = ...;
public HttpResponse runHttpRequest(HttpRequestBase httpRequest)
throws IOException
IOException last = null;
for (int attempt = 0; attempt < 3; attempt++) {
try {
HttpResponse response = mHttpClient.execute(httpRequest);
int statusCode = response.getStatusLine().getStatusCode();
if (statusCode == 200) {
return response }
} catch (IOException e) {
httpRequest.abort();
last = e;
throw last;

I'm mostly worried about the connection being in some state which is invalid on subsequent retries. In other words, do I need to completely recreate 'httpRequest', should I avoid calling httpRequest.abort() in the catch block, and only call it in the final failure?

View 2 Replies View Related

Android :: Whether To Use Service Or Thread For Http Connection?

Jul 5, 2010

I am a newbie in android and i had a question whether i should use a service or thread for http connection and what will be the advantage of using a service over a thread or viceversa. Please help me out with this.

View 13 Replies View Related

Android :: How To Set Content Type On Http URL Connection ?

Dec 22, 2009

Do you know how to set Content-Type on HttpURLConnection? Following code is on Blackberry and I want the Android equivalent:
connection.setRequestProperty("content-type", "text/plain; charset=utf-8");
connection.setRequestProperty("Host", "192.168.1.36");
connection.setRequestProperty("Expect", "100-continue").

View 4 Replies View Related

Android :: Way To Make HTTP Connection Using GSM Network?

Sep 29, 2010

I need to make HTTP request on Android using GSM connection, not Wifi. My current solution is to disconnect from all wi-fi connections and perform a request. Is there any better solution? I could not find any relevant methods in the API (I looked in package org.apache.http, but it seems it is completely unaware of what type of connection should be used).

View 1 Replies View Related

Android :: HTTP Connection Failed Via Proxy

Apr 26, 2009

I have set up proxy in the sdk emulaotor and can access internet via the proxy in the browser. but this does not work for my http connection application, it gives "Unknown host exception" i have used -dns-server option when launch the app.

View 2 Replies View Related

Android :: Http Chunked Response - Connection Reset

Sep 6, 2010

I'm facing an annoying problem here. My application is connected to a server that sends some data from time to time. It's some kind of eventing server. In order to receive data, I'm connecting to the server with an HttpURLConnection, retrieve the response InputStream and loop on it with the read method. The connection is always open. The distant server is cutting the connection every 5 minutes (for test purpose). When connection is closed, my application has to reconnect again. We detect a Connection Reset by Peer exception when the server closes the connection. The problem is that most of the time, I never receive the Connection Reset by Peer exception. So my application can't know that is has to reconnect and it's stucked on the read instruction. The InputStream.Read() method shouldn't always raise an exception if the connection is closed? What can I do to always detect Connection Reset by Peer exception?

View 15 Replies View Related

Android :: Http URL Connection Can't Read Completely / Solution For This?

Dec 21, 2009

I am facing with problem related Http Connection.
MY code...

This code can't download data completely.
For example :
Total size to read : 13901 bytes
Above code can read size : 12937 bytes

What is wrong here?

View 2 Replies View Related

Android :: Create Http Connection To Retrieve Web Page Content

Aug 26, 2010

How to create an Http Connection to retrieve a web page content to my android? Please post example code for this.

View 1 Replies View Related

Android :: Download Image From Server Using Http Connection And At Same Time

Aug 4, 2009

I want to Download image from Server using Http Connection and at same time i want to show ProgressDialod till is not Downloaded i dont undestand.

View 3 Replies View Related

Android :: Sample Code To Create Http Connection Using AsyncTask Class?

Feb 5, 2010

I am trying to create HTTP connection using AsyncTask class.

Is it possible to create HTTP connection ?

Can you suggest sample source code?

View 2 Replies View Related

Samsung I7500 :: Wifi Connection Lost After Screen Lock And Can't Regain Connection After Unlock

Sep 7, 2009

If my screen locks while I have a wifi connection, then the connection is lost when I unlock the phone.First, is this perhaps deliberate, to save power? Also, either way, when I unlock the screen and go into wifi settings, I see that the phone is trying to make a wifi connection, but it never succeeds, even though it's my home network and I'm in the same room as the router. It just states 'Obtaining address.

View 10 Replies View Related

AsyncTask Force Close Errors / HTTP Request To MySQL Database

Aug 22, 2012

I'm trying to connect my app to a MySQL database to retrieve data. Obviously I have to do this in a new thread hence why I chose AsyncTask, something I'm new to.

I have included Toasts to tell me if there are problems when trying to carry out any part of it. However these toasts are not showing on the UI thread. I tested this out by turning off the server my SQL database is on so that it could trip the first toast. It didn't show it though and instead it gave me a force close error. When my server is running I have no issues and although I haven't coded the bit to retrieve data yet the code below does connect to my database and at least lets me view the page "CurrentSeasonDrivers".

Here is my code and the logcat showing the errors below that:

package com.android.history;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
[code]....

All I want it to do is show a toast if the application cannot connect to the server instead of force closing.

View 4 Replies View Related

Samsung Epic 4G :: How Phone Use Wifi Connection As Opposed To 3G Connection?

Sep 15, 2010

Long time reader, first time poster here. How does one know if the Epic is using the wifi connection as opposed to using the 3G connection? When wifi is connected both that and the 3G connection shows at the top. So which one is in control per se? And how can it be verified?

View 3 Replies View Related

Android :: Doing Broadcasts With HTTP Server Push Over WiFi?

Apr 2, 2010

We are designing a system with a PC base station and 100 Android mobiles communicating over WiFi. They will use XLM-RPC as the method of mobile to base station communication. However, sometimes the base station needs to broadcast a message to all mobiles. Should we use "http server push" for this, i.e., have the base station leave the connections open to all the mobiles? Is there a better way? Publish-subscribe is possible, but doesn't seem mature on Android yet.

View 1 Replies View Related

Android :: How To Create HTTP Request / How To Create Connection Object?

Jul 17, 2009

How to create an HTTP request object of POST type in android? Which class need to be extend or what method need to implement? How to establish connection to a server? Actually i want to connect to a microsoft exchange server, and then i have to send a request to it using HTTP.

View 8 Replies View Related

HTC Desire :: WiFi Connection Not Working After Using WiFi Hotspot?

Oct 8, 2010

I decided to try the WiFi hotspot available through 2.2. GREAT! Actually worked quite a bit better than I thought it would. Only trouble is, ... now I'm back at home, it fails to connect to the home network.

+ Restarting phone
+ Re-entering password
+ Forgetting network + refinding

WiFi sees the network, says "Connecting", comes up "Failed to connect", "Scanning" and loops on that sequence. I know the router's working because this laptop is using it right now

View 7 Replies View Related

Nexus :: Data Connection Force-restarting

Nov 28, 2010

Whenever I use the data connection, the phone crashes and it reboots.Sometimes it happens some minutes after browsing, other times it happens once the packets start flowing, and other times instantly just after a reboot, which forces another reboot again.Some applications started crashing too, mostly games.Since a couple of days ago I've been getting some restarts just browsing on the settings too.I did a factory reset which proved unsuccessful, and I've been wondering how to do a full wipe of the system to reinstall Android and hope that fixes it. However, I fear it could be a bad memory block or some hardware problem that's causing the crashes.AFAIK, there haven't been any incidents (drops, spills, etc), the problem just started happening and has increased in frequency.Also, could someone guide me to how do I reinstall Froyo?

View 7 Replies View Related

Android : How Can I Force WiFi?

Aug 4, 2010

This is a newbie question: I've had my Droid X for only four days so far, but love it. While at home, I sometimes have problems connecting to a network. I think the problem is that 3G is not as strong here, but I have a good WiFi network. Is it possible to have the phone use WiFi as the first option so I will keep the connection even if 3G is weak? Or is my problem something else?

View 2 Replies View Related

Android :: Use Wifi Connection Through App?

Sep 7, 2010

I want to make http connection which ensures that it is done through wifi only,so that I can not be charged for the transfer of packet from GPRS or 3G network.

It means what ever the connection available I can use only wifi that I want to ensure through Application itself.

View 1 Replies View Related

Android :: How To Get Wifi Connection Information

Sep 6, 2010

I am writing an application which checks the security protocol of the phone's wifi connection. Between the phone and AP, they may use 'wpa', 'wpa2', 'wep' or unprotected 'open' connections. how to get such information?

View 3 Replies View Related

Android :: WiFi And 3G Connection At Same Time?

Mar 30, 2009

I need a Library that opens WiFi connection and 3G connection at the same time and then start transmitting sockets to 2 PC ( servers) connected to the WiFi-3g Networks. I Couldn't find in WiFi.manager & Android.net Lib. any thing that can do that.

View 2 Replies View Related

Android : Bad G Connection Being Used Before Good Wifi

Jun 23, 2010

We live in the sticks and we get a bit of a G connection here, maybe 1 bar if we are lucky.

What I've found is that my samsung galaxy S with android 2.1 uses the G connection no matter how bad it is despite a perfectly good wifi connection here.

It's only if the G cononection completely drops and the red no entry sign appears to show us that the carrier isn't available at all that suddenly the phone uses wifi.

Is there a way to change the provider order so that the phone will use wifi before g/3g ?

View 1 Replies View Related

Android :: Internet Connection Sharing Via WiFi

Jun 6, 2010

Is it possible for Android to connect to Windows ICS (Internet Connection Sharing) via WiFi?I have set up Windows ICS (Internet Connection Sharing) on my Windows XP laptop WiFi adapter. The connection is open with WEP disabled.From a Windows Mobile 6 PDA I am able to see various WiFi routers, my laptop ICS and connect to the laptop ICS.From Android I am only able to see the various WiFi routers, but not the laptop ICS connection.Does the Windows ICS use some special Microsoft protocol that the Android WiFi adapter can not detect?Is there some other Android software or app that can connect the Windows WiFi ICS?

View 4 Replies View Related

Android :: WiFi Or OTA Connection For Streaming Content?

Aug 22, 2009

When making a connection for streaming content, what is the algorithm for when to use a WiFi connection and when to use an OTA connection? Can you modify that algorithm? Can you specify what type of connection to make?

View 2 Replies View Related

Android :: Cannot Hold A Wifi Connection On Evo / Get It To Working?

Jun 19, 2010

I cannot hold a wifi connection on my Evo. I try and connect at home sitting ight next to the router, and it just disconnects. Anyone else?

View 1 Replies View Related

Android : Establishing Two Connection - 3G And Wifi - At The Same Time

Apr 22, 2009

We are doing some research using android handset , G1 and i don not find any clear information in order to manage the connection, as i note all classes allow us for only accessing the information about a connection, i would like to ask if there is really such solution already avaliable in order to opens two connections for two different network ( 3G & Wifi ) at the same time and use them to exchange data "establishing two connection at the same time". i look in the source code of the Mms app to see how it as you recommend but no related information.

View 2 Replies View Related

General :: No WiFi / GPS Connection On Android 2.3 (GingerDX)

Aug 21, 2011

I'm new here and I'm using a doixanh ROM, GingerDX (but I already used Froyobread). So, some time ago I had a problem...I couldn't connect my device (Sony Ericsson Xperia X8) to wifi.

What I did? I full wiped the phone...and that fixed the wifi issue. But now I have the same problem...I can't connect my phone to wifi anymore!

I could do another full wipe, but this problem would just appear again and again...I googled for some fixes and I found some answers...one of the solutions would be deleting one file (dhct or something) from the phone...the problem is: I don't have that file...

Another (on a youtube video) to download an "hot fix" package with 3 files and place them on the phone...but the link that he gave is broken and I couldn't find those files on the internet.

Like wifi, my phone's GPS doesn't work too.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved