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

Native Development

Reply
Contributor
danywarner
Posts: 38
Registered: ‎09-06-2013
My Device: BlackBerry Z10
My Carrier: Claro
Accepted Solution

Turn Off NFC

Hey friends, I am using an example I saw of using invokeActionItems to share stuff via NFC, it actually works for me, but it happens that NFC thing stays ON after the activity finishes or even after I close the application, could anyone tell me how to turn it off?

 

my code is this:

 

InvokeActionItem
{

imageSource: "asset:///icons/signal.png"
//ActionBar.placement: ActionBarPlacement.OnBar
query {
invokeTargetId: "sys.NFCViewer"
invokeActionId: "bb.action.SHARE"
uri: _dirPaths.files + "temp1.jpg"

}

}



_______________________________________________________
If you've been helped click on Like Button, if you've been saved download the app.

Developer of Easy Memes
Please use plain text.
Developer
simon_hain
Posts: 15,869
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Turn Off NFC

i don't think it's possible to switch if off via the API.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
bmorr
Posts: 274
Registered: ‎04-13-2013
My Device: Z10
My Carrier: Telus

Re: Turn Off NFC

I also don't think it is possible to turn off afterwards either.

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

Re: Turn Off NFC

Correct - you cannot turn it off;

 

https://developer.blackberry.com/native/reference/core/nfc_libref/topic/nfc_settings_t.html#data_

--
Rob is no longer associated with BlackBerry.
Please use plain text.
Contributor
danywarner
Posts: 38
Registered: ‎09-06-2013
My Device: BlackBerry Z10
My Carrier: Claro

Re: Turn Off NFC

So could it be a reason to get bfb denied?


_______________________________________________________
If you've been helped click on Like Button, if you've been saved download the app.

Developer of Easy Memes
Please use plain text.
Developer
simon_hain
Posts: 15,869
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Turn Off NFC


danywarner wrote:
So could it be a reason to get bfb denied?

no

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.