@Archana - Meanwhile, I had implemented getting the map image using the following snippet: // Code in "OnLongPressListener"
------------
------------
map.setDrawingCacheEnabled(true);
Bitmap drawingCache = map.getDrawingCache(true);
Log.d(TAG,"Drawing cache = " + drawingCache.getWidth()); // 480
Bitmap bitmap = Bitmap.createBitmap(drawingCache, 0, 0, drawingCache.getWidth(), drawingCache.getHeight());
Log.d(TAG,"Bitmap cache = " + bitmap.getWidth()); // 480
map.setDrawingCacheEnabled(false);
------------
------------
protected void onDraw(Canvas canvas) {
if (X > 0 && Y > 0) {
Bitmap croppedBitmap = Bitmap.createBitmap(bitmap, (int) X - 35, (int) Y - 35, 70, 70);
Log.d(TAG, "cropped bitmap = " + croppedBitmap.getWidth()); // 70
int left = (int) X - 75;
int top = (int) Y - 150;
int right = (int) X + 75;
int bottom = (int) Y;
RectF dst = new RectF(left, top, right, bottom);
canvas.drawBitmap(croppedBitmap, null, dst, new Paint());
-------------
-------------
}
This worked before the SDK release (with the Beta version). However, returns me a black image now (and not a map image). Am I going wrong somewhere here?Thanks for your help.