private String callhostsub(BA processBA, String sub, Object[] args)
{
try
{
sub = sub.toLowerCase();
if (args == null)
args = new String[0];
if (!BA.subExists(sub))
{
BA.Log("B4A", "CallHostSub : Sub " + sub + " not found!");
return "";
}
String ret;
// use raiseEvent2 to let it run during Activity_Create
ret = (String) BA.raiseEvent2(this, true, sub, false, args);
// raiseEvent returns null during Activity_Create
if (ret == null)
{
ret = "";
}
return ret;
} catch (Exception e)
{
String msg = "CallHostSub : " + sub + " - " + e.toString() + " - " + e.getMessage();
BA.Log( msg);
}
return "";
}