GaneshBisht / apps-for-android

Automatically exported from code.google.com/p/apps-for-android
Apache License 2.0
0 stars 0 forks source link

Panoramio: No photos are shown #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Panoramio and Radar from Android market
2. No photos are shown at all. 
3. Pressing the "Search Panoramio" button shows a list of 
beautifull photos, but totally unrelated to my locations

What is the expected output? What do you see instead?
Ive confirmed several locations, i.a.
http://www.panoramio.com/map/#lt=55.666288&ln=12.514336&z=2&k=2&a=1
&tab=1 is full of images. I'd expect them to show up in the app, 
but none of them are shown on the Panoramio map. 
Actually, Ive panned a lot around, but only once I found a 
Panoramio icon (the star in a circle). When zooming it seemed to 
skirt around a bit (nothing happened when I tapped it).

What version of the product are you using? On what operating 
system?
HTC Desire (Android 2.1), Danish.

Please provide any additional information below.
Selecting one of the beautifull photos (totally unrelated to my 
location) made me jump into Radar, and I could see the direction 
and distance was actually dependent on the photo selected.

Original issue reported on code.google.com by jacob.nordfalk on 14 May 2010 at 5:51

GoogleCodeExporter commented 9 years ago
OK, found the error.

In class ImageManager, you format an URL whithout specifying locale:

        @Override
        public void run() {

            String url = THUMBNAIL_URL;
            url = String.format(url, mMinLat, mMinLong, mMaxLat, mMaxLong);

This will format according to the default locale
On my phone I'm running Danish locale.

This makes the URL 
//www.panoramio.com/map/get_panoramas.php?
order=popularity&set=public&from=0&to=20&miny=57,587883&minx=10,343802&maxy=57,8
78212
&maxx=10,733816&size=thumbnail

instead of
//www.panoramio.com/map/get_panoramas.php?
order=popularity&set=public&from=0&to=20&miny=57.560585&minx=10.309117&maxy=57.8
13110
&maxx=10.699131&size=thumbnail

(note the commas used as decimal seperator)

Please correct this to
            url = String.format(Locale.US, url, mMinLat, mMinLong, mMaxLat, 
mMaxLong);

thanks.

Jacob

Original comment by jacob.nordfalk on 14 May 2010 at 7:13