Secondo appuntamento Gtub Milano
Il 24 novembre, alle 19.30, in centro a Milano (vicino piazzale Lodi) si terrà il secondo incontro del Gtub Milano.
Si parlerà dello sviluppo di Android, NFC e per chi volesse si potrà proseguire la serata in un pub bavarese.
Tutte le info qui:
http://www.googlab.it/2011/11/gtug-secondo-incontro-del-gtug-milano.html
Condividi...
Android Mapview: getLatitudeSpan and getLongitudeSpan don’t work
Hi there,
during last days I had to handle some problems using methods getLatitudeSpan and getLongitudeSpan of a MapView in my MapActivity.
My MapActivity is a child activity of a tabbed main Activity, and I needed to obtain width and height (in terms of latitude and longitude) of the current map showed.
MapView gives us two methods to retrive these informations:
- getLatitudeSpan(); gives us back the latitude span in decimal degrees * 1,000,000
- getLongitudeSpan(); gives us back the longitude span in in decimal degrees * 1,000,000
(Remember that, perhaps for performance reason, we'll use MapView with the integer rappresentation of the double value, obtained multiplying by one million the latitude and longitude)
But.... there is a problem.
If you run a code like the following:
Condividi...