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
New Contributor
ANMC
Posts: 6
Registered: ‎12-01-2012
My Carrier: developer
Accepted Solution

How can I check if an App already installed?

I am porting a game that unlock special items if another App is installed.

 

But I don't know how to check an App is installed or not.

If there any API available in the NDK ?

 

THX

Please use plain text.
Developer
peter9477
Posts: 6,448
Registered: ‎12-08-2010
My Carrier: none

Re: How can I check if an App already installed?

I believe there is not any API for that, yet.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
jtegen
Posts: 6,536
Registered: ‎10-27-2010
My Carrier: Verizon

Re: How can I check if an App already installed?

You could try the invocation framework and query the target's invocation ID.
Please use plain text.
Developer
peter9477
Posts: 6,448
Registered: ‎12-08-2010
My Carrier: none

Re: How can I check if an App already installed?

While on the subject of workarounds and hacks, you could also check for the app's data folder in /accounts/1000/appdata. While you won't be able to peek inside it, just knowing that the folder exists will tell you that it has been installed *and launched at least once*.

I don't think apps can read from the /apps/ folder any more, as of beta 3 or 4, so you can't just look to see if the .bar has been installed any more.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
New Contributor
ANMC
Posts: 6
Registered: ‎12-01-2012
My Carrier: developer

Re: How can I check if an App already installed?

This work great :smileyhappy:

THX
Please use plain text.