×

Discussion Board

Page 7 of 12 FirstFirst 123456789101112 LastLast
Results 91 to 105 of 177
  1. #91
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by sdny

    even this wont work on the phone for some reason!!!! same error as before:Invalid application no idea wat the problem can be

    it loads in the emulator though...
    first only entry
    MIDlet-Push-1: ndef:rtd?name=urn:nfc:wkt:RFID_TAG,xxx.de.Reader,*
    and check the install
    and the next
    add the next
    MIDlet-Push-2: ndef:rtd?name=urn:nfc:wkt:NDEF_TAG,xxx.de.Reader,*
    and check the install

    Error? Then Midlet-Push-2 ... not correct!

    Is the install with none pushentrys correct?
    If not, then is MIDlet not correct
    or device error

  2. #92
    Registered User
    Join Date
    Jul 2007
    Posts
    18

    Re: 6131 NFC autostart on tag touch

    Hi all,

    I am not sure if this question has already been asked. Please direct me to the appropriate post if u know it has infact been.

    okay wat i want to do is this. I have a P2P application. In Phone 1 the app is trying to open up an NFCIP connection with Phone 2. After the connection.open() function has been called the phone 1 is brought closer to phone 2. Now phone 2 must identify phone 1 (pushregistry) and establish the NFCIP connection.

    I tried registering to push registry with nfc:undefined_format. The problem is phone 2 will not start the app if phone 1 is trying to open up the NFCIP connection. But if I just bring phone 1, without trying to open up the connection, phone 2 will start u the app.

    I guess this is because of the connection string in pushregistry. Please help. Many thanks!

  3. #93
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by pujanzi
    Hello again,
    I can successfully auto-launch the application with "any" tag using:
    String pushEntry = "nfc:undefined_format";
    PushRegistry.registerConnection(pushEntry,//ndef:rtd?name=urn:nfc:wkt:T
    midletClassName,
    "nfc:rf;type=jewel;uid=*");//try between rf or ndef
    From: http://discussion.forum.nokia.com/fo...4&postcount=48

    Ok, I've tried absolutley everything...but it simply wont launch, always "Unknown service type".....right now i dont care about specific tags, or if they have data or not. I just want any tag that is touched to launch my MIDlet, the above seems to be the direction my java needs to go, but even that wont work.

    would someone be able to supply a sample project (with source) that actually works for me to look at?

    Thanks for all the help so far.

  4. #94
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by sdny
    From: http://discussion.forum.nokia.com/fo...4&postcount=48

    Ok, I've tried absolutley everything...but it simply wont launch, always "Unknown service type".....right now i dont care about specific tags, or if they have data or not. I just want any tag that is touched to launch my MIDlet, the above seems to be the direction my java needs to go, but even that wont work.

    would someone be able to supply a sample project (with source) that actually works for me to look at?

    Thanks for all the help so far.
    The problem is here, which some entries will not correctly indicate

  5. #95
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    Registrie examines only for:

    PushRegistryImpl::registerConnectionInternal registering connection: ndef:rtd?name=urn:nfc:wkt:U
    PushRegistryImpl: URL prefix='ndef'
    PushRegistryImpl: Found handler for prefix.


    'ndef' and not more
    and not ...'rtd?name=urn:nfc:wkt:U'

  6. #96
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by mariosas
    Registrie examines only for:

    PushRegistryImpl::registerConnectionInternal registering connection: ndef:rtd?name=urn:nfc:wkt:U
    PushRegistryImpl: URL prefix='ndef'
    PushRegistryImpl: Found handler for prefix.


    'ndef' and not more
    and not ...'rtd?name=urn:nfc:wkt:U'
    i know....

  7. #97
    Registered User
    Join Date
    Apr 2007
    Posts
    6

    Re: 6131 NFC autostart on tag touch

    Does anyone know how to start application when phone is touched with a reader?

  8. #98
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    Do not understand wrongly.
    The Push Registry examines only more handler for prefix and not the complete indication. the problem is the name =
    Like the registration to look I must already wrote.
    One must read all entries.
    up 2007-07-24, 07:27
    to 2007-07-24, 07:44
    and
    2007-07-24, 13:10
    2007-07-24, 13:45
    2007-07-24, 13:49
    2007-06-14, 13:35!
    Last edited by mariosas; 2007-07-31 at 18:22.

  9. #99
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Re: 6131 NFC autostart on tag touch

    FINALLY...it works using:
    case DeviceEvent.EVENT_CONNECTION:
    try{
    String pushEntry = "nfc:undefined_format";
    String pushFilter = "*";
    PushRegistry.registerConnection(pushEntry, "Application", pushFilter);
    } catch (Exception e) {
    }

    break;
    }


    but as we know, this only works for 'empty' tags....i have some tags with formatted data, but i dont need to read the data at loading...anyone know how i get all my tags to load the MIDlet?
    Last edited by sdny; 2007-08-31 at 11:36.

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

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by sdny View Post
    FINALLY...it works using:
    case DeviceEvent.EVENT_CONNECTION:
    try{
    String pushEntry = "nfc:undefined_format";
    String pushFilter = "*";
    PushRegistry.registerConnection(pushEntry, "MIDletApplication", pushFilter);
    } catch (Exception e) {
    }

    break;
    }


    but as we know, this only works for 'empty' tags....i have some tags with formatted data, but i dont need to read the data at loading...anyone know how i get all my tags to load the MIDlet?
    You mentioned before that your tags contain NTIP data. The Push Registry string in this case should be:

    "nfc:ntip?name=<ntip fqn>"

    where ntip_fqn is the Fully qualified NTIP record type name.

    Do you know the record type for your tags?
    Last edited by Raluca_; 2007-09-03 at 07:58.
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

  11. #101
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by sdny View Post
    FINALLY...it works using:
    case DeviceEvent.EVENT_CONNECTION:
    try{
    String pushEntry = "nfc:undefined_format";
    String pushFilter = "*";
    PushRegistry.registerConnection(pushEntry, "MIDletApplication", pushFilter);
    } catch (Exception e) {
    }

    break;
    }


    but as we know, this only works for 'empty' tags....i have some tags with formatted data, but i dont need to read the data at loading...anyone know how i get all my tags to load the MIDlet?
    As is to be understood?
    1.the entry in registry is accepted?
    2.Midlet starts automatically with an empty TAG?
    3. current Midlet reads empty TAG?
    This entry in jad does not function however!

    catch (Exception e)
    {
    // empty entry = no examination whether entry was correct!!
    }
    Last edited by mariosas; 2007-09-05 at 11:18.

  12. #102
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by mariosas View Post
    As is to be understood?
    1.the entry in registry is accepted?
    2.Midlet starts automatically with an empty TAG?
    3. current Midlet reads empty TAG?
    This entry in jad does not function however!

    catch (Exception e)
    {
    // empty entry = no examination whether entry was correct!!
    }
    yes, you understand correctly...

    I have different tags, some with NDEF, some with NTIP, some empty.

    Also some MF0U1, some JEWEL...

    but only empty ones load.

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

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by mariosas View Post
    This entry in jad does not function however!
    The following entry does work in the jad file as well:
    MIDlet-Push-1: nfc:undefined_format,com.nokia.nfc.sample.app.TagTestMidlet,*

    You have to:
    1. Install the MIDlet that has the above entry in the jad file.
    2. Run the MIDlet once on the phone.
    3. Close the MIDlet.
    4. Touch any empty tag or any tag that doesn't contain NDEF or NTIP data.

    Your MIDlet will be automatically launched.
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

  14. #104
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by Raluca_ View Post
    The following entry does work in the jad file as well:
    MIDlet-Push-1: nfc:undefined_format,com.nokia.nfc.sample.app.TagTestMidlet,*

    You have to:
    1. Install the MIDlet that has the above entry in the jad file.
    2. Run the MIDlet once on the phone.
    3. Close the MIDlet.
    4. Touch any empty tag or any tag that doesn't contain NDEF or NTIP data.

    Your MIDlet will be automatically launched.
    yea, thanks...im not using the jad anymore to do this, like i said...i got it to work using the code for empty tags.

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

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by sdny View Post
    yea, thanks...im not using the jad anymore to do this, like i said...i got it to work using the code for empty tags.
    Yes, but I was mentioning this for mariosas. Some of mariosas' earlier posts, as well as this one, imply that the Push Registry entry for empty/non-NTIP/NDEF tags is not working if it is registered in the jad file, when in fact it does work.
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

Similar Threads

  1. Autostart application and reading tag UID with one touch
    By choege in forum Near Field Communication
    Replies: 6
    Last Post: 2010-02-22, 12:38
  2. Communication between 2 Nokia 6131 NFC
    By zhs_bravo in forum Near Field Communication
    Replies: 13
    Last Post: 2009-01-05, 10:23
  3. TargetListener Problems in nokia 6131 NFC
    By JesusFD in forum Near Field Communication
    Replies: 3
    Last Post: 2008-03-31, 11:52
  4. Nokia 6131 NFC SDK 1.0 has been released
    By Nokia Ron in forum Near Field Communication
    Replies: 0
    Last Post: 2007-03-26, 22:28
  5. Can't read RFID Tag with NFC Shell
    By begermic in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2007-01-31, 23:02

Posting Permissions

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