Android :: HttpPost Works With Wifi Not With Mobile

Jan 3, 2010

I'm trying to use HttpPost to send data from an android device to a server. It works great with a Wifi connection, but I get the IOException "The target server failed to respond" with a Mobile connection (3G, Edge, etc.). It doesn't seem to be a timeout problem (I set it to 90s). The use of HttpGet works perfectly with both Wifi and Mobile connection... Any idea of where the problem could come from?

Android :: HttpPost works with Wifi not with Mobile


Android :: HttpPost Not Works In Java Project

Nov 19, 2010

I've written some code for my Android device to login to a web site over https and parse some data out of the resulting pages. An HttpGet happens first to get some info needed for login, then an HttpPost to do the actual login process. The code below works great in a Java project within Eclipse which has the following Jar files on the build path: httpcore-4.1-beta2.jar, httpclient-4.1-alpha2.jar, httpmime-4.1-alpha2.jar, commons-logging-1.1.1.jar.

public static MyBean gatherData(String username, String password) {
MyBean myBean = new MyBean();
try {
HttpResponse response = doHttpGet(URL_PAGE_LOGIN, null, null);
System.out.println("Got login page");
String content = EntityUtils.toString(response.getEntity());
String token = ContentParser.getToken(content);
String cookie = getCookie(response);.......................

View 2 Replies View Related

Android :: Skype Mobile To Mobile On WiFi

Nov 5, 2010

Can Skype be used to make a mobile to mobile (cell to cell) call if both phones are running Skype without using Verizon minutes?

View 3 Replies View Related

Android :: App Works Over WiFi But Not Over 3G?

Jul 22, 2010

I have developed an App that target version is 4 (Android 1.6) upto 7 (Android 2.1). I tested this app on the dev phone 2 (Google-Io-Device 1.6 version). I am doing some xml parsing stuff through Internet. i set the <uses-permission> on my Manifest. it works fine in WI-FI Network. But its not working in the Motorola Droid 2.1 with 3G Network. Is there any more specific stuff to do for 3G network?

View 2 Replies View Related

Android :: Connect Works On Wifi / Fails On 3G

Oct 14, 2009

I am trying to test the availability of a service with a socket. the code is quite simple. Code...

View 5 Replies View Related

HTC Hero : No Service - Calls And SMS - But Mobile Data Works

Dec 1, 2009

My Orange UK Hero is unable to make/send calls or send/receive sms. It displays "No Service" on the lock screen but mobile data seems to work perfectly.
If I go to...

Settings->Wireless Controls->Mobile Network Settings->Network Operators->Search Networks

then select Orange, it says "Your SIM card does not allow a connection to this network"

If mobile data wasnt working then I would guess that its a SIM issue but I'm clearly connected to the network as im using their internet!

Just swapped SIM with a friends phone.
My SIM works in his phone and his SIM has the same issues in my phone.

Booting up, it was connected to the network for enough time for it to get a voicemail notification but showed "No Service" straight away.

Im guessing the best bet is to re-flash with the latest Hero Orange firmware. Any tips for backing up numbers/sms/cal etc?

View 3 Replies View Related

Samsung Behold 2 :: Nba League Pass Mobile Works

Jan 31, 2010

i have tested the app on my behold 2 and the nba league pass mobile app does work for any nba fans and i am totally enjoying the app.

View 1 Replies View Related

Android :: Application Does Not Work When On 3G.On WiFi Works Fine

Aug 16, 2010

I have application that communicates with web server through REST. It works fine on a phone when connected via WiFi but does not work correctly when on 3G.

Not everything stops working. I'm still able to use some functionality but for some reason some calls to rest return "" (empty response) very quickly. Once again when I'm on WiFi everything works fine.

Just to clarify:
1. I have data plan :)
2. Server I'm connecting to is accessible from Internet

View 1 Replies View Related

Android :: OWA Access Denied Over 3G - Works Fine On WiFi

Aug 5, 2010

I have the Samsung Captivate, and I'm having a bit of an issue with my company's Exchange server. I don't want to sync it with my phone, I prefer to keep my work email separate, but I do occasionally need to use the Outlook Web Access portal on the server. When I'm on any WiFi connection, and I browse to my server's OWA, I get the login prompt, and I can successfully log in and do whatever I need to.

However, when on 3g, I get simply "Access Denied" without a login prompt at all. I've tried rebooting the phone, killing the browser process, clearing the caches in the browser, etc. None of that works. I administer this server myself, and it works with my wife's iphone just fine, as well as other android phones in the office.

View 1 Replies View Related

Android :: Application Works Over WiFi But Fails Over GPRS

Aug 17, 2010

I am developing a social Networking application and it works fine over WiFi but tried the same over GPRS it gives following Exception,

.....................

View 4 Replies View Related

HTC EVO 4G :: USB Tethering Works With WiFi

Jul 30, 2010

While USB tethering over 3G/4G networks doesn't work unless you pay for the $30/mo hotspot feature (which I still cannot get Sprint to admit is a stupid name since I don't want a hotspot, only tethering, but I digress), you can tether and use the phone's WiFi connection.

