Writing NDEFMessages
Hello,
I'm playing with an example that tries to write a new NDEFMessage to a card. Everything works fine until the writeNDEF method on the NDEFTagConnection class is used. No reaction at all, the code snippet is as follows:
try {
conn.writeNDEF(newMessage);
form.append("new message written: "+msg+"\n");
} catch (ContactlessException e) {
log("ContactlessException: "+e.getMessage());
form.append("ContactlessException: "+e.getMessage());
} catch (IOException e) {
log("IOException: "+e.getMessage());
form.append("IOException: "+e.getMessage());
} catch (SecurityException e) {
log("SecurityException : "+e.getMessage());
form.append("SecurityException : "+e.getMessage());
} catch (Exception e) {
log("Exception : "+e.getMessage());
form.append("Exception : "+e.getMessage());
}
I got no exception neither any message. I'm doing the same test writing the same NDEFMessage that I read and got the same result.
Does anyone succed in writing NDEFMessages?
Thanks