a possible bug in com.google.android.maps.GeoPoint

by zero » Thu, 25 Feb 2010 20:48:23 GMT


Sponsored Links
 howdy!

i see strange behaviour in my logs:
take the following code, assuming location is a valid filled object:
                Location newLoc=(Location)message.obj;
                Log.d("DEBUGLOCAL","passed loc ob="+newLoc.toString());
                int intlat=(int)(newLoc.getLatitude() * 1E6);
                int intlon=(int)(newLoc.getLongitude() * 1E6);
                Log.d("DEBUGLOCAL","passed loc converted INT values\n
lat="+intlat+"\n lon="+intlon);
              GeoPoint newPos=new GeoPoint(
                          intlat,
                          intlon
                         );
              Log.d("DEBUGLOCAL","passed loc create GEOPOINT values\n
lat="+newPos.getLatitudeE6()+
                         "\n lon="+newPos.getLongitudeE6());
i get the following output
  229              DEBUGLOCAL  D  passed loc converted INT values
  229              DEBUGLOCAL  D   lat=123002050
  229              DEBUGLOCAL  D   lon=123002050
  229              DEBUGLOCAL  D  passed loc create GEOPOINT values
  229              DEBUGLOCAL  D   lat=80000000  <----WTF??
  229              DEBUGLOCAL  D   lon=123002050

that surely isn't right ?
stable across 1.6 to 2.1 gmaps emulators.
as google api page doesn't have a bug tracker, does this belong into
the android bugtracker ?

ideas for solutions welcome.

cheers,
zero

--



Other Threads

1. glCompressedTexImage2D formats

Hi List,

I am relatively new to opengl/android so bear with me. My questions
are:

1) what compressed formats are supported for glCompressedTexImage2D on
android? looking for hardware accelerated compressed texture formats
(like DXT1/DXT5 on PC, or PVR on IPhone).
2) are these formats different for different android phones?
3) if enumerated, are there a couple of main formats available, what
are they?
4) are there tools to convert images to those formats?

Thank you

D



--~--~---------~--~----~------------~-------~--~----~

2. SensorManager Query

Hi,

I would like to get the orientation of the phone i.e. its compass
bearing (azimuth), pitch (around X axis) and roll (around Y axis).

I have found the method 'getOrientation(float[] R, float[] values)'
which seems to serve this purpose, however I am unsure what I need to
pass to it as a parameter.

Apparently the two parameters are:
R               rotation matrix see getRotationMatrix(float[], float[],
float[], float[]).
values  an array of 3 floats to hold the result.

What is this rotation matrix and how do I create it?
Also the float array 'values' - is this just an empty array which it
uses to store the results of the method call, or does it need
populating with specific values?

Thanks in advance
--~--~---------~--~----~------------~-------~--~----~

3. SQlite DB

4. How to write async socket with Android?

5. Which Google calendars can Android view?

6. Persistance of dynamic objects, your advice

7. performance measurement of codecs inside Android