Helper getting NdefMessage form one record. - Android Network

Android examples for Network:NFC Message

Description

Helper getting NdefMessage form one record.

Demo Code


//package com.java2s;

import android.nfc.NdefMessage;
import android.nfc.NdefRecord;

public class Main {
    /**/*from  www  . j a  va  2  s  .c  o  m*/
     * Helper getting NdefMessage form one record.
     *
     * @param record The single NdefRecord instance.
     * @return Initialized NdefMessage form NdefRecord.
     */
    public static NdefMessage getNdefMessage(NdefRecord record) {

        return new NdefMessage(new NdefRecord[] { record });
    }
}

Related Tutorials