Basic Map-Application

Tutorials that use the MapActivity. Many using GPS functionality.

How can I let the Map application connect to the web?

Postby gaojinxuan » Tue Dec 04, 2007 7:28 am

HI.

My office computer connect to the internet through proxy server with username and password. How can I let the Map application connect to the web?

Thanks a lot! :roll:
gaojinxuan
Freshman
Freshman
 
Posts: 5
Joined: Tue Dec 04, 2007 2:58 am

Top

BasicMap Fail

Postby gaojinxuan » Tue Dec 04, 2007 7:41 am

Hi.
I am working on the simple Android Basic Map application.
However, after running the BasicMap application, only the Blank screen without any map show on my Android emulator.
Would you please tell me how to active the Map application under the network with proxy and require Auth username and password?

Thanks a lot!
Attachments
BasicMap.JPG
My Basic Map application result
BasicMap.JPG (24.37 KiB) Viewed 12252 times
gaojinxuan
Freshman
Freshman
 
Posts: 5
Joined: Tue Dec 04, 2007 2:58 am

Postby plusminus » Tue Dec 04, 2007 9:42 am

Hello ,

Have a look at this networking/proxy - issue, it helped already before :!:

Let us know if it helped you :)

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Proxy Issue

Postby gaojinxuan » Tue Dec 04, 2007 10:36 am

Hi.

plusminus

Thanks for you reply.
I've already tried this method many times, but it did not work for my system.
I use Windows XP SP2 and the firewall was closed and only one connection enabled.
The only thing is my proxy server need authentication.
In the Eclipse, I use the same proxy server and it works. But in android emulator, it never works.
Please help! Thanks a lot
Attachments
proxy setting in Eclipse.JPG
proxy setting in Eclipse.JPG (62.35 KiB) Viewed 12248 times
gaojinxuan
Freshman
Freshman
 
Posts: 5
Joined: Tue Dec 04, 2007 2:58 am

Postby plusminus » Tue Dec 04, 2007 4:10 pm

Hello gaojinxuan,

the last thing that I could find is from the GoogleGroups:
You can launch your emulator through a software that would direct all the application traffic through a proxy
i would suggest sockcap32 in case u have a sock4/5 proxy or proxifier or proxychain if u have a http proxy like squid

Download sockcap32 : http://www.onlinedown.com/detail/4894.htm


Never been using that program, nothing I can tell about it or how to use it :|

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Problem Solved!!!

Postby gaojinxuan » Wed Dec 05, 2007 5:09 am

Dear plusminus:

Thanks for your great information.
I solved the problem finally. This is the link you provided me.

http://groups.google.com/group/android- ... 998b25fc9c
And I found this reply information from Aditya
From: Aditya <adi.ya...@gmail.com>
Date: Mon, 19 Nov 2007 06:37:02 -0800 (PST)
Local: Mon, Nov 19 2007 10:37 pm
Subject: Re: Access the web behind a proxy
Hey Adrian thats a bad news ....
but i guess its not all that bad ....there is one last option i can
think of but it'll be bit slow ...
but u'll have internet access on ur emulator...but don't try maps on
its coz it wud give u speeds of around 10kBps

get HTTPTunnel ( http://www.http-tunnel.com/html/ ) ....
install it and set it to use your proxy server
it's establish a tunnel over http(something that'll never be blocked)
it'll run a socks proxy on port 1080 by default ...
so make proxifier use this proxy (localhost:1080)
and make sure HTTPTunnel is excluded from proxifier...or else it'll
get stuck in a loop
best option proxify only ur emulator


this should probably help...
in case it doesn't IM me i'm online till 2 in the night Indian
Standard Time

I got the proxifier tool and HttpTunnel tool. Follow his suggestion, I made it finally.
One important information is that my proxy server can not support https connection. And even the speed is quite slow. My Android emulator can connect to the internet. Great!
Thanks.
gaojinxuan
Freshman
Freshman
 
Posts: 5
Joined: Tue Dec 04, 2007 2:58 am

Top

Postby plusminus » Wed Dec 05, 2007 10:38 pm

Hello gaojinxuan,

No Problem =)

Best Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby venkat » Thu Dec 13, 2007 12:55 pm

Hi Gaojinxuan,
Can u tell me , How did u solve ur problem. can u please send me he screen shot of ur works that means , how to set settings of sockcap and http settings, i tried but i don't know exactly how to do it. if possible, can u send me the screen shot of each settings. thanks,

regards,
venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

local map

Postby tp.hrbeu » Mon Dec 31, 2007 4:37 am

