안녕하십니까. 펍 가족 여러분

 

저는 신기술에 대해 파헤치길 좋아하는 신입 개발자입니다.

 

다름이 아니오라 제가 요즘 유행하는. 아니 유행하려고 하는 NFC에 관해 알아보고 있는데요.

 

관련 사이트, 즉 구글 안드로이드 개발 가이드에 보면 NFC 태그를 쓸 때

 

NdefFormatable tag = NdefFormatable.get(t);
Locale locale = Locale.US;
final byte[] langBytes = locale.getLanguage().getBytes(Charsets.US_ASCII);
String text = "Tag, you're it!";
final byte[] textBytes = text.getBytes(Charsets.UTF_8);
final int utfBit = 0;
final char status = (char) (utfBit + langBytes.length);
final byte[] data = Bytes.concat(new byte[] {(byte) status}, langBytes, textBytes);
NdefRecord record = NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], data);
try {
    
NdefRecord[] records = {text};
    
NdefMessage message = new NdefMessage(records);
    tag
.connect();
    tag
.format(message);
}
catch (Exception e){
    
//do error handling
}

 

바로 이렇게 하라고 나와있습니다. 그런데 문제는 여기서 맨 첫번째 줄에

 

NdefFormatable tag = NdefFormatale.get(t)에서 저 t가 뭐냐는 겁니다.

 

t는 tag인데 이 tag를 어떻게 생성해야 하는지 모르겠습니다.

 

펍 가족 여러분, 소중한 답변 기다리겠습니다 !