You'll probably need to create your own MapActivity and draw the
location and any other graphics yourself with an Overlay. Here are
some code snippets:
In your MapActivity:
protected void onCreate(Bundle icicle) {
.
.
lapDataOverlay = new LapDataOverlay
(this,startFlag,endFlag,marker,bubbleView);
mapView.getOverlays().add(lapDataOverlay);
.
.
}
In your Overlay:
private Drawable crossHairs;
public void draw(Canvas canvas, MapView mapView, boolean shadow) {
.
.
crossHairs.setBounds(currScreenLoc.x-w/2, currScreenLoc.y-h/2,
currScreenLoc.x+w/2, currScreenLoc.y+h/2);
canvas.rotate(-bearing,currScreenLoc.x,currScreenLoc.y);
crossHairs.draw(canvas);
.
.
}
Jeff
Visit Trackaroo.com!
Trackmaster - Motorsports Lap Timer
On Jun 17, 3:47 am, plargo <[email protected]> wrote:
> I wanna to launch google map and locate to a specific co-ordination.
> Now I can do this using below code:
> String pStr = "geo:40,116.28?z=13";
> Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(pStr));
> startActivity(intent);
>
> But, the launched google map there is no dot(like function of my
> location) in the view to indicates exact location, does anyone know
> how to let the dot displayed when google map launched? Just by sending
> intent.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---