public static final String NFC was added in API level 9
Allows applications to perform I/O operations over NFC
1. In the AndroidManifest.xml file, and add the following line Add the line between the <uses-sdk../> and the <application> tags.
<uses-permission android:name = "android.permission.NFC" />
2. Compile and run!
Popular Posts
- android:ellipsize - Add an ellipsis(...) in a TextView
- Save LogCat to a Text File
- android:typeface - Set the Typeface to Sans, Serif, or Monospace in a TextView/EditText
- Perform an Action after Enter keypress on EditText
- android:layerType
- Intent setType(String type) - How to Set an Explicit MIME data type
- How to Get Current Time in Milliseconds
- Capitalize Text in a TextView, using inputType
- Change the line spacing between lines of text in an TextView/EditText, using lineSpacingMultiplier
- Deprecated: android:singleLine - Set a TextView to 1 Line with ellipsis(...) at end