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
Developer
Posts: 35
Registered: ‎05-18-2011
My Device: BlackBerry 10 Dev Alpha, Blackberry 9700
My Carrier: -
Accepted Solution

How can I detect if app is third-party

Hello.

 

I can use CodeModuleManager to get the list of installed modules.

Can I use this to detect if app, which corresponds to given module, is third-party?

Or do I have to use ApplicationDescriptor to retrieve such information?

 

Thanks in advance!

Developer
Posts: 35
Registered: ‎05-18-2011
My Device: BlackBerry 10 Dev Alpha, Blackberry 9700
My Carrier: -

Re: How can I detect if app is third-party

I have an idea:

if to retreive module name, it can return a string of such kind: "net_rim_bb_myspace". Can I detect the app is not "third party" by checking of the start of module name (if it starts from "net_rim_", then it is not third party for sure)?

Highlighted
Developer
Posts: 35
Registered: ‎05-18-2011
My Device: BlackBerry 10 Dev Alpha, Blackberry 9700
My Carrier: -

Re: How can I detect if app is third-party