targetDetected(BigTrouble trouble ;-)
Hi all,
I've got problems using UIDReader class (from examples code):
I dont understand the use of this fundamental method:
public void targetDetected(TargetProperties[] targetProperties) {
if (targetProperties.length == 0) { // in case no targets found, exit the method
return;
}
TargetProperties tmp = targetProperties[0]; // show the UID of the first tag found
displayAlert("UID read: " + tmp.getUid(), AlertType.INFO);
}
When I call the method in a operating midlet I cannot pass to the method the argument requested: TargetProperties[] targetProperties...
Maybe I don't need to pass any argument...(the platform does it for me).
Could anyone explain this to me ?
Thanksssssssssssssssssssssssss
Re: targetDetected(BigTrouble trouble ;-)
hello, please look at
[url]http://mobilezoo.biz/jsr/257/javax/microedition/contactless/TargetListener.html[/url]
Targetdetected is a callback. You aren't suppose to call it, it's called when a tag is close enough.
Best wishes,
Max