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?

Android :: How to set HTTP Proxy in Real Device?


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 :: 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 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 :: 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

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

Samsung Galaxy I7500 :: Proxy Via HTTP For Using Android Market?

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

General :: How To Set HTTP Proxy For Apps

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

Pass App HTTP Traffic Through Proxy Installed On PC?

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

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 View Related

Android :: My Location Not Getting In Real Device

Mar 31, 2010

I have Samsung Galaxy. I want to find my latitude and longitude programatically. I can get the location on emulator using eclips Emulator Controlbut, but not able to get the latitude and longitude in device. Is there any settings in mobile which I have to do?

View 16 Replies View Related

Android :: Debugging On Real Device

Sep 17, 2010

I have gotten to to the point where I need to test my application on a real Android device. I have obtained an Motorola Droid phone and attached it to my computer (Windows).I have installed the USB driver, and I believe that my computer can see the phone. When I start up the DDMS it shows my device as 'Online'. I cannot, however, figure out how to get the debugger to use the device instead of the emulator. The Android documentation states that when I run my program from within Eclipse that I should be presented with a 'Device Chooser', but that does not happen. I read somewhere else that pressing F11 will bring up the Device Chooser, but it only runs the application on the emulator. I know there is probably something obvious that I am missing here, but I cannot figure out what it is.

View 10 Replies View Related

Android :: Real Device Fps Is Different Then Emulator?

Jul 8, 2010

I developed a game. On the emulator (not froyo) I am getting like less than 10 fps. But on my Nexus One with froyo I am getting 50 fps. Is this normal? Which one should I trust, I want my game to perform good on phones without froyo

View 4 Replies View Related

Android :: Which Is Gps Provider For Real Device?

Apr 15, 2009

On emulator for simulations of GPS there is mock provider "gps" But which is provider for real device , which provider name requires to give? Is it not require to give provider name for appl of real device, will somebody clear for this issue.

View 2 Replies View Related

Android :: Can't Install App On Real Device / Way To Fix?

Jun 3, 2010

I am developing application using Eclipse. My friend has HTC Hero and I am trying to run my application on it, but it says that the application could not be installed. I did the steps which are described in Android DevGuide. I.e. exported my app with the generated key. Am i right assuming that this is enough? As i understand eclipse signs and aligns application automatically when selecting Export.

View 4 Replies View Related

Android :: No Log Cat Message When Debugging On Real Device

Oct 2, 2010

Why don't I get LogCat messages when I debug on a real device as opposed to the emulator?

View 7 Replies View Related

Android :: Testing Game On Real Device

Mar 13, 2009

I am making an android game, but i do not have the money to buy a developer phone. The game is not finished but i should it is testable.. and if i dont test it know i may have a big problem later... it is playable though. Is there somebody who has a real device and wants to test the game for me, just starting it up and playing it a little bit is good enough. It's a 2d airplane shoot gane, much like the old raptor game. If someone is interested please reply, i will sent you the (singed) APK and with some things i want to test (using both the buttons as well as touch screen for gameplay).

View 7 Replies View Related

Android :: Detect On Emulator And Not On Real Device

Jun 15, 2010

Is there a simple way to detect that your code is running on the android emulator and not on a real device? I want to work around differences between emulator + real, e.g. with respect to network connectivity detection.

View 2 Replies View Related

Android :: Communication Between Emulator And Real Device

Mar 29, 2010

I know we can communicate between 2 instances of Emulator. But Is it possible to communicate between the a read Device and Emulator?

View 6 Replies View Related

Android :: Why I Cannot Play Ringtone In Real Device?

Sep 3, 2009

In the emulator 1.5, my app can get and play the contacts ringtone. but after the app installed in the real G2, the app can not play the contacts ringtone, and it does not throw any error. in the G2, I have already the contacts ringtone. Does anybody encounter this before?

View 5 Replies View Related

Android :: Can't Fake Call Into Real Device / Fix It?

Aug 23, 2009

Can i fake a call into a real device as i can do with the emulator. When i debug my program on my real device, the "Telephony Actions" of DDMS is disabled and i can't fake a call anymore.

View 2 Replies View Related

Android :: Test App On Real Device Without Publishing?

Jan 18, 2010

Is there a way to test the application on the real device without publishing to android market?

View 2 Replies View Related

Android :: How To Mock Location During Presentation On Real Device?

Jun 7, 2010

I've read this post about mocking location with custom provider, but I am looking for a way to mock the location during a presentation, is that possible?

View 1 Replies View Related

Android :: Logging Messages From Real Device On Logcat

Jun 17, 2010

while my time developing on android I was looking for a functionality to get logcat messages from my real device (when starting an app on it from eclipse) and not only from my emulator.Does someone know how to enable such a feature?

View 3 Replies View Related

Android :: Phone Doesn't Allow To Test App On Real Device

Oct 29, 2010

I'm trying to test a test app I developed on android 2.2 sdk on my htc phone with Froyo on it (2.2). In the emulator it works fine, when I export as unsigned app and try to install on the phone, it doesn't allow me, just telling me 'application non installed'. The phone has the settings to accept installation of non android application, so I'm not sure why I can't test on it. Is it because it's not signed?

View 2 Replies View Related

Android :: Working Of LocationListener() In Real Time On Device?

Feb 12, 2009

i need to know about the LocationListener() working in the real time. Does it expect the user(device) to move in order to update the current location details or it automatically updates when ever the gps is enabled? Another query is regarding the getLastKnownLocation(). When is that last known location will be lost and thus returns null... (in realtime).

View 3 Replies View Related

Android :: Installing App On Real Device Without Publishing & Eclipse

Jan 18, 2010

Do you about how to install application without any developer's tool(Eclipse, android SDK tools) no the real device? I've compiled and created .apk file. Now I am gonna send apk file to my friend.He is not android developer. And he doesn't know about how to use eclipse. And I don't want to publish my application to android market.Is there a way to launch the application on real device without publishing and Eclipse? I've found a solution related this issue.

http://androidforums.com/t-mobile-mytouch-3g/18657-best-way-load-apk-file-touch-3g.html

But I am not sure this post.Because it has risk.Any suggestion?

View 4 Replies View Related

Soap Calling Is Not Supported On Android Real Device

Jul 27, 2012

i have developed one login form in android application calling mysql database calling soap webservices.it is worked successfully on android emulator.But not worked on android real device...why my android real device is not supported soap calling.

Quote:

package com.androidlogin.ws;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope ;
import org.ksoap2.transport.HttpTransportSE;

[code]....

my logout window having:

displayed dis message on my logout window: 07-20 04:26:22.728: D/SntpClient(71): request time failed: java.net.SocketException: Address family not supported by
protocol

In my device is displayed:below error is diplayed Java.net.SocketException:The operation timed out.

my emulator is 2.2.my android device version is 2.2.1.

View 4 Replies View Related







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