Description: This sample demonstrates how to emulate an NFC card, using the host card emulation feature added in Android 4.4. This sample makes the device appear as a loyalty card whenever the screen is on and the user taps their device on an appropriately configured NFC reader.
The CardReader sample can be used to read the loyalty card implemented in this sample.
To Search:
File list (Check if you may need any files):
android-CardEmulation-master
............................\CONTRIB.md
............................\CardEmulationSample
............................\...................\build.gradle
............................\...................\src
............................\...................\...\main
............................\...................\...\....\AndroidManifest.xml
............................\...................\...\....\java
............................\...................\...\....\....\com
............................\...................\...\....\....\...\example
............................\...................\...\....\....\...\.......\android
............................\...................\...\....\....\...\.......\.......\cardemulation
............................\...................\...\....\....\...\.......\.......\.............\AccountStorage.java
............................\...................\...\....\....\...\.......\.......\.............\CardEmulationFragment.java
............................\...................\...\....\....\...\.......\.......\.............\CardService.java
............................\...................\...\....\....\...\.......\.......\.............\MainActivity.java
............................\...................\...\....\....\...\.......\.......\common
............................\...................\...\....\....\...\.......\.......\......\activities
............................\...................\...\....\....\...\.......\.......\......\..........\SampleActivityBase.java
............................\...................\...\....\....\...\.......\.......\......\logger
............................\...................\...\....\....\...\.......\.......\......\......\Log.java
............................\...................\...\....\....\...\.......\.......\......\......\LogFragment.java
............................\...................\...\....\....\...\.......\.......\......\......\LogNode.java
............................\...................\...\....\....\...\.......\.......\......\......\LogView.java
............................\...................\...\....\....\...\.......\.......\......\......\LogWrapper.java
............................\...................\...\....\....\...\.......\.......\......\......\MessageOnlyLogFilter.java
............................\...................\...\....\res
............................\...................\...\....\...\drawable-hdpi
............................\...................\...\....\...\.............\ic_launcher.png
............................\...................\...\....\...\.............\tile.9.png
............................\...................\...\....\...\drawable-mdpi
............................\...................\...\....\...\.............\ic_launcher.png
............................\...................\...\....\...\drawable-xhdpi
............................\...................\...\....\...\..............\ic_launcher.png
............................\...................\...\....\...\drawable-xxhdpi
............................\...................\...\....\...\...............\card_background.png
............................\...................\...\....\...\...............\ic_launcher.png
............................\...................\...\....\...\layout-w720dp
............................\...................\...\....\...\.............\activity_main.xml
............................\...................\...\....\...\layout
............................\...................\...\....\...\......\activity_main.xml
............................\...................\...\....\...\......\main_fragment.xml
............................\...................\...\....\...\menu
............................\...................\...\....\...\....\main.xml
............................\...................\...\....\...\values-sw600dp
............................\...................\...\....\...\..............\template-dimens.xml
............................\...................\...\....\...\..............\template-styles.xml
...........................