Android :: Proxy SDK 1.5 R1 - Socket Time Out

Aug 10, 2009

With this SDK version I can use my emulator using a proxy server. There is three solutions: - add values in system table - configure -http-proxy in eclipse run menu - configure APN on emulator to set the proxy. When I use Android browser, it's really slow but it's working. If I try to to a post from my application, I take an ANR and some minutes later a socket time out.

Android :: Proxy SDK 1.5 R1 - Socket Time Out


Android :: Java Socket Not Throwing Exceptions On Dead Socket?

Jun 29, 2010

We have a simple client server architecture between our mobile device and our server both written in Java. An extremely simple ServerSocket and Socket implementation. However one problem is that when the client terminates abruptly (without closing the socket properly) the server does not know that it is disconnected. Furthermore, the server can continue to write to this socket without getting any exceptions. Why? According to documentation Java sockets should throw exceptions if you try to write to a socket that is not reachable on the other end!

View 5 Replies View Related

Android :: Socket Programming - Java - Many Clients One Socket

Nov 12, 2009

Essentially Im trying to get many many java clients connect to a socket on my ColdFusion server (Using the Socket Gateway). However before i even start to code this, Im a little confused about sockets and their performance. First of all, are sockets meant for many(1000+) clients connecting to one socket (say port 2202) on one server? How is the performance if all there waiting for is basically a ping, or something such that when these clients receive this "ping" they can go get some new data.

View 5 Replies View Related

Android :: Connecting Android Bluetooth Client Socket To Ubuntu Server Socket

Jul 15, 2010

I am writing an Android app that should exchange data to a server over Bluetooth, with the server side on a PC running Ubuntu, using the bluez library, in C (or C++).

My Android app fails (IOException) when I try to connect to my server socket on the PC.

