How can I to centered my location with mylocationoverlay?
<p>I can take my location with myLocationOverlay easily, and I want to set as a center of my location, I tried  map controller:</p>

<pre><code>MapController mc = myMap.getController();
mc.animateTo();
mc.setCenter(myLocOverlay.getMyLocation());
</code></pre>

<p>these code didnt work so I changed</p>

<pre><code>p = new GeoPoint((int) (myLocOverlay.getMyLocation().getLatitudeE6()), (int) (myLocOverlay.getMyLocation().getLongitudeE6()));

mc.setCenter(p);
</code></pre>

<p>But there is no good news. I took null pointer exception then I assigned new location before myLocationOverlay() but its not working.. Thanks for advance.. </p>
