How to drag & drop a map marker on mapview

Hi,

is there any way I can have a user drag a marker (pin) on a mapview to a new location? I know that one can detect where on the map the user is tapping but has anyone been able to drag & drop a marker to a new position on the map? If so, could you please share the code?

Jens