xref: /aosp_15_r20/development/samples/browseable/DragAndDropAcrossApps/_index.jd (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker
2*90c8c64dSAndroid Build Coastguard Workerpage.tags="DragAndDropAcrossApps-new"
3*90c8c64dSAndroid Build Coastguard Workersample.group=ui
4*90c8c64dSAndroid Build Coastguard Worker@jd:body
5*90c8c64dSAndroid Build Coastguard Worker
6*90c8c64dSAndroid Build Coastguard Worker<p>
7*90c8c64dSAndroid Build Coastguard Worker
8*90c8c64dSAndroid Build Coastguard WorkerThis sample demonstrates how data can be moved between views within an
9*90c8c64dSAndroid Build Coastguard Workerapp or between different apps via drag and drop.
10*90c8c64dSAndroid Build Coastguard WorkerThis sample contains two separate Android applications: DragSource and
11*90c8c64dSAndroid Build Coastguard WorkerDropTarget. DragSource contains images and text that can be dropped into the DropTarget
12*90c8c64dSAndroid Build Coastguard Workerapp. Images are shared between the two apps through a URI for which the receiving app
13*90c8c64dSAndroid Build Coastguard Workermust request permission first, before it can be used.
14*90c8c64dSAndroid Build Coastguard Worker
15*90c8c64dSAndroid Build Coastguard WorkerIt also demonstrates the use of the DragStartHelper from the v13 support library to easily
16*90c8c64dSAndroid Build Coastguard Workerhandle drag and drop events.
17*90c8c64dSAndroid Build Coastguard Worker
18*90c8c64dSAndroid Build Coastguard Worker        </p>
19