Looking for sample code on Drag & Drop, and Long-Press dialog boxes

Anyone have sample code that shows how to handle a long-press of a TableView item under Android?
i.e. gives a modal context-sensitive menu when you hold-down a TableView item - many apps do this.

Also - sample code that allows you to drag-drop to rearrange a list of items in a TableView? QuickSettings (customize screen) does this to rearrange a list of items.

[import]uid: 6396 topic_id: 1840 reply_id: 301840[/import]