Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
jpra
Posts: 2
Registered: ‎08-06-2013
My Device: Developer

NFC remove NDEF Listener from contact app

Hardware and OS: Curve 9380 on OS 7.1 Bundle 1133.

I'm developing a NFC-Application which communicates with a target over ISO14443Part4Connection.
The communication works but the problem is as soon as I connect the same card but also containing a vCard the built in contacts app is triggered to add the contact and my app is closed.
Is there any possibility to turn of the NDEF listener of the contact app?

I have already tried to remove the ndef listerner via
removeNDEFMessageListener(NDEFRecord.TNF_ANY, "text/x-vCard");
with all TNF possibilites and also with "text/plain" and "Sp" but it didn't help.

When debugging I get the Target and can reach the Connector.open() line in my code but right after this line the debugger gets me to NFCDetectionListenerManager$ExternalNFCDetectionListener$Callback.run() line 258
but Eclipse can't find the source. Now the contact app is triggered.

I hope somebody has suggestions how to solve this.

Please use plain text.
New Contributor
jpra
Posts: 2
Registered: ‎08-06-2013
My Device: Developer

Re: NFC remove NDEF Listener from contact app

I found out that on Nokia some MIME-Types could only be handled by native apps. As far as I understand only preinstalled/system apps can react to this MIME-Types, see Link.

Are there similar restrictions on Blackberry?  This would explain the behavior I see, because the card contains a NDEF-Message with the MIME-Type: text/x-vCard

Please use plain text.
BlackBerry Development Advisor (Retired)
robbieDubya
Posts: 418
Registered: ‎07-18-2012
My Device: Q10
My Carrier: Bell Canada

Re: NFC remove NDEF Listener from contact app

Hi,

 

What behaviour do you see if you add your own listener for that type?

--
Rob is no longer associated with BlackBerry.
Please use plain text.