Contactless Communication API - Oracle Software Delivery Cloud
Contactless Communication API - Oracle Software Delivery Cloud
Contactless Communication API - Oracle Software Delivery Cloud
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Package javax.microedition.contactless// Example class of how to discover targets using// JSR 257 <strong>Contactless</strong> <strong>Communication</strong> <strong>API</strong>//public class CC<strong>API</strong>Example implements TargetListener {private DiscoveryManager dm;public CC<strong>API</strong>Example() {registerTargetToDiscovery();}public void registerTargetToDiscovery() {// Check that NDEF_TAG target is supportedTargetType[] targets = DiscoveryManager.getSupportedTargetTypes();boolean supported = false;for (int i=0; i