I have found the answer. There is a class MyLocationOverlay to show the user's location.
On 11 nov, 18:54, psaltamontes <[EMAIL PROTECTED]> wrote: > Hi, > > I show the user's current location but I don't like how I do it. > > I use an overlay that always is in the center of the screen. I don't > like this because if the MapView doesn't fill the screen the position > of the overlays is not correct. I use the dimensions of the screen > because if I use the functions of the MapView getHeight() and > getWidth() they return zero, why? (I use fill_parent in the attributes > into AndroidManifest.xml) > > There is another way to show the user's current location? > > On 7 nov, 20:55,psaltamontes<[EMAIL PROTECTED]> wrote: > > > Thanks for your answer. > > > In SDK m5 I saw a little circle in the middle of the screen, when I > > modified the GPS position this little circle was always in the center. > > > I have tried this: > > > mapView.setReticleDrawMode(MapView.ReticleDrawMode.DRAW_RETICLE_OVER); > > > but the little circle doesn't appear. > > > I read the documentation but I don't find what I do wrong. In SDK 1, I > > need an "special" overlay to do this? > > > On 7 nov, 19:41, Mark Murphy <[EMAIL PROTECTED]> wrote: > > > >psaltamonteswrote: > > > > Hi. > > > > > How I can show the position (with the little circle) in a MapView in > > > > SDK 1? > > > > > There is a function similar to toggleShowMyLocation?. I need to use an > > > > overlay for this? > > > > setReticleDrawMode(mode) on MapView should do the trick. > > > > -- > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

