Electronic Components Datasheet Search
  English  ▼

X  

AN4430 Datasheet(PDF) 21 Page - STMicroelectronics

Part # AN4430
Description  Designing an NFC Android Application for M24SR and M24LR devices
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4430 Datasheet(HTML) 21 Page - STMicroelectronics

Back Button AN4430 Datasheet HTML 17Page - STMicroelectronics AN4430 Datasheet HTML 18Page - STMicroelectronics AN4430 Datasheet HTML 19Page - STMicroelectronics AN4430 Datasheet HTML 20Page - STMicroelectronics AN4430 Datasheet HTML 21Page - STMicroelectronics AN4430 Datasheet HTML 22Page - STMicroelectronics AN4430 Datasheet HTML 23Page - STMicroelectronics AN4430 Datasheet HTML 24Page - STMicroelectronics AN4430 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 42 page
background image
DocID025722 Rev 1
21/42
AN4430
How to create an Android Application for ST dual memories
41
2.4
Setup Android Manifest file
Once the project creation first step is completed, to use NFC functionality, developer has to
configure properly the android application settings in the AndroidManifest.xml.
2.4.1
NFC permission
In order to use NFC capability, application must request the NFC permission. To do so, this
request must be specified in the manifest file by the following declaration:
2.4.2
NFC feature
Specify that the application uses NFC by adding the following declaration:
In this way, the application is known as not functional if the NFC feature is not available on
the android device.
2.4.3
Intent filtering settings
As seen in the application overview section, component can be declared to be NFC intent
handler capable. To do so, an intent filter must be declared. Actually the application
identified by com.example.myfirstnfcapp in the manifest file is composed by a single
component which is an activity. This activity known as the main activity already has an intent
filter declaration:
This intent filter is declared specifically for main activity component to let Android System to
know which activity component to start on user request.
As the application get a single activity and as NFC intent can be handled in this main activity
we may declares a new intent filter to handle NDEF message when TAG is discovered.
In case activity component has to manage every kind of NDEF message we may add the
following intent filter declaration (solution that we keep for our source code example):
    <uses‐permission android:name="android.permission.NFC" /> 
 <uses‐feature 
    
 
android:name="android.hardware.nfc" 
    
 
android:required="true" /> 
<intent‐filter> 
       <action android:name="android.intent.action.MAIN" /> 
<category android:name="android.intent.category.LAUNCHER" /> 
</intent‐filter>
<intent‐filter> 
<action android:name="android.nfc.action.NDEF_DISCOVERED"/> 
</intent‐filter>



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com