Alternative way of using Itoo X in your extension projects
This is helpful when you use include the Itoo extension in your project, but do not want to include Itoo X as a separate library additionally.
This is the most simplest way of using Itoo...
Steps to follow:
-
Include Itoo X wrapper library (~3 KB) that will automatically manage calling Itoo and takes care of situations when Itoo is not present (i.e ClassNotFound Exception).
When you use this library, it is advised to apply progaurd to the library.
-
Calling Itoo in your background service / alarm broadcast / different process:
if (FrameworkWrapper.isItooXPresent()) {
// this checks if Itoo is present
String myScreen = "Screen1"; // the screen in which procedure exists
FrameworkWrapper wrapper = new FrameworkWrapper(context, myScreen);
if (wrapper.success()) {
wrapper.call("someProcedureName", arg1, arg2, arg3...);
}
}