Why would you want to? Well, I have a laptop that requires a USB dongle and now I have one less thing to carry. OK, not the best reason, but I found it interesting.

View 9 Replies View Related

HTC EVO 4G :: POP Email Only Works In Wifi?

Oct 13, 2010

I can only RECIEVE email thru wifi connection (at home or in the office) I cannot get mail thru wireless connection... aka "over the air" it just "spins" and then eventually I get an error message " alert connection timeout" I have tried the followingre-installed my email account HARD RESET (that didn't work and was a major pain in the butt , trying get get everything back to the way I had it) double check settings (POP and SMTP) with my domain host and there tech support I have been to my Sprint store Tech support, spoken w/ Tech support, and now I am reaching out to you

View 5 Replies View Related

Android :: App Works On WiFi In Debug Mode Or On Emulator Not On Cell Network

Jul 9, 2010

I have an android application that parses some HTML, downloads an image, and displays it. I'm using an AsyncTask to do the HTML parsing and image downloading, but that shouldn't be relevant. I never have a problem when I'm on WiFi on my phone, when I'm using the Eclipse debugger on my phone, or when I'm using the emulator. When I have my phone on the cell network (even with pretty good reception), the image sometimes fails to display. I'm having a hard time figuring out what is wrong, since the problem cannot be reproduced in the debugger. Does anyone have any idea what could be wrong?

Update: I have narrowed it down to the image downloading function. This way my original code:.......................

View 1 Replies View Related

HTC Desire :: WiFi Tethering - How It Works?

Aug 3, 2010

I don't understand the tethering could someone give me a example on how it works?

View 1 Replies View Related

General :: SSH Tunnel - Works On WiFi Not On 3G - HTC One S

Aug 28, 2012

I am using the SSH Tunnel app on a rooted HTC One S which is otherwise stock. It works perfectly on my home wifi network (if I access an ip web page it shows my SSH server's ip).

If I then turn off the tunnel, disconnect from wifi, reconnect over 3g it connects fine, but when I access the same site it shows my phone's IP, not my servers.

Are there any known issues that prevent SSH Tunnel from working on 3G?

View 1 Replies View Related

HTC Droid Eris :: Works Better Or Worst On WiFi

Jun 20, 2010

just an opinion thing but do you think your home works better or worst on wifi? Because I think I see dramatic improvement on my phone just a thought

View 11 Replies View Related

HTC Desire :: Away From Home Without WiFi Connection Seems Like Nothing Works?

Sep 8, 2010

When I'm away from home without a WiFi connection it seems like nothing works. You Tube, Last FM, eBay and worst of all any of the three different types of Twitter I have. Some of these apps are incredibly slow or others just give up. I've never been able to upload a picture via Twitter using any platform. Really annoying. Seems my Gmail isn't even notifying my anymore.. Have I done something? Is this linked to Orange's notoriously poor set up?

Will rooting my phone help? I'm already running out of space on my phone after downloading what I consider a fairly small number of apps. Why don't they save to, and run off, the SD card?

View 21 Replies View Related

HTC Desire :: Install OTA It Works Except - Says Unable To Start WIFI

Jun 24, 2010

I have a Orange (UK) Desire which i have gold carded and unbranded with no problems.

Software info below

Firm Ver 2.1-update 1
Baseband 32.30.00.28u_4.05.00.11
Kernel version 2.6.29-97da29ed
htc-kernel@and18-2#1
Build Number 1.15.405.3 CL150129 release-keys
Software number 1.15.405.3
Browser Webkit 3.1

There is now a software update available (1.15.405.4) which i have tried to install OTA it all works except it says unable to start WIFI. I have tried to install it with both my Goldcard and normal SD card (not sure if that would make any difference)

View 5 Replies View Related

General :: WiFi Only Works Temporarily On Phone (HTC Raider)

Jun 7, 2012

I got an HTC Raider on the weekend, and while using the 3G/4G/LTE networks, it's amazing. Super fast and wonderful. Also, generally, while using wifi it's the same thing - fast and works perfectly.

However, when I'm at work, and I connect to the wifi network at my office, it will typically only work for 3 or 4 minutes, and then just stops working. It still displays maximum signal strength, but won't load any page on the internet, and any apps that send/receive data do not work. My work computer is also on the same wifi network and it always works no problem, so I know the wifi network is fine.

View 2 Replies View Related

General :: Droid X Won't Connect To Any WEP WiFi - Works On Other Types

Dec 14, 2011

I have a droid X and love it. It's been great and I'm a huge android fan. That being said, after the update from Android 2.2 to 2.3 (gingerbread), I lost the ability to connect to WEP-secured wifi signals. I know it's not just my wifi at home, but ANY WEP wifi... I've been to Starbucks, other people's houses, etc, and had the same issue. Other types of security work just fine, but it essentially means that 50% of the time I can't connect to wifi.

What specifically happens is the phone identifies the signal and asks if I'd like to log in. I type in the password, but the "connect" button is NEVER responsive... it has been greyed out so that I can only press cancel.

In general, I've had spotty connection with other wifi as well (It will work for a few minutes, lose the signal, find it again, work, rinse-and-repeat).

I've googled solutions. Most of the answers ask me to change the actual router settings. I CANNOT DO THIS as I am living in a shared apartment. It is not my router. Moreover, I know that it's not a router problem as I have encountered NUMEROUS routers (including my routers at home that I used all the time before the 2.3 update) that this happens with.

View 1 Replies View Related

Samsung Moment :: WIFI Tethering - App That Works With Rooted Running Jc V7

May 18, 2010

WIFI tethering. Is there a app that works with a rooted moment running jc v7

View 2 Replies View Related

HTC EVO 4G :: Dropped - Wifi Still Works But Cant Make Or Receive Phone Calls And No 3G

Jun 2, 2010

I dropped my Pre today getting out of the car and it broke in half, and the phone radio died. Strangely the wifi still works but i cant make or receive phone calls and no 3G.

View 7 Replies View Related

Sony Ericsson Xperia X10 Mini/pro :: Web Browser Works On 3G / Apps Only Work Over WiFi

Nov 19, 2010

Got a brand new phone yesterday. Upgraded it to Android 2.1 before using it. In general, phone is functioning properly, however none of the applications (i.e. YouTube, Gmail, Maps) will work over the 3G connection, but the Web Browser does function ok. The apps will work over WiFi (which isn't much use if you're trying to use maps or gmail on the go). I have tried restarting phone (battery out restart). It is not a signal strength issue, I am getting HSPA with full bars and it still times out with "no connection detected" (or variations thereof, depending on the actual application). I can work around this using the web browser based clients for these apps, but as they aren't streamlined they are a PITA to use.

View 6 Replies View Related

Android :: HttpPost Not Working ?

Nov 24, 2010

I am trying to write something to an empty file on my apache server

CODE:.....................

The reponse returns "HTTP/1.1 200 OK" so it does find the file

I tried removing the file and it returned Error 404

I read apache's docs and looks like am doing it right "i think"

My problem is... the contents of the file do not get updated!

View 1 Replies View Related

Android :: HTTPPOST - PHP - MYSQL

Nov 9, 2010

I have the following php script, i want to pass parametrs from android to script and execute it.

CODE:.......................

View 3 Replies View Related

Android :: Using HTTPPOST With WebViewClient ?

May 31, 2010

I am looking for an example of using a WebViewClient with shouldOverrideUrlLoading and using HttpPost. I need to display a web page, keep it within my layout boundaries so it can not launch a new browser and also use HttpPost to send data to the host.

View 1 Replies View Related

Android :: HttpPost And Byte[ ] ?

Jul 14, 2010

I am dealing with http post method on Android. I have successfully send simple string pairs using HttpClient and HttpPost class with the NameValuePair as entity. However now I want to send a simple array of bytes[]. Unfortunately the only entities I have found for the HttpPost class are the NameValuePair and FileEntity. However my byte[] is not from a file. Wirting it to a file and then sending by the FileEntity seems to be pointless and stupid. How can I send this array using default HttpClient and HttpPost class?

View 3 Replies View Related

Android :: HttpPost And HttpGet ?

Nov 12, 2010

Android: 2.1 SDK

I have a hello.php running on standard Linux host. (Ubuntu 9.01 with Apache2 web server)

In android I have a simple activity which sends HttpPost or HttpGet to the above hello.php with some parameters in URL. Irrespective of HttpPost or HttpGet in my php always $_GET has values, $_POST is always empty.

How do I know in PHP if it was a post , get,put or a delete? $_REQUEST['REQUEST_METHOD'] is also always empty in my php.

View 3 Replies View Related

Android :: Tasker WiFi / Mobile Data

Oct 30, 2010

Just learning how to use Tasker. Searching the internet to get whatever help I can find. One thing I am not seeing that I really want to do is:When I open the browser (turn wifi on).(I know how to do this)If wifi is not available ask if I want to turn on mobile data (This is what I can't figure out)If anyone has some suggestions I would love to hear them. Or if someone knows whether or not this is even possible please let me know.

View 3 Replies View Related

General :: Android 2.3.4 - No Mobile Data After Using WiFi

Aug 3, 2012

I run into rather strange problem. My phone, china Android 2.3.4, is working quite weel instead of this:

If I use WIFI, then turn it off and try to use mobile data connection, it is not possible.

Icon showing that mobile connection should be active is on, but no data comming through.

I tried switchiing to airplane mode, changing access point names and so on, but nothing worked. Only solution was to restart the phone, after that all works normally - until connecting to wifi.

After rooting my phone I tried to figure out more with Teminal emulator. It seems that after releasing wifi connection and turning interface down, mobile interface comes up with same IP as before - it should ask network for new one. But, more important, route table is empty (or containing one entery and no default gateway at all) I tried bringing mobile interface up and down several times, tried forcing it to use dhcp (timeout), without success.

Is there a way to "reset" whole networking system from shell? Something like partial restart, which would be probably quicker than full restart.

View 2 Replies View Related







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