×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    9

    NFC: How i can analyze more than one target ??

    Hi,

    i hope i have start this thread in the right section.


    I have start with the theme nfc (near field communication) with this code:

    Read serial number of NDEF (NFC) tag - Forum Nokia Wiki

    that was simple.

    But what i have to do, if i have more than one target to analyze?
    For example in than way:

    public void targetDetected(TargetProperties[] prop)
    {

    if(prop[0].getUid().equals("9816628c"))
    {
    form.append("Option1");
    form.append("\\NÄCHSTE AUSWAHL");

    if(prop[1].getUid().equals("12e6a1d4")){
    form.append("Option2");
    } else {
    form.append("FEHLER_ZWEI");
    }

    } else {
    form.append("FEHLER");
    }
    }
    In this way the second tag, I can't analyze.

    Any suggestions please ??

    Thx nunu
    Last edited by Nunu008; 2010-06-29 at 17:19.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: NFC: How i can analyze more than one target ??

    HI, Nunu

    Go to the connectivity section and find Near field Communication there where you can ask the question related to near field communication.
    Link is given here : http://discussion.forum.nokia.com/fo...-Communication

    Cheers,
    RaHuL

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: NFC: How i can analyze more than one target ??

    Quote Originally Posted by Nunu008 View Post
    Hi,

    i hope i have start this thread in the right section.


    I have start with the theme nfc (near field communication) with this code:

    Read serial number of NDEF (NFC) tag - Forum Nokia Wiki

    that was simple.

    But what i have to do, if i have more than one target to analyze?
    For example in than way:



    In this way the second tag, I can't analyze.

    Any suggestions please ??

    Thx nunu
    I see some problem in your code -- in the following lines:
    Code:
    System.out.println("tagfound: "+prop[0].getUid());
    if(prop[0].getUid().equals("9816628c"))
    {
    form.append("Option1");
    form.append("\\NÄCHSTE AUSWAHL");
    }
    if(prop[0].getUid().equals("12e6a1d4")){
    form.append("Option2");
    }
    See the change in bold. This will work if the Uid of tag1 is 9816628c and tag2 is 12e6a1d4
    Thanks,
    Ekta

Similar Threads

  1. Connector.open(nfc:rf;type=nfcip;mode=target) ->IOException?
    By mojo04 in forum Near Field Communication
    Replies: 0
    Last Post: 2009-05-26, 14:39
  2. Replies: 1
    Last Post: 2009-05-15, 20:52
  3. How to analyze the call log on the Mac?
    By Gerhard Torges in forum General Development Questions
    Replies: 0
    Last Post: 2006-08-24, 00:50
  4. Analyze data from the Simulator
    By nintel in forum Bluetooth Technology
    Replies: 1
    Last Post: 2002-10-15, 11:36
  5. Analyze data of the Emulator
    By nintel in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-10-14, 08:21

Posting Permissions

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