We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

External lib call

Hi,

Is it possible to call a method from an external native compiled library which will be included in the project ?

Regards,
Greg

1 Reply

KT Karthick T Syncfusion Team April 25, 2014 12:09 PM UTC

Hi Greg,

 

Thanks for your interest in Syncfusion Products.

 

Yes, it is possible to call the external library methods which is included in the project. We can achieve native functionality (may also in external library) apart from the Orubase in-built APIs with the help of the “handleScripts()” method, which is used to handle the custom native code via JavaScript.

 

The following code snippet should be defined in the JavaScript to call the “handleScripts” method to define the Custom Native Codes.

 

Android.ProcessJavaScript("Custom",null, null);

 

Define or call the Custom Native Codes inside the below method.

 

@Override

public void handleScripts(String script) {

   // TODO Auto-generated method stub

   // Call custom libraries method here

}

 

We have prepared a sample for Android platform which displays alert dialog from Orubase and also from the external library “toast.jar”.

 

Please check the attached sample and let us know if you have any further assistance.

 

Regards,

Karthick T


Attachment: OrubaseDemoProject_38da69f4.zip

Loader.
Live Chat Icon For mobile
Up arrow icon