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.
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.
See you this thread -> 2007-06-14, 13:35 (code)Originally Posted by sdny
and add that
Code:'XXX' = properties[i].getUid();
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.Originally Posted by mariosas
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
You don't really need all those entries in the first place. Can you please describe exactly what you want to do?Originally Posted by sdny
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
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.
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
None of my tags contain NDEF formatted data.
My ID tags are in the NTIP data format, the rest are "Proprietary" data format.
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
all entrys in the jad by me no problem with Nokia 6131 NFCOriginally Posted by sdny
im code and not in jad - be me no problem.
see you all example in this thread.
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)
AND jad EntrysCode: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 } }
installed the MIDled in the realdevice = no problem = no errormessageCode: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,*
Originally Posted by mariosas
![]()
![]()
![]()
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.Originally Posted by sdny
Raluca Cindrea
Helsinki, Finland
www.nokia.com/nfc
...........Originally Posted by Raluca_
![]()
Last edited by sdny; 2007-08-31 at 12:34.
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