InternalPlainTagConnection

View: New views
11 Messages — Rating Filter:   Alert me  

InternalPlainTagConnection

by josergc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,

I have received an email asking this question:


Hi Josergc,

I'm trying to read the internal tag, but when I implement the function "pconn = (InternalPlainTagConnection)Connector.open("nfc:InternalPlainTag");" in the midlet, the midlet won't execute on the t80...

I don't get any errors; I don't even call the function directly at startup of the midlet.
Could this be due to the signing of the midlet (which I didn't)? If so: is there a way to read the Internal Tag without signing or is there a public key that can be used? (without registering on VeriSign)

regards,

Joris Suilen

Re: InternalPlainTagConnection

by josergc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joris,

This is an strange problem. Reviewing the standard JSR257, there is not InternalPlainTagConnection class, maybe you should use the class PlainTagConnection. After of all, it will be the same, that InternalPlainTagConnection will implement PlainTagConnection interface. Can you test if it works now?

Best regards,

Re: InternalPlainTagConnection

by Joris.Suilen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried both.. The error I receive is:

java.lang.SecurityException: javax.microedition.io.Connector.nfc was denied

How can I give permission to the midlet to use io.Connector.nfc?
I am using WTK with the modified DefaultColorPhone to compile.

Do I need the midlet to be signed to be able to give permissions?

- Joris

Re: InternalPlainTagConnection

by josergc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joris,

Yes, that SecurityException is because your MIDlet must be signed. Permits also goes in the JAD file. What is the compiler that are you using for J2ME? I am using the Sun Wireless Toolkit.

Greetings,

Re: InternalPlainTagConnection

by Joris.Suilen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I also am using the SUN wireless toolkit to compile. Is there a workaround to not sign the midlet while beiing able to make use of the io.Connector funcitons ?

- Joris

Re: InternalPlainTagConnection

by negrek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

were you able to solve the error "javax.microedition.io.Connector.nfc was denied"???

thank you in advance

Re: InternalPlainTagConnection

by josergc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

No news from BenQ about that issue.

I want to ask: did you try to add "javax.microedition.io.Connector.nfc" to the JAD attribute "MIDlet-Permissions"??

Jose

Re: InternalPlainTagConnection

by negrek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have just done it, and unfortunately it does not work :( I am really in a hurry. we are developing a prototype for a big Spanish Mobile Operator, and this could be a great opportunity for Ben  Q, Toro, etc... thank you for your support!!



Re: InternalPlainTagConnection

by josergc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

From my own research, and also checking the documentation, did you set up the NFCRequestEnabled to true? did you stop the external scan as well?

Re: InternalPlainTagConnection

by negrek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, still the same excepcion when we try the conector.open :(

Re: InternalPlainTagConnection

by negrek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi again,

after all the tests it seems that if we do not sign the midle with a verisign certificate, it will not work

so could you please ask ben q for either a "developer certificate" or a firmware version when the user could give (or not) permisissions

thank you in advance