Wednesday, January 13, 2010

[android-developers] getDrawable() Resourses$NotFoundException

I'm trying to set a resourse in the onTable method of my map overlay.
It throws a Resourses$NotFoundException. I've also tried making it a
class variable and setting it from the MapView but I get the same
result.

@Override
public boolean onTap(GeoPoint gp, MapView mv)
{
OverlayItem item = new OverlayItem(gp, "", "");
Drawable drawable = Resources.getSystem().getDrawable
(R.drawable.target);
item.setMarker(altDrawable);
addOverlay(item);
return true;
}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate