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
crazycoder1999
Posts: 14
Registered: ‎12-06-2012
My Device: Dev Alpha
My Carrier: Vodafone
Accepted Solution

Bluetooth and Headless Application

Hello,

 I'm experimenting with Bluetooth Low Energy and I was wondering if it is possible to use Headless app running in background that use bluetooth.

What I would like to achieve, it is to have a service that continuos (every 1 or 2 minute) start a bluetooth searching for a particular device and do something if my phone is enough near to the bluetooth target.

 

Actually I'm able to start bluetooth search and get the RSSI information from the device but I would like to put in background and update my BBM status when I know to me near the target

 

have anyone tested something like that?

Is it possible?

Please use plain text.
Developer
smiley
Posts: 1,432
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Bluetooth and Headless Application

Yes you can do this in the Headless app but you can't display and UI.

Please use plain text.
BlackBerry Development Advisor
shaque
Posts: 230
Registered: ‎07-14-2008
My Device: Not Specified

Re: Bluetooth and Headless Application

You need to build a long running headless app for this. Long running headless apps runs indefinitely in the background but you will need to obtain the permissions first. Please start with this form: https://developer.blackberry.com/jam/headless/

Shadid
Please use plain text.
Contributor
crazycoder1999
Posts: 14
Registered: ‎12-06-2012
My Device: Dev Alpha
My Carrier: Vodafone

Re: Bluetooth and Headless Application


There is no UI but I suppose there is a way to talk with it from an app.
I will try it
Thanks you
Please use plain text.