blob: 910fa383e0bb27b9d1e2824bb29aed3efaff4b4f [file] [log] [blame]
Joe Malin2e1c7b72013-08-30 15:30:54 -07001page.title=Sharing Files with NFC
Joe Fernandez33baa5a2013-11-14 11:41:19 -08002page.tags=NfcAdapter,Android Beam,share,file transfer
Joe Malin2e1c7b72013-08-30 15:30:54 -07003
4trainingnavtop=true
5startpage=true
6
7
8@jd:body
9
10<div id="tb-wrapper">
11<div id="tb">
12
13<h2>Dependencies and prerequisites</h2>
14<ul>
15 <li>Android 4.1 (API Level 16) or higher</li>
16 <li>At least two NFC-enabled Android devices (NFC is not supported in the emulator)</li>
17</ul>
18
19<h2>You should also read</h2>
20<ul>
21 <li>
22 <a href="{@docRoot}guide/topics/data/data-storage.html#filesExternal"
23 >Using the External Storage</a>
24 </li>
25</ul>
26
27</div>
28</div>
29
30<p>
31 Android allows you to transfer large files between devices using the Android Beam file transfer
32 feature. This feature has a simple API and allows users to start the transfer process by simply
33 touching devices. In response, Android Beam file transfer automatically copies files from one
34 device to the other and notifies the user when it's finished.
35</p>
36<p>
37 While the Android Beam file transfer API handles large amounts of data, the Android Beam NDEF
38 transfer API introduced in Android 4.0 (API level 14) handles small amounts of data such as
39 URIs or other small messages. In addition, Android Beam is only one of the features available
40 in the Android NFC framework, which allows you to read NDEF messages from NFC tags. To learn
41 more about Android Beam, see the topic
42 <a href="{@docRoot}guide/topics/connectivity/nfc/nfc.html#p2p"
43 >Beaming NDEF Messages to Other Devices</a>. To learn more about the NFC framework, see the
44 <a href="{@docRoot}guide/topics/connectivity/nfc/index.html"
45 >Near Field Communication</a> API guide.
46</p>
47<h2>Lessons</h2>
48<dl>
49 <dt>
50 <b><a href="send-files.html">Sending Files to Another Device</a></b>
51 </dt>
52 <dd>Learn how to set up your app to send files to another device.</dd>
53
54 <dt>
55 <b><a href="receive-files.html">Receiving Files from Another Device</a></b>
56 </dt>
57 <dd>
58 Learn how to set up your app to receive files sent by another device.
59 </dd>
60</dl>
61
62