Code example for NdefRecord

0
                return; 
            } 
 
            nfcAdapter.setNdefPushMessage(new NdefMessage(
                    new NdefRecord[]{
                            new NdefRecord(NdefRecord.TNF_MIME_MEDIA,
                                    ScheduleContract.Sessions.CONTENT_ITEM_TYPE.getBytes(), 
                                    new byte[0], 
                                    sessionUri.toString().getBytes())
                    }), activity);
        } 
    } 
 
    /** 
     * Sets this activity's Android Beam message to the default. 
     */ 
    @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
    public static void setDefaultBeamUri(Activity activity) {
        if (UIUtils.hasICS()) { 
            NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(activity);
Stop searching for code, let great code find you!  Add Codota to your java IDE