Here is essentially what I in the java code (in Android, full eclipse project here: http://dl.dropbox.com/u/2968234/ThinBTClient.zip)

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

This throws IOException after a timeout of 10seconds or so.

On the server side (in Ubuntu 8.10), I basically set up a Bluetooth server socket, along the lines described in the example bluez/sdp-register.c

Down below is my C++ program. To compile it do

g++ -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include -o bt_server bt_server.cpp -lbluetooth

I can do the reverse succesfully, i.e. create a server socket in Android and connect from Linux, however this is not what I want to do!

I think either the problem has to do with my config of Ubuntu.

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

View 1 Replies View Related

Android :: Socket Exception Socket Not Connected Android

Oct 27, 2010

In my android application i am trying to run a application using GPRS connection and not WIFI.When tried to run in wifi the app runs fine.The browser works fine with the APN settings set but when trying to connect to server using my application it gives me socket exception.I am using the below permissions in manifest file.
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses- permission>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
<uses-permission android:name= "android.permission.CHANGE_NETWORK_STATE"></uses-permission>
<uses-permission android:name= "android.permission.WRITE_APN_SETTINGS" ></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" ></uses-permission>
I am receiving Socket not connected exception.Is there any other permission which i need to add for using GPRS connection other than WIFI.
10-27 18:26:19.689: WARN/CalSyncSvc(166): com.motorola.blur.service.email.protocol.activesync.ASException: Problem executing HTTP POST

10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendRequest(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendXMLCommandNoProvisoning(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendXMLCommand0(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendXMLCommand(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendFolderSyncCommand(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ProviderAPI.sendFolderSync(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ProviderAPI.updateMapFromFolderSync(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ProviderAPI.updateFromFolderSync(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.calendar.sync.activesync.SyncService.syncAccount(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.calendar.sync.activesync.SyncService$QueueEntry.run(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:416)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.FutureTask.run(FutureTask.java:122)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:648)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.lang.Thread.run(Thread.java:1058)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.util.concurrent.BlurThreadFactory$BlurPooledThread.run(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): Caused by: java.net.SocketTimeoutException: Socket is not connected
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method)


10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:140)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:229)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:521)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.net.Socket.connect(Socket.java:1019)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:317)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:129)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
10-27 18:26:19.689: WARN/CalSyncSvc(166): ... 17 more

View 2 Replies View Related

Android :: Use Proxy Through Router

Oct 4, 2010

I'm having with the wi-fi on android. As many of us know, android has no native support for proxies, unfortunately my school's network uses a proxy server to access the internet. I have a wireless router connected to the network so i can have wireless on my laptop and such. What I was wondering was, can I use the router to allow my android phone to access the internet as well? I reckon it's just a matter of forwarding the right ports to the phone but I'm not sure which ports are in use. I'm using a htc desire and a d-link dir-600 router.

View 4 Replies View Related

Android :: How To Set HTTP Proxy In Programmatic Way?

Sep 2, 2010

I'm looking for a programmatic way to set-up http proxy settings for android handsets. I've tried using android.provider.Settings.System.putString() to set System.HTTP_PROXY, but my call fails (I'm using a 2.2 emulator image at the moment). My code looks like:
if (System.putString(getContentResolver(), System.HTTP_PROXY, "10.10.2.1:8080")) {
tv.append("put for HTTP_PROXY succeeded. ");
} else { tv.append("put for HTTP_PROXY failed. "); }

I've also added to my android manifest:
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
Although it's not clear from the docs which permission, if any, is required.

I'm familiar with this SO thread, but the technique there requires manual adb commands, which require the SDK tools and (possibly) a rooted phone. Is there a way to accomplish this? Ideally, I'd like away to set an http proxy that will be used for both data and WiFi connections.

View 1 Replies View Related

Android :: HTTP Proxy For Emulator On 1.6 R1 SDK?

Oct 22, 2009

I am developing applications for Android in a company where the Internet is accessable via a proxy server only. I found out that the emulator of the 1.5 R3 SDK works well with the option -http-proxy, but the emulator of the 1.6 R1 SDK does not. Is this a bug in the 1.6 R1 SDK? And if so, is there a chance this gets fixed in - let's say - 1.6 R2? Or am I just doing something wrong, though providing the same options for the 2 different emulator versions?

View 9 Replies View Related

Android :: How To Set HTTP Proxy On Emulator?

Jan 12, 2010

I'm developing android application in my university that must use the internet through proxy server. In Android SDK 1.5 I use parameter - http-proxy when starting emulator and it working. But since Android SDK 1.6 until now (2.1) this approach is not working.

View 4 Replies View Related

Android :: Cannot Set Proxy After Downloading SDK Tools

Nov 3, 2009

I downloaded Android SDK Tools, and when I use the tools to download other packages, there is no way to set proxy. How can I download via proxy? thanks!

View 4 Replies View Related

HTC Desire :: Any Way To Get Proxy Support In Android 2.2?

Jul 17, 2010

I know that android 2.2 also does not support proxy and its really a great problem for people like me who study in schools. I heard that there are custom roms that support proxies (cyanogen rom). There is no proper information on this. I just want to know how good it is for HTC desire.

View 4 Replies View Related

Android :: Setup Emulator Proxy Settings

Oct 15, 2009

I want to to use the browser inside the Android Emulator, and i want to use the proxy settings on my machine, how can i setup this.

Reading the very good manuals of android, they tell me i should start android using the following command

emulator -avd myavd -http-proxy http://168.192.1.2:3300

But still am not able to use the emulator browser. am using the IPAddress for my proxy server.

View 2 Replies View Related

Android :: Application Internet Access Behind Proxy

Sep 28, 2010

I have an android application(Android 2.2) accessing internet behind proxy. I have tried setting an APN with proxy host & port and it works fine in emulator browser. But the application fails to connect to internet. I have also tried command line option of -http-proxy, it doesn't work.

View 3 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 :: How To Set HTTP Proxy In Real Device?

Jul 6, 2009

I had tried to use the sqlite3 to add a proxy information in the com.android.providers.settings/databases/settings.db, but I still couldn't access the Internet through browser on a real device. I had also tried to use the ProxySetting ap to set proxy. It couldn't work either. Is there any idea to set the http proxy on a real device?

View 2 Replies View Related

Android :: How To Trace Localhost Proxy Connection?

Jun 16, 2010

I'm currently trying to debug an issue with my application and I wanted to see if my internal proxy is sending the data in the proper order. Is there any way to essentially sniff my proxy pipe?

View 3 Replies View Related

Android :: Programmatically Set A Proxy Server In Droid App?

Nov 24, 2010

Is there a way to programmatically set a proxy server in my Android App?
I'm writing an Android App that uses some WebViews. Is there a way to set a proxy server for all network connections in my app, i.e. all content that is shown in the WebViews should be routed through the proxy?
All other Apps on the device should not be affected by this proxy settings.

View 1 Replies View Related

Android :: Install SDK Behind Authenticated Proxy / Get This To Work?

Jan 12, 2010

I'm unable to configure the Android SDK and AVD Manager to acquire packages from behind an authenticated proxy server. I've filled out the proxy fields in the Settings area, but am never ask my username or password. I tried the <username>:<password>@proxyurl method, which doesn't work either.

How can I get this to work?

View 2 Replies View Related

Android :: Setup A Proxy In Droid Phones?

Jan 6, 2010

Am really wondering how to set a proxy server in android phone like [tattoo]
in order to gain access in some private networks

View 2 Replies View Related

Android :: Access Internet In Application Being Behind Proxy

May 17, 2010

I am trying to connect to internet through android emulator being behind proxy. I am using Android 1.6 SDK. I set my proxy details going to Home Screen->Menu Key->Settings-

>Wireless controls->Mobile networks->Access Point Names

View 3 Replies View Related

Android :: Proxy Related Code Changes Needed In Applications

Sep 29, 2010

We recently came to know that a lot of Mobile Carries in Asia/India have proxy enabled to get Internet access via mobile. It turns out our App does not work when the phone has internet via proxy setup (APN). Does the APP need to handle proxy individually?

View 4 Replies View Related

Android :: Java.net.SocketException - Operation Timed Out - Not Behind Proxy

Feb 25, 2009

I'm developing an app which needs to connect to the internet, but when i send a request using DefaultHtpClient.execute() method it takes 2-3 minutes and then the stacktrace says java.net.SocketException:operation timed out............

View 8 Replies View Related

Android :: Http Proxy Settings Not Working In Emulator 2.1

Feb 19, 2010

I am trying to configure http_proxy settings for Internet access from Android emulator (behind a proxy). I tried following options:

1. -http-proxy option using emulator command.

2. setting http_proxy environment and then launching the emulator.

3. Settings proxy using APN settings (Telkilla) (this worked till Android 1.6 version)

4. adding an entry in settings. CODE:.........

I also checked -debug-proxy log messages and it showed below messages

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

How can we access Internet from emulator (behind a proxy).

View 11 Replies View Related

Android :: How To Develop Browser By Creating A Proxy Server?

Aug 31, 2010

I'm new to android, n is planning 2 develop a web browser on android os as my final year project....Well my question is can i develop a browser by just creating a proxy server as i being a student cant go for developing a whole server on Internet.

View 2 Replies View Related

Android :: Http Proxy And Chunked Encoding With Emulator

Mar 24, 2009

I am having a specific problem that is preventing me using the android SDK from work. We are using a MS Proxy here that all internet traffic has to go through. The problem seems to be when the emulator is trying to access a site that uses 'Transfer-Encoding: chunked' If I attempt to download www.nds.com (no chunked encoding) into the browser, it works fine. However if I try to go to www.google.com (uses chunked encoding), the browser fails with the message: can't determine content length, and client wants to keep connection opened My feeling (and I'm no expert in this area) is that the underlying code managing the communication through the proxy is not dealing with the null terminator on the chunk encoded response when the connection to the proxy is being kept open? Does anyone have any experience in this area? Is the source to the emulator available so I can try and understand what is going on here?

View 8 Replies View Related

Android :: Proxy Server Don't Allow To Import Google Maps

Oct 11, 2010

I have done all the necessary settings of proxy in my emulator using comand line as well as Graphical from the emulator's mobile settings. By doing this internet browsing is running in my emulator, but when i run my project to import google maps in my application, Only grid shown having no maps on it. I think proxy server donn't let it to download maps from the site.

View 1 Replies View Related

Android :: Setting Up A Proxy Server For Droid Emulator?

Oct 14, 2009

I want to start Android Emulator with internet support but am unable to use the brower on the emulator, it seems like it is not connected. This is the command am using to start the emulator

emulator -avd myavd -http-proxy http://168.192.10.1:3100

Please note am using an IPAddress instead of machine name on my proxy server name. Is this possible with the emulator?

Or what am i doing wrong? Am using Android SDK 1.6

View 2 Replies View Related

Android :: Proxy Support Not Working In Droid 1.6 Emulator / Way To Fix

Sep 17, 2009

After upgrading to SDK 1.6 the emulator seems to be unable the Internet through a proxy (-http-proxy option). The same is working in SDK 1.5R3.

Can anyone confirm? Did I miss something?

View 2 Replies View Related

Android : Enforce Webkit To Use System APN Proxy In Droid?

May 25, 2010

I'm trying to force Webkit to use proxy definde in APN.

My proxy configuration:

APN: wap
PROXY: 192.168.6.102
PORT: 8080
USER: wap
PASSWORD: wap`

Currently all connections made by Webkit are blocked on firewall. Is there way to use proxy from phone profile?

View 1 Replies View Related

General :: How To Make Android Apps To Use HTTP Proxy

Nov 30, 2011

When I connect to the student's wifi network, it requiers to configure the proxy with authentification. Well I'm fine with that, and the browser works all right, but all of the apps which require internet access aren't working. I also noticed, that when I'm configuring the proxy in the settings, it actually says that the HTTP proxy will be used by the browser, but not by some of the apps (in my case none of the apps work, including the pre-installed apps like android market, youtube or google maps).

So my question is that is there any way to make the apps work with the HTTP proxy? I should say that I found this thread on this forum:

[URL]

but I had trouble understanding it. Also if this matters, I'm using an Asus Eee Pad Transformer running android 3.2.1.

View 9 Replies View Related







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