is that possible to download a piece of map to local system and use it in the further in case of offline.
tp.hrbeu
Freshman
Freshman
 
Posts: 3
Joined: Sat Dec 29, 2007 11:59 pm

Postby plusminus » Thu Jan 03, 2008 12:35 pm

Hello tp.hrbeu,

hm, I don't know how long the AndroidOS caches the Map-Data downloaded... As the required data after browsing the maps for some minutes would be pretty large, I think they are just cached but not saved.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby inter » Thu Mar 06, 2008 2:46 am

Hii,plusminus

How to locate the statue of liberty exactly(Point(x,y) in the your source code )

I want to locate another place .How to define a position ? can you show me ??

Thanks

Regard
inter
Junior Developer
Junior Developer
 
Posts: 23
Joined: Thu Feb 21, 2008 10:13 am

Postby plusminus » Fri Mar 07, 2008 1:00 am

Hello inter,

you want GPS-Locations of other places :?:

I do it this way:
:arrow: http://maps.google.com/
There you'll see a link in the right, just above the map, named "Link to this page".
Everytime you pan the map it gets updated. You'll find the Lat/Lng within it.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

http proxy problem

Postby bjreddi » Tue Apr 08, 2008 11:17 am

Hi Plusminus,

I wrote a small application which needs to connection with internet.
In my office we use http proxy.

we set up the http proxy in emulator in this way:

-First started android emulator
- opened the adb shell from tools directory
- then entered the command
sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db "INSERT INTO system
VALUES(99,'http_proxy','HOST:PORT');"

-where HOST: HOST server address
and port is for us it was 80

and then
- Re started the emulator
- enter this command to see http proxy was properly configured
sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db "SELECT * FROM system"

and we got the result like this:
1|music_volume|3
2|voice_volume|3
3|ringer_volume|3
4|dim_screen|0
5|stay_on_while_plugged_in|1
6|screen_off_timeout|30000
7|font_scale|1.0
8|debug_app|
9|wait_for_debugger|1
10|show_processes|1
99|http_proxy|wwwproxy:80

- After that we opened the android emulator and select Browser
- It opened the web brower with google.com
-But when i entered some search string for eg: java
- i got ERROR:

Network Error
----------------
Failed to Connect server

This is the problem. Can anyone help me

Thanks in advance

regards,
Jyothi
bjreddi
Junior Developer
Junior Developer
 
Posts: 17
Joined: Thu Apr 03, 2008 1:24 pm

Re: Problem Solved!!! Pls Help ...

Postby appu » Wed Apr 30, 2008 6:31 am

gaojinxuan wrote:Dear plusminus:

Thanks for your great information.
I solved the problem finally. This is the link you provided me.

http://groups.google.com/group/android- ... 998b25fc9c
And I found this reply information from Aditya
From: Aditya <adi.ya...@gmail.com>
Date: Mon, 19 Nov 2007 06:37:02 -0800 (PST)
Local: Mon, Nov 19 2007 10:37 pm
Subject: Re: Access the web behind a proxy
Hey Adrian thats a bad news ....
but i guess its not all that bad ....there is one last option i can
think of but it'll be bit slow ...
but u'll have internet access on ur emulator...but don't try maps on
its coz it wud give u speeds of around 10kBps

get HTTPTunnel ( http://www.http-tunnel.com/html/ ) ....
install it and set it to use your proxy server
it's establish a tunnel over http(something that'll never be blocked)
it'll run a socks proxy on port 1080 by default ...
so make proxifier use this proxy (localhost:1080)
and make sure HTTPTunnel is excluded from proxifier...or else it'll
get stuck in a loop
best option proxify only ur emulator


this should probably help...
in case it doesn't IM me i'm online till 2 in the night Indian
Standard Time

I got the proxifier tool and HttpTunnel tool. Follow his suggestion, I made it finally.
One important information is that my proxy server can not support https connection. And even the speed is quite slow. My Android emulator can connect to the internet. Great!
Thanks.




Hi Gaojinxuan,
Can u tell me , How did u solve ur problem. can u please send me he screen shot of ur works that means , how to set settings of sockcap and http settings, i tried but i don't know exactly how to do it. if possible, can u send me the screen shot of each settings.

Thanks in advance :( :( :(

Appu
appu
Freshman
Freshman
 
Posts: 3
Joined: Thu Apr 17, 2008 5:52 am

Postby venkat » Wed Apr 30, 2008 7:53 am

Same problem here too. Can you anyone tell how to solve this problem please :)
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Top
PreviousNext

Return to Map Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest