Android-SDK-1.5-Win-32: network connection beyond firewall

457 views
Skip to first unread message

Mallikarjuna Prasanna KG

unread,
Apr 20, 2009, 11:56:26 AM4/20/09
to android-d...@googlegroups.com
Hello Android Developers,

I am not able to connect to internet in SDK 1.5 win 32.

I am using browser and it always shows web page not available.

I tried setting
=====
./adb shell sqlite3
/data/data/com.google.android.providers.settings/databases/settings.db
“\”INSERT INTO system VALUES(99,’http_proxy’,’ [host_or_IP]:[port]’);

==========================================
didn't work


Bellow is some some log cat output while fetching.

04-20 21:04:06.240: ERROR/ActivityThread(610): Failed to find provider
info for android.server.checkin
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): Error recording stats
04-20 21:04:06.250: ERROR/GoogleHttpClient(610):
java.lang.IllegalArgumentException: Unknown URL
content://android.server.checkin/stats
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
android.content.ContentResolver.insert(ContentResolver.java:473)
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
com.google.android.net.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:192)
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:212)
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:282)
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
com.android.googlesearch.SuggestionProvider.query(SuggestionProvider.java:134)
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
android.content.ContentProvider$Transport.bulkQuery(ContentProvider.java:112)
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:97)
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
android.os.Binder.execTransact(Binder.java:287)
04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
dalvik.system.NativeStart.run(Native Method)
04-20 21:04:07.510: INFO/ActivityManager(568): Starting activity:
Intent { action=android.intent.action.SEARCH
comp={com.android.browser/com.android.browser.BrowserActivity} (has
extras) }
04-20 21:04:07.620: VERBOSE/webkit(697): guessURL before queueRequest: yahoo.com
04-20 21:04:08.479: INFO/InetAddress(697): Unknown host yahoo.com,
throwing UnknownHostException
04-20 21:04:08.500: ERROR/browser(697): onReceivedError -2
http://yahoo.com/ The URL could not be found.
04-20 21:04:13.169: DEBUG/dalvikvm(610): GC freed 6273 objects /
561480 bytes in 135ms

====================================================================


Also I tried with "http_proxy" environmental variable but it didn't work for me
I set something like this bellow
===========================
http_proxy=http://usrname:pas...@proxy.name.com:9999
=====================

Any body tried and succeeded network connection with proxy in SDK 1.5

Thanks and regards,
Mallikarjuna

Xeros

unread,
Apr 30, 2009, 8:24:42 AM4/30/09
to Android Developers
Hello, Mallikarjuna

There's many of solution. (insert http_proxy into settings.db, use -
http-proxy option etc...)
But change the APN is the best practice I've tested.

1. run emulator (either v1.1 or v1.5 OK)
2. go to Settings - Wireless controls - Mobile networks - Access Point
Names
3. Choose any APN on list
4. change the APN value as below

- Name : Android
- APN : Internet
- Proxy : your proxy address
- Port : your proxy port
- Username : <Not set>
- Password : <Not set>
- MCC : 310
- MNC : 260

5. Save the APN and run browser

Plz try this way and let me know it works or not.

Thanks and regards,
Xeros


On 4월21일, 오전12시56분, Mallikarjuna Prasanna KG <kgmprasa...@gmail.com>
wrote:
> HelloAndroidDevelopers,
>
> I am not able to connect to internet inSDK1.5win 32.
>
> I am using browser and it always shows web page not available.
>
> I tried setting
> =====
> ./adb shell sqlite3
> /data/data/com.google.android.providers.settings/databases/settings.db
> "\"INSERT INTO system VALUES(99,'http_proxy',' [host_or_IP]:[port]');
>
> ==========================================
> didn't work
>
> Bellow is some some log cat output while fetching.
>
> 04-20 21:04:06.240: ERROR/ActivityThread(610): Failed to find provider
> info forandroid.server.checkin
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): Error recording stats
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610):
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): atandroid.content.ContentResolver.insert(ContentResolver.java:473)
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> com.google.android.net.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:192)
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:212)
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:282)
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> com.android.googlesearch.SuggestionProvider.query(SuggestionProvider.java:134)
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): atandroid.content.ContentProvider$Transport.bulkQuery(ContentProvider.java:112)
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): atandroid.content.ContentProviderNative.onTransact(ContentProviderNative.java:97)
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): atandroid.os.Binder.execTransact(Binder.java:287)
> 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> dalvik.system.NativeStart.run(Native Method)
> 04-20 21:04:07.510: INFO/ActivityManager(568): Starting activity:
> Intent { action=android.intent.action.SEARCH
> comp={com.android.browser/com.android.browser.BrowserActivity} (has
> extras) }
> 04-20 21:04:07.620: VERBOSE/webkit(697): guessURL before queueRequest: yahoo.com
> 04-20 21:04:08.479: INFO/InetAddress(697): Unknown host yahoo.com,
> throwing UnknownHostException
> 04-20 21:04:08.500: ERROR/browser(697): onReceivedError -2http://yahoo.com/The URL could not be found.

