×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    57

    Auto launching a ISO14443Connection

    My working NFC application has been changed to achieve auto launch via the PushRegistry function-ality. I used the following code to register the application,

    PushRegistry.registerConnection("nfc:undefined_format", "hello.HelloMidlet", "*");

    The application is indeed launched when a ISO14443-4 tag is touched, but I don't get any targetDe-tected() nor a recordDetected() ?

    The targetDetected() works when the app. is manual launched or if I touch a 2. time after auto launch.

    The RecordListener() is implemented like this,

    dm.addNDEFRecordListener(this, new NDEFRecordType(NDEFRecordType.UNKNOWN, null));

    Not having NDEF data on the tag I decided to use the UNKNOWN type. How do one implement an IS014443 RecordListener?

    Any suggestions on how to start data exchange after auto launch on a ISO14443-4 tag with no NDEF data?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    57

    Re: Auto launching a ISO14443Connection

    According to the JSR257 description of the "DiscoveryManager" it seams pretty clear, to me at least, that a "TargetDetected" notification should be send to the launched application when a TargetListener is registered (also for a ISO14443_CARD).

    Am I missing something?
    Or doesn't the 6131 support this functionality?

  3. #3
    Regular Contributor
    Join Date
    Mar 2007
    Location
    Helsinki, Finland
    Posts
    91

    Re: Auto launching a ISO14443Connection

    Quote Originally Posted by npr.novo View Post
    According to the JSR257 description of the "DiscoveryManager" it seams pretty clear, to me at least, that a "TargetDetected" notification should be send to the launched application when a TargetListener is registered (also for a ISO14443_CARD).

    Am I missing something?
    Or doesn't the 6131 support this functionality?
    When a MIDlet is launched by touching an empty tag - which is your case - no listeners will be notified. The MIDlet can see that it was launched by touching a tag by reading the DiscoveryManager property LaunchType. To get more information about the tag, i.e. a TargetListener call, the tag must be touched again.

    I hope this helps.
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

Similar Threads

  1. Auto launching Midlets for Nokia 3220 P&T Shell events
    By viktor.tamas in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2009-10-05, 10:33
  2. auto launching midlet
    By salsir in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-02-28, 18:20
  3. Auto Launching MIDlet
    By emirant1 in forum Mobile Java General
    Replies: 2
    Last Post: 2007-01-31, 10:07
  4. Auto Call sis for 7650
    By tonzeh in forum Symbian
    Replies: 1
    Last Post: 2004-06-11, 04:25
  5. auto launching midlet when receiving sms
    By afasce in forum Mobile Java General
    Replies: 5
    Last Post: 2003-08-28, 02:41

Posting Permissions

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