blob: 910fa383e0bb27b9d1e2824bb29aed3efaff4b4f [file] [log] [blame]
page.title=Sharing Files with NFC
page.tags=NfcAdapter,Android Beam,share,file transfer
<div id="tb-wrapper">
<div id="tb">
<h2>Dependencies and prerequisites</h2>
<li>Android 4.1 (API Level 16) or higher</li>
<li>At least two NFC-enabled Android devices (NFC is not supported in the emulator)</li>
<h2>You should also read</h2>
<a href="{@docRoot}guide/topics/data/data-storage.html#filesExternal"
>Using the External Storage</a>
Android allows you to transfer large files between devices using the Android Beam file transfer
feature. This feature has a simple API and allows users to start the transfer process by simply
touching devices. In response, Android Beam file transfer automatically copies files from one
device to the other and notifies the user when it's finished.
While the Android Beam file transfer API handles large amounts of data, the Android Beam NDEF
transfer API introduced in Android 4.0 (API level 14) handles small amounts of data such as
URIs or other small messages. In addition, Android Beam is only one of the features available
in the Android NFC framework, which allows you to read NDEF messages from NFC tags. To learn
more about Android Beam, see the topic
<a href="{@docRoot}guide/topics/connectivity/nfc/nfc.html#p2p"
>Beaming NDEF Messages to Other Devices</a>. To learn more about the NFC framework, see the
<a href="{@docRoot}guide/topics/connectivity/nfc/index.html"
>Near Field Communication</a> API guide.
<b><a href="send-files.html">Sending Files to Another Device</a></b>
<dd>Learn how to set up your app to send files to another device.</dd>
<b><a href="receive-files.html">Receiving Files from Another Device</a></b>
Learn how to set up your app to receive files sent by another device.