×

Discussion Board

Page 6 of 12 FirstFirst 123456789101112 LastLast
Results 76 to 90 of 177
  1. #76
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Re: 6131 NFC autostart on tag touch

    I see...i will look into it, i do have Tags with data, but dont want to use that data to launch the MIDlet...I'll get back to you soon on how i get on.

  2. #77
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by sdny
    ok...here, what data do i read from the tag? the UID?

    so with this method i dont need to use NDEFRecordListener??

    is ur method the best way to do this? it looks different from pujanzi's method. Think i will cry now
    See you this thread -> 2007-06-14, 13:35 (code)

    and add that

    Code:
      
                'XXX' = properties[i].getUid();

  3. #78
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    FOR ALL.

    In this Thread everything was said. Read please everything.

    PushRegistry and autolaunch in this thread -> 2007-07-11, 14:20

  4. #79
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by mariosas
    FOR ALL.

    In this Thread everything was said. Read please everything.

    PushRegistry and autolaunch in this thread -> 2007-07-11, 14:20
    Easier said than done, there is so much stuff in here that most of it makes no sense except to the poster, and many contradictions...I appreciate the support, but even the step-by-step is not clear on what is going on.

    anyway, my main problem seems to come from the .jad file as putting in the entries:
    MIDlet-Push-1: ndef:rtd?name=urn:nfc:wkt:RFID_TAG,myMidlet,*
    MIDlet-Push-2: ndef:rtd?name=urn:nfc:wkt:NDEF_TAG,myMidlet,*
    MIDlet-Push-3: ndef:rtd?name=urn:nfc:wkt:ISO14443_CARD,myMidlet,*
    MIDlet-Push-4: ndef:rtd?name=urn:nfc:wkt:T,myMidlet,*
    MIDlet-Push-5: ndef:rtd?name=urn:nfc:wkt:U,myMidlet,*
    MIDlet-Push-6: ndef:rtd?name=urn:nfc:wkt:St,myMidlet,*


    these break my MIDlet, it is an "invalid application"...so the thing is, i need to be able to do that in the code and not have to touch the .jar file

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

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by sdny
    Easier said than done, there is so much stuff in here that most of it makes no sense except to the poster, and many contradictions...

    anyway, my main problem seems to come from the .jad file as putting in the entries:
    MIDlet-Push-1: ndef:rtd?name=urn:nfc:wkt:RFID_TAG,myMidlet,*
    MIDlet-Push-2: ndef:rtd?name=urn:nfc:wkt:NDEF_TAG,myMidlet,*
    MIDlet-Push-3: ndef:rtd?name=urn:nfc:wkt:ISO14443_CARD,myMidlet,*
    MIDlet-Push-4: ndef:rtd?name=urn:nfc:wkt:T,myMidlet,*
    MIDlet-Push-5: ndef:rtd?name=urn:nfc:wkt:U,myMidlet,*
    MIDlet-Push-6: ndef:rtd?name=urn:nfc:wkt:St,myMidlet,*


    breaks my MIDlet, it is an "invalid application"...so the thing is, i need to be able to do that in the code and not have to touch the .jar file
    You don't really need all those entries in the first place. Can you please describe exactly what you want to do?

    Do you want to launch your MIDlet with any tag? A specific tag? An NDEF tag that has data on it?

    I will try to help if you can give me more details about what you want to do.
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

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

    Re: 6131 NFC autostart on tag touch

    ok...do u know the SecurPro and CarePro examples in the Nokia Field Force Toolbox 2.1?

    I want my autolaunch to work just like they do...where any tag can initially launch the application, but if the user does not fully log out, it will remember if the user is logged in and so will go to the required screen if for example a client tag is touched.

    so i want to launch the MIDlet with any tag, as the application will use different types.

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

    Re: 6131 NFC autostart on tag touch

    Will your tags contain any NDEF formatted data? If so, will the data be the same on all tags?

    You can launch your MIDlet with any tag, regardless of the data on it, as long as you use an NTIP or an empty tag (an empty tag is a tag that doesn't contain NDEF or NTIP data so the format is undefined).
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

  8. #83
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Re: 6131 NFC autostart on tag touch

    None of my tags contain NDEF formatted data.

    My ID tags are in the NTIP data format, the rest are "Proprietary" data format.

  9. #84
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    My assistance is limited only to that Nokia 6131 NFC.
    in real Nokia 6131 NFC
    (* = UID)
    getUrl
    1.
    for MifareUltraLight
    - nfc:ndef;type=simpletag;uid=*
    = NDEF_TAG & RFID_TAG
    2.
    for Mifare 4k
    - nfc:ndef;type=mf4k;uid=*
    = NDEF_TAG
    3.
    for Mifare 1K
    - nfc:ndef;type=mf1k;uid=*
    = NDEF_TAG

    --> function OK with autolaunch and manuellaunch

  10. #85
    Registered User
    Join Date
    Oct 2006
    Location
    Berlin
    Posts
    201

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by sdny
    Easier said than done, there is so much stuff in here that most of it makes no sense except to the poster, and many contradictions...I appreciate the support, but even the step-by-step is not clear on what is going on.

    anyway, my main problem seems to come from the .jad file as putting in the entries:
    MIDlet-Push-1: ndef:rtd?name=urn:nfc:wkt:RFID_TAG,myMidlet,*
    MIDlet-Push-2: ndef:rtd?name=urn:nfc:wkt:NDEF_TAG,myMidlet,*
    MIDlet-Push-3: ndef:rtd?name=urn:nfc:wkt:ISO14443_CARD,myMidlet,*
    MIDlet-Push-4: ndef:rtd?name=urn:nfc:wkt:T,myMidlet,*
    MIDlet-Push-5: ndef:rtd?name=urn:nfc:wkt:U,myMidlet,*
    MIDlet-Push-6: ndef:rtd?name=urn:nfc:wkt:St,myMidlet,*


    these break my MIDlet, it is an "invalid application"...so the thing is, i need to be able to do that in the code and not have to touch the .jar file
    all entrys in the jad by me no problem with Nokia 6131 NFC

    im code and not in jad - be me no problem.
    see you all example in this thread.

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

    Re: 6131 NFC autostart on tag touch

    Clean Midlet with Nokia 6131 NFC SDK http://www.forum.nokia.com/info/sw.n...K_1_1.zip.html , with TargetListener and Eclipse (and Carbide.j)

    Code:
    import javax.microedition.contactless.TargetListener;
    import javax.microedition.contactless.TargetProperties;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    
    public class Reader extends MIDlet implements TargetListener 
    {
    
    	public Reader() 
    	{
    		// TODO Auto-generated constructor stub
    	}
    
    	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
    		// TODO Auto-generated method stub
    
    	}
    
    	protected void pauseApp() {
    		// TODO Auto-generated method stub
    
    	}
    
    	protected void startApp() throws MIDletStateChangeException {
    		// TODO Auto-generated method stub
    
    	}
    
    	public void targetDetected(TargetProperties[] arg0) 
    	{
    		// TODO Auto-generated method stub
    
    	}
    
    }
    AND jad Entrys

    Code:
    MIDlet-1: Reader,,xxx.de.Reader
    MIDlet-Jar-URL: Nokia6131NFC.jar
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-Version: 1.0.0
    MIDlet-Vendor: Midlet Suite Vendor
    MIDlet-Name: Nokia6131NFC Midlet Suite
    MIDlet-Permissions: javax.microedition.io.Connector.http, javax.microedition.io.PushRegistry, javax.microedition.contactless.DiscoveryManager, javax.microedition.io.Connector.ndef, javax.microedition.io.Connector.rf, javax.microedition.io.Connector.sc
    MicroEdition-Profile: MIDP-2.0
    MIDlet-Push-1: ndef:rtd?name=urn:nfc:wkt:RFID_TAG,xxx.de.Reader,*
    MIDlet-Push-2: ndef:rtd?name=urn:nfc:wkt:NDEF_TAG,xxx.de.Reader,*
    MIDlet-Push-3: ndef:rtd?name=urn:nfc:wkt:ISO14443_CARD,xxx.de.Reader,*
    MIDlet-Push-4: ndef:rtd?name=urn:nfc:wkt:T,xxx.de.Reader,*
    MIDlet-Push-5: ndef:rtd?name=urn:nfc:wkt:U,xxx.de.Reader,*
    MIDlet-Push-6: ndef:rtd?name=urn:nfc:wkt:St,xxx.de.Reader,*
    MIDlet-Push-7: ndef:mime?name=text/uri-list,xxx.de.Reader,*
    MIDlet-Push-8: ndef:mime?name=text/x-uri,xxx.de.Reader,*
    installed the MIDled in the realdevice = no problem = no errormessage

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

    Thumbs down Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by mariosas
    Clean Midlet with Nokia 6131 NFC SDK http://www.forum.nokia.com/info/sw.n...K_1_1.zip.html , with TargetListener and Eclipse (and Carbide.j)

    Code:
    import javax.microedition.contactless.TargetListener;
    import javax.microedition.contactless.TargetProperties;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    
    public class Reader extends MIDlet implements TargetListener 
    {
    
    	public Reader() 
    	{
    		// TODO Auto-generated constructor stub
    	}
    
    	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
    		// TODO Auto-generated method stub
    
    	}
    
    	protected void pauseApp() {
    		// TODO Auto-generated method stub
    
    	}
    
    	protected void startApp() throws MIDletStateChangeException {
    		// TODO Auto-generated method stub
    
    	}
    
    	public void targetDetected(TargetProperties[] arg0) 
    	{
    		// TODO Auto-generated method stub
    
    	}
    
    }
    AND jad Entrys

    Code:
    MIDlet-1: Reader,,xxx.de.Reader
    MIDlet-Jar-URL: Nokia6131NFC.jar
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-Version: 1.0.0
    MIDlet-Vendor: Midlet Suite Vendor
    MIDlet-Name: Nokia6131NFC Midlet Suite
    MIDlet-Permissions: javax.microedition.io.Connector.http, javax.microedition.io.PushRegistry, javax.microedition.contactless.DiscoveryManager, javax.microedition.io.Connector.ndef, javax.microedition.io.Connector.rf, javax.microedition.io.Connector.sc
    MicroEdition-Profile: MIDP-2.0
    MIDlet-Push-1: ndef:rtd?name=urn:nfc:wkt:RFID_TAG,xxx.de.Reader,*
    MIDlet-Push-2: ndef:rtd?name=urn:nfc:wkt:NDEF_TAG,xxx.de.Reader,*
    MIDlet-Push-3: ndef:rtd?name=urn:nfc:wkt:ISO14443_CARD,xxx.de.Reader,*
    MIDlet-Push-4: ndef:rtd?name=urn:nfc:wkt:T,xxx.de.Reader,*
    MIDlet-Push-5: ndef:rtd?name=urn:nfc:wkt:U,xxx.de.Reader,*
    MIDlet-Push-6: ndef:rtd?name=urn:nfc:wkt:St,xxx.de.Reader,*
    MIDlet-Push-7: ndef:mime?name=text/uri-list,xxx.de.Reader,*
    MIDlet-Push-8: ndef:mime?name=text/x-uri,xxx.de.Reader,*
    installed the MIDled in the realdevice = no problem = no errormessage

    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...

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

    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...
    Do you have the correct path and MIDlet name in the entry? You could get the "Invalid application" message if the full path (including package name) or the the name of the MIDlet is not correct.
    Raluca Cindrea
    Helsinki, Finland
    www.nokia.com/nfc

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

    Re: 6131 NFC autostart on tag touch

    Quote Originally Posted by Raluca_
    Do you have the correct path and MIDlet name in the entry? You could get the "Invalid application" message if the full path (including package name) or the the name of the MIDlet is not correct.
    ...........
    Last edited by sdny; 2007-08-31 at 12:34.

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

    Re: 6131 NFC autostart on tag touch

    Now, if you are using NTIP tags, your entry in the jad file should look like this:

    MIDlet-Push-1:nfc:ntip?name=U,package.sample.TestMidlet,*

    The NTIP url sintax is as follows:
    <ntip url> ::= "nfc:ntip?name=<ntip fqn>"
    where <ntip fqn> ::= Fully qualified NTIP record type name

    When a MIDlet is launched by touching an NTIP tag no listeners will be notified.

    I don't have any NTIP tags available right now (I will try the Push Registry too as soon as I have them) but once you enter the correct Push Registry in the jad file and then run your MIDlet on the phone at lease once, you should be able to launch it using NTIP tags that have the NTIP record type you used in your Push Registry entry.

    A few more notes on the NTIP record type and Push Registry:

    The "Sp" NTIP record type (Smartposters, label and URI/SMS for example) has been reserved for native applications and cannot be used for PushRegistry registrations.

    In addition to this reserved type, the following types can be overriden by MIDlets and are record types that native applications handle if there is no MIDlet having a PushRegistry entry using the type:

    NTIP Record Type "St" - for SMS records
    NTIP Record Type "U" - for URI records

    Please let me know if you need more info on this or if you get it working following these intructions.
    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
  •  
×