Page 136 - 3-2
P. 136
// Toast.makeText(this,
// "onResume() - ACTION_TECH_DISCOVERED",
// Toast.LENGTH_SHORT).show();
Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
if(tag == null){
Toast.makeText(this,
" tag == NULL! ",
Toast.LENGTH_SHORT).show();
}else{
String tagInfo = "";
Toast.makeText(this,
" 상품을 클릭하면 삭제 할 수 있습니다!",
Toast.LENGTH_LONG).show();
// Loading products in Background
byte[] tagcode = tag.getId();
for(int i=0; i<tagcode.length; i++){
tagInfo += String.format("%02X", tagcode[i] & 0xff) + " ";
}
if(tagInfo.equals("42 A9 49 10 ")){
tagnum += "11";
}
else if(tagInfo.equals("67 22 B3 AB ")){
tagnum += "12";
}
else if(tagInfo.equals("B5 0E EF 66 ")){
tagnum += "13";
}
else if(tagInfo.equals("A4 BF AA 7B ")){
tagnum += "14";
}
else if(tagInfo.equals("B4 4F AE 7B ")){
tagnum += "15";
}
else if(tagInfo.equals("85 56 F1 66 ")){
tagnum += "16";
}
else if(tagInfo.equals("05 F6 FC 66 ")){
tagnum += "17";
}
else if(tagInfo.equals("15 A4 F4 66 ")){
- 136 -