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

Android™ Runtime Development

Reply
Regular Visitor
Posts: 1
Registered: ‎05-28-2014
My Device: BB z10
My Carrier: Bell
Accepted Solution

Merging 2 bar file

I have an application that devide in 2 parts

1) native bb code that access device information like call log and running a bg service

2) android code that contain the ui

The question here how can i merge these 2 app in one bar files.

Trusted Contributor
Posts: 160
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: Merging 2 bar file

Hi,

 

There is no way to mix Android applications and native libraries.

In your case I believe the best user experience could be achieved if you implement your UI in Cascades.

 

Also, you could try to build your native code with the Android NDK and link that Android native library to your Android project. This way you will get an .apk which can be converted to .bar. However in this case you can target only OS 10.2 and newer.

Here you have some reading on the Android native support: https://developer.blackberry.com/android/apisupport/android_native_support.html

--
If you find this post useful please Like it.
If it solves your problem please mark as solution.