stevensli

unread,
May 7, 2009, 2:37:48 AM5/7/09
to Android Developers
Changing APN only works for the browser, but not for google map.

On 4月30日, 下午8时24分, Xeros <zerosuni.sams...@gmail.com> wrote:
> Hello, Mallikarjuna
>
> There's many of solution. (insert http_proxy into settings.db, use -
> http-proxyoption etc...)
> > 04-20 21:04:08.500: ERROR/browser(697): onReceivedError -2http://yahoo.com/TheURL could not be found.

Nitin Gautam

unread,
May 16, 2009, 12:06:41 PM5/16/09
to Android Developers
This works like a charm :) for internet site ...But Intranet site stop
working not able to browse internal sites.

What to do?

On Apr 30, 5:24 pm, Xeros <zerosuni.sams...@gmail.com> wrote:
> Hello, Mallikarjuna
>
> There's many of solution. (inserthttp_proxyinto settings.db, use -
> > 04-20 21:04:08.500: ERROR/browser(697): onReceivedError -2http://yahoo.com/TheURL could not be found.

Adrian D

unread,
Jun 17, 2009, 9:49:13 AM6/17/09
to Android Developers
Also the local intranet is working for me.

On 16 Mai, 18:06, Nitin Gautam <gautam.ni...@gmail.com> wrote:
> This works like a charm :) for internet site ...But Intranet site stop
> working not able to browse internal sites.
>
> What to do?
>
> On Apr 30, 5:24 pm, Xeros <zerosuni.sams...@gmail.com> wrote:
>
>
>
> > Hello, Mallikarjuna
>
> > There's many of solution. (inserthttp_proxyinto settings.db, use -
> > http-proxyoption etc...)
> > But change the APN is the best practice I've tested.
>
> > 1. run emulator (either v1.1 or v1.5 OK)
> > 2. go to Settings - Wireless controls - Mobile networks - Access Point
> > Names
> > 3. Choose any APN on list
> > 4. change the APN value as below
>
> > - Name : Android
> > - APN : Internet
> > -Proxy: yourproxyaddress
> > - Port : yourproxyport
> > > com.google.android.net.GoogleHttpClient.executeWithoutRewriting(GoogleHttpC lient.java:192)
> > > 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> > > com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:212)
> > > 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> > > com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:282)
> > > 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> > > com.android.googlesearch.SuggestionProvider.query(SuggestionProvider.java:1 34)
> > > 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): atandroid.content.ContentProvider$Transport.bulkQuery(ContentProvider.java: 112)
> > > 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): atandroid.content.ContentProviderNative.onTransact(ContentProviderNative.ja va:97)
> > > 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): atandroid.os.Binder.execTransact(Binder.java:287)
> > > 04-20 21:04:06.250: ERROR/GoogleHttpClient(610): at
> > > dalvik.system.NativeStart.run(Native Method)
> > > 04-20 21:04:07.510: INFO/ActivityManager(568): Starting activity:
> > > Intent { action=android.intent.action.SEARCH
> > > comp={com.android.browser/com.android.browser.BrowserActivity} (has
> > > extras) }
> > > 04-20 21:04:07.620: VERBOSE/webkit(697): guessURL before queueRequest: yahoo.com
> > > 04-20 21:04:08.479: INFO/InetAddress(697): Unknown host yahoo.com,
> > > throwing UnknownHostException
> > > 04-20 21:04:08.500: ERROR/browser(697): onReceivedError -2http://yahoo.com/TheURLcould not be found.
> > > 04-20 21:04:13.169: DEBUG/dalvikvm(610): GC freed 6273 objects /
> > > 561480 bytes in 135ms
>
> > > ====================================================================
>
> > > Also I tried with "http_proxy" environmental variable but it didn't work for me
> > > I set something like this bellow
> > > ===========================
> > >http_proxy=http://usrname:pas...@proxy.name.com:9999
> > > =====================
>
Reply all
Reply to author
Forward
Message has been deleted
0 new messages