BalajiG
BalajiG

Reputation: 529

Connecting AAR with Mobile First application

I Have a AAR file , in Mobile First Project I have to do a call which should open the activity from AAR file . How to do that? I have a Eclipse with MFP 7.0 .

Upvotes: 2

Views: 183

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

As suggested by Andrew in the comments, there is nothing specifically in the MobileFirst framework that will help you here. You will need to write native code in order to use whatever is inside the AAR file.

Create a Cordova plug-in as described in the following tutorial in order to access the AAR file and use its provided functionality: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/adding-native-functionality/android-adding-native-functionality-hybrid-application-apache-cordova-plugin/

However I believe this may also require handling it via Gradle: cordova plugin add external .aar file (not .jar)

Another suggestion that comes up is to extract the .jar file that is inside the AAR file and then that's much easier to handle...

Upvotes: 1

Related Questions