action_ndef_discovered type of intent are used to work because it is the most standard of the three intent. Compared to the other two intent, this intent allows you to launch your application at a more appropriate time, giving users a better experience.Request NFC access in Android manifestBefore you access your device's NFC hardware and properly handle
Data formats supported by Android
Intent filter in Data Format
In the AndroidManifest. xml file
Specify the resource file you created in the element:
VcD4KPHByZSBjbGFzcz0 = "brush: java;">...
...
Nfc_tech_filter.xml file (a Tag is considered to be matched only when all Tags match the nfc chip specified by the tech element in the tech-list element ):
android.nfc.tech.
card, as long as the satisfaction:1. Data networking;2. Install the Bank Mobile client and log in;3.HCE (NFC-enabled phone)The above 3 conditions, generated an electronic virtual smart card .You can use the mobile phone to brush ATM or counter way to complete the withdrawal, transfer and other cards can be completed by the bank card work.Security is now considered, but the value of this approach is obvious as technology and ideas change. And if there
(there is still much room for play in the nfc ce mode, especially for Secure delivery solutions ). What about this problem, Brother Wu?
We sincerely welcome Brother Wu's speech!
Br
Deng fanping
[--> Reply from Mr. Wu Jiliang]
Brother DENG:
1) As Deng Xiong said, this book will have their own gains for scholars with different depth of knowledge. It can be used as a beginner and provide intermediate scholars with clues to problem analysis, the opportun
Near-Field Communication (NFC) is a set of short-range wireless technologies. It usually requires a distance of 4 cm or shorter to initialize the connection. NFC allows users to share small data loads between NFC tags and Android devices or between two Android devices.
the steps to enable the foreground dispatch system:1. Add the following code to your activity's OnCreate () method: A. Create a Pendingintent object so that the Android system can use it to encapsulate the details of the NFC tag when scanning to an NFC tag. Pendingintent pendingintent =pendingintent.getactivity ( this,0,newintent (this, getclas
Near-Field Communication (NFC) is a set of short-range wireless technologies. It usually requires a distance of 4 cm or shorter to initialize the connection. NFC allows users to share small data loads between NFC tags and Android devices or between two Android devices.
Filter NFC intent
To start your application when you want to process the scanned NFC tag, you can filter out one, two, or all of the three NFC intents in your app's Android list. However, you usually want to control the most commonly used intent of the action_ndef_discovered type when the application starts. The intent
Beam examples provided in Android 4.0 SDK are indeed a good template for NFC development. For the ndef message processing process that understands NFC, see the following code.
Public class beam extends activity implements createndefmessagecallback,Onndefpushcompletecallback {Nfcadapter mnfcadapter;Textview minfotext;Private Static final int message_sent = 1;
@ Ov
Beam examples provided in Android 4.0 SDK are indeed a good template for NFC development. For the NDEF message processing process that understands NFC, see the following code.
Public class Beam extends Activity implements CreateNdefMessageCallback,
OnNdefPushCompleteCallback {
NfcAdapter mNfcAdapter;
TextView mInfoText;
Private static final int MESSAGE_SENT = 1;
The beam example provided in the Android 4.0 SDK is indeed a good template for NFC development. Consider the following code for NDEF message processing that understands NFC.
public class Beam extends activity implements Createndefmessagecallback,
Onndefpushcompletecallback {
Nfcadapter Mnfcadapter;
TextView Minfotext;
private static final int message_sent =
Two important classes for describing data in ndef formatNdefmessage: Describes information in the NDEF format Ndefrecord: A piece of information describing Ndef information Ndefmessage and Ndefrecord are the core classes of Android NFC technology, requiring these two classes for both the read-write ndef format NFC tag and the NDEF format data passed through
The basic idea of Android beamThe basic idea of Android beam is that two (only two) NFC devices are close (usually back-to-back) and push the data to another NFC device by touching the screen of an NFC device. In the process of passing data, two
Q: Card simulation on Android NFC mobile phone
Modify the last description
1. Q: Can I simulate a card on an androidnfc mobile phone?
A: It is technically feasible. However, for general developers, it only seems technically feasible :(
2. Q: How to implement it?
A: There are two methods: one is hardware-based, called the virtual card mode (virual card mode), and the other is software-based, it is called
Transfer from http://blog.csdn.net/think_soft/article/details/8180203Intent for filtering NFCTo launch your app when you want to process the scanned NFC tag, you can filter on one, two, or all three types of NFC intent in your app's Android manifest. However, you typically want to control the intent of the most commonly used action_ndef_discovered types when the
(tag); if (ndef!=null) {ndef.connect (); if (! Ndef.iswritable ()) {return;} if (Ndef.getmaxsize () in this activity, you can click the button and jump to another activity, which is used to display the list of appsPackage Com.cayden.run.application;import Java.util.arraylist;import Java.util.list;import Android.app.listactivity;import Android.content.intent;import Android.content.pm.packageinfo;import Android.content.pm.packagemanager;import Android.os.bundle;import Android.view.view;import And
The previous chapter simply introduces the understanding and configuration of NFC Android, and this time you know about NFC cards.The card is divided into 16 sectors (sector), each sector is divided into 4 blocks (block) Each block contains 16 bytes,such as "1234567890123456", "Asdfghjklqwertyu", can access some information,Because the types of cards are differen
Today, we have a CSDN community activity to answer questions about how to learn, understand, and develop the Android system, and learn more about Android: wi-Fi, NFC, and GPS book answers questions and understands the implementation principles of the Android Framework. Activity link: http://bbs.csdn.net/topics/39076527
Android system detects NFC tags, encapsulates them into Tag classes, and stores them in the Intent NfcAdapter. EXTRA_TAG Extra data packet. You can use MifareClassic. get (Tag) to obtain the MifareClassic class of the object.
[Java]Tag tagFromIntent = intent. getParcelableExtra (NfcAdapter. EXTRA_TAG );// 4) Get an instance of the Mifare classic card from this TAG// IntentMifareClassic mfc = MifareClassic.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.