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
Highlighted
Developer
Posts: 27
Registered: ‎03-27-2011
My Device: Z10,Q10,Z30
My Carrier: Verizon and ATT

Checking whether BlackBerry Map is installed on a device ....cascades/C++

I am using LocationMapInvoker in my app which is a work container app. I was able to delete the BlackBerry Map from work container.

 

How I can check whether BlackBerry Map is installed on a device from code?

 

 

Retired
Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

Re: Checking whether BlackBerry Map is installed on a device ....cascades/C++

Unfortunately, there is no way to find out whether maps is installed or not. I will try to find a workaround for your use case.

Shadid
Developer
Posts: 27
Registered: ‎03-27-2011
My Device: Z10,Q10,Z30
My Carrier: Verizon and ATT

Re: Checking whether BlackBerry Map is installed on a device ....cascades/C++

Invokemanager has a method queryTargets(), but have to know the id of BlackBerry Maps to make a call(by setting it as the target) and also need to know the mime type. i saw the mime type for a 3rd party map in BB 10 as "application/vnd.rim.map.action-v1" and there is a target also. If the target is known for BlackBerry Maps, I feel that I can use queryTargets() method of InvokeManager and check for the presence of BlackBerry Map