My code doesn't work, I don't know why, there is no layout on my map,
below is my code.

                MyLocationOverlay mlo = new
MyLocationOverlay(this.getBaseContext(), mapview);
                List<Overlay> list = mapview.getOverlays();
                Canvas canvas = new Canvas();
                Bitmap bubbleIcon = 
BitmapFactory.decodeResource(mv.getResources(),
R.drawable.bubble);  // bubble.png file is under the /res/drawable.
                Point pix = new Point();
                GeoPoint point = new GeoPoint(
                                (int) (-73 * 1E6),
                                (int) (40 * 1E6));
                mapview.getProjection().toPixels(point, pix);
                Paint paint = new Paint();
                paint.setARGB(200, 0, 0, 255);
                canvas.drawBitmap(bubbleIcon, pix.y, pix.x, paint);
                mlo.draw(canvas, mapview, false);
                list.add(mlo);

Thank you for your help.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to