Code example for NdefMessage

0
        public NdefMessage[] msgs;
 
        public TagDescription(String title, byte[] bytes) {
            this.title = title;
            try { 
                msgs = new NdefMessage[] {new NdefMessage(bytes)};
            } catch (final Exception e) {
                throw new RuntimeException("Failed to create tag description", e);
            } 
        } 
 
        @Override 
        public String toString() {
            return title;
        } 
    } 
 
    @Override 
    public void onCreate(Bundle savedState) {
        super.onCreate(savedState);
        final ArrayAdapter<TagDescription> adapter = new ArrayAdapter<TagDescription>(