×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    9

    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
    Last edited by sciacca; 2010-02-10 at 08:25. Reason: orthographic error

  2. #2
    Registered User
    Join Date
    Jan 2004
    Posts
    9

    Re: targetDetected(BigTrouble trouble ;-)

    hello, please look at
    http://mobilezoo.biz/jsr/257/javax/m...tListener.html
    Targetdetected is a callback. You aren't suppose to call it, it's called when a tag is close enough.
    Best wishes,
    Max

Similar Threads

  1. Emulator http trouble in console app
    By jakob.andersen@gmail.com in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2010-05-04, 12:41
  2. Nokia 5800 fire-key trouble (center key)
    By Tias in forum Mobile Java General
    Replies: 3
    Last Post: 2009-07-13, 08:27
  3. Nokia PCSuite setup trouble: the ultimate solution?
    By surfmaxx in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2006-10-04, 09:52
  4. Jpeg-Support - any trouble with special models
    By Frankee in forum Mobile Java General
    Replies: 0
    Last Post: 2004-02-16, 10:56
  5. P800 J2ME game. i'm in trouble because of keypad
    By shahzad73 in forum Mobile Java General
    Replies: 0
    Last Post: 2002-11-21, 03:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •