Android :: Configure HTTP Proxy With Latest Android Emulator On Windows?
Sep 25, 2010
I'm at complete odds over configuring a proxy to inspect the HTTP(S) traffic for the app I'm developing. I've tried running Fiddler2 and Charles Web Proxy, both run on 127.0.0.1:888, and starting up the Android emulator with the parameter:
To test it out I open the Android browser. I see in Fiddler2 that the request is routed through the proxy. However, only RARELY does the request receive a successful response. In most, and when I say most I mean 99% of the time, the request is retried and fails again with the Android browser telling me "The server failed to communicate". Has anyone found a way to configure Fiddler2 or Charles for debugging HTTP(S) traffic through the Android emulator?
View 1 Replies
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
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
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
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
Sep 22, 2010
I tried to connect to internet behind proxy in windows.But I cant. I tried with the "-http-proxy" in command line and in eclipse but both did not worked for me.
View 1 Replies
View Related
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
Jun 29, 2012
I've set up my proxy and can access in a couple of clicks on wifi but really need it when mobile. How to configure stock browser to run on a proxy on demand?
I use a vpn fine but the proxy has better performance. I am not rooted and running ics on an HTC One S.
View 1 Replies
View Related
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
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
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
Jul 8, 2010
My provider only permits me to connect to the internet via the web-browser. Only the web-browser works. I want to use the Android market, but it doesn't connect. Is there some sort of proxy I could use to get around this? I can connect to the market if I'm on my home WiFi, but not if I'm on my network GPRS.
View 13 Replies
View Related
Apr 29, 2014
My problem is that all my devices are on a wifi network that uses http/https/ftp/SOCKS proxy settings to connect to internet. All the devices connect to internet after I use proxy settings on them. But few applications such as skype do not connect to internet. They work fine when I connect to a wifi network that does not use any proxy settings (at home), but at work when I have to use proxy settings to access internet, the apps fail to connect. I have a couple of devices which are not rooted (Fujitsu Stylistic M532 tablet, Garmin-Asus A10 phone) and I am not sure if I can root them. I would really want to use all the apps.
View 9 Replies
View Related
Nov 3, 2011
I am tring to debug an android app. I need to pass all the http trafic of my htc desire s through a proxy server( Paros, WebScarab, etc.) that i have on my pc. I need to intercept the http messages.
I have rooted the phone and installed a proxy on it. I have connected the phone and the pc to the same wifi so that they will be in the same network. After this i have put the pc's ip in the Proxy Host: "192.168.1.2" and the port "8080" on the Proxy Port field because Paros Proxy uses 8080.
View 1 Replies
View Related
Nov 24, 2012
I'm having troubles to configure the path on windows 8 to use ADB on my laptop...
View 2 Replies
View Related
Oct 27, 2010
I want to configure gmail in my android emulator, i went to the "Add a Google Account" under settings/Add Account, i have given gmail username and password, but after some time it is saying that "Can't establish reliable data connection to the Server" ? What is this error ?
View 1 Replies
View Related
Oct 27, 2010
I want to configure gmail in my android emulator, i went to the "Add a Google Account" under settings/Add Account, i have given gmail username and password, but after some time it is saying that "Can't establish reliable data connection to the Server" ? What is this error ?
View 2 Replies
View Related
Aug 25, 2010
I'm new to Android development and have just started playing with the SDK.
One thing that is annoying is that the emulator always start with Japanese settings. I have found out how to fix this by going into settings and remove all the Japanese stuff, but this is time consuming since I have to do it every time I start the emulator.
Can someone help me change the startup settings for the emulator?
View 8 Replies
View Related
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
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
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
Dec 24, 2009
I wrote a http proxy on Android 1.5 four months ago. It can work properly on both 1.5 and 1.6 emulator, with APN proxy setting to 127.0.0.1. However, when i port this app to 2.0.1, it's not working anymore. Did browser on emulator 2.0.1 change its behavior? It seems that the browser no longer consider APN proxy as http proxy anymore. Or it's simply a bug on emulator?
View 2 Replies
View Related
Oct 31, 2010
Is it possible to stream video to an Android device by using Windows Media Services? Which protocol should I use between RTSP and HTTP? Actually, I have a video file (MP4 format) at a server and I want to stream video files to an Andriod device.
View 1 Replies
View Related
Dec 4, 2009
This link has some suggestions for proxy setting for early (pre-1.5) and later (1.5 thru 1.6) Android emulators. Basically, the older emulator used a "com.android.provider.setting.db" database or -http-proxy command line switch to set proxy/port/userid/ password. Android 1.5 and 1.6 used: Home->Menu->Settings->WirelessControls- >MobileNetworks->Access Point Names to set multiple proxy/port/userid/
View 6 Replies
View Related
Mar 24, 2010
I'm trying to use wireshark to capture some HTTP packets exchanged between the emulator and a website. However, even though I can see the web content on the emulator browser, wireshark does not display any HTTP packets exchanged between the emulator and the website. Why is this?
View 2 Replies
View Related
Oct 26, 2010
Let's say I want to perform a quick HTTP post to a website within my android app. If I were to set up the http client and send the post all in the onCreate method of the main screen (inside the UI thread) just for testing purposes, what would I use to quickly see what the response is to the post? I tried something quick and dirty below inside the onCreate method when the app first opens and nothing really happens, is there something more I need to do/obviously my toast idea is just bad.
HttpClient httpClient = new DefaultHttpClient();
HttpPost post = new HttpPost("http://forecast.weather.gov/zipcity.php?inputstring=04419");
HttpResponse httpResp;
try {
httpResp = httpClient.execute(post);
StatusLine status = httpResp.getStatusLine();
Toast.makeText(getApplicationContext(), (CharSequence) status, Toast.LENGTH_SHORT).show();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();}
View 1 Replies
View Related
Mar 17, 2009
Is there an easy way to inject a header into all HTTP request sent from the emulator, including HTTP requests made by my app and also by the built-in web browser? I need this ability to model the behavior of a carrier gateway. I tried running the emulator through Fiddler as a proxy because I know how to manipulate HTTP requests in Fiddler, but that that didn't work. The emulator was successfully able to make the first HTTP request, but choked on subsequent ones. Reading this list, it seems that getting the emulator to use a proxy is not is not that easy. If this is the only way to do what I need, then I'll certainly give it another shot and post details about any problems I encounter. I am just wondering if perhaps there is an easier way to inject a header.
View 3 Replies
View Related
Aug 20, 2010
I would like to know if there is anyway to debug the HTTP response with the android emulator. my logs show that the response is not arriving complete to the application and i would like to know if it is the server that does not send the complete response or if my application is not processing the response completely.
I tried hooking up Fiddler and Blurp proxy, it actually works with Blurp proxy but only for HTTP and as you may guess i need it also for HTTPS
View 2 Replies
View Related
Apr 4, 2010
Right now my app needs to use the device´s (emulator´s) Internet connection. Ive read before that since my computer has Internet the emulator should be able to access it. On linux everything works but on windows the emulator can´t find the DNS I´m using, event if I add -dns-server 8.8.8.8,8.8.8.7 on Eclipse´s launch options.
Ive tried on Android 1.6 and 2.1. Is there anything else I should try?
View 9 Replies
View Related
Aug 27, 2009
Can we uninstall android Application packages such as Music, Media Provider application and re-intsaller it in windows android emulator? I've modified source code of these applications in android source code in linux machine, now I wanted to install APK files in windows Emulator. Can I do that?
View 2 Replies
View Related