The Intent Filters array should declare the URIs or MIME types you want to intercept — any received tags that don’t match these criteria will be handled using the standard tag dispatching system. To ensure a good user experience, it’s important that you specify only the tag content your application handles.You can further refine the tags you receive by explicitly indicating the technologies you want to handle, typically represented by adding the NfcF class.Finally, the Pending Intent will be populated by the NFC Adapter to transmit the received tag directly to your application.Listing 16-30 shows the Pending Intent, MIME type array, and technologies array used to enable the foreground dispatching in Listing 16-29.
đang được dịch, vui lòng đợi..
