Bad PictureMarkerSymbol size on a Map

Discussion created by technicix on Feb 28, 2013
Latest reply on Jul 27, 2013 by VinceThom

I have a problem with PictureMarkerSymbol size which is showed on a map. I don't know why, but graphic on a map has double size. My code is:

Drawable icon = mContext.getResources.getDrawable(R.drawable.icon);
PictureMarker pictureMarker = new PictureMarker(icon);
//add to a GraphicLayer
Point p = new Point(longitude, latitude);
Point point = (Point) GeometryEngine.project(p, wgsReference, mapReference);
Symbol symbol = pictureMarkerSymbol;
HashMap<String, Object> attrMap = new HashMap<String, Object>();
attrMap.put(ArcgisMapActivity.ATTR_TITLE, title);
attrMap.put(ArcgisMapActivity.ATTR_ID, id);

Graphic graphic = new Graphic(point, symbol, attrMap, null);

Thanks for any ideas