I have my drawable object which works fine first time, but when I try to use it second time(clear map overlays list) nullExceptionPointer occurs.
my code:
Drawable myMarker=this.getResources().getDrawable(R.drawable.marker);;
then in many place I use (or rather try to use) myMarker.But it crushes.
I was trying to use Drawable from one activity in another activity. It was not working until I made it static.