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
Developer
jessica99327
Posts: 84
Registered: ‎04-22-2013
My Device: BB 10 Dev

Is it possible to prevent people from converting apk to bar

Hi all,

I'm concerned about the issue of converting apk to bar file, is there ways to prevent people from converting the apk to bar.

 

Thanks in advance.

Developer
simon_hain
Posts: 16,364
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Is it possible to prevent people from converting apk to bar

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
Developer
superdirt
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: Is it possible to prevent people from converting apk to bar

You can use the Android function, System.getProperty("os.name"), and if it returns "qnx", kill the app. It won't prevent a BB user from installing an APK, but it should render the app useless on a BB.

Developer
jessica99327
Posts: 84
Registered: ‎04-22-2013
My Device: BB 10 Dev

Re: Is it possible to prevent people from converting apk to bar

thanks for your suggestion, it works.

But it seems like the android way of killing the app doesn't compatible on BB, because it only makes the app to background. whenever i tap on it again it pops up like how it's being launched.

 

Developer
superdirt
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: Is it possible to prevent people from converting apk to bar

This forum is the BlackBerry Cascades forum which is separate from Android development. There is a forum here that deals strictly with Android development on bb10. I would see if they could provide help over there.