@RaisesSynchronousEvents
private void raiseuievent(final String eventsub, final Object... args)
{
// we need to check the thread we are on at event or call time
// because we could be newed on main thread and invoked on another
if (Thread.currentThread() == guithread)
{
// use raiseEvent2 to let it run during Activity_Create
ba.raiseEvent2(this, true, eventsub,false, args);
return;
}
TaskId += 1;
ba.raiseEventFromDifferentThread(this, this, TaskId, eventsub, false, args);
}