Implement Overtime Guard workflow and localization

This commit is contained in:
2026-06-16 18:51:42 +02:00
parent 9142b3695e
commit 912a2deeaf
34 changed files with 4821 additions and 2444 deletions

View File

@@ -14,7 +14,7 @@ public class starter extends android.app.Service{
android.content.Intent in = new android.content.Intent(context, starter.class);
if (intent != null)
in.putExtra("b4a_internal_intent", intent);
ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, true, anywheresoftware.b4a.ShellBA.class);
ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, true, BA.class);
}
}
@@ -29,7 +29,7 @@ public class starter extends android.app.Service{
super.onCreate();
mostCurrent = this;
if (processBA == null) {
processBA = new anywheresoftware.b4a.ShellBA(this, null, null, "b4a.example", "b4a.example.starter");
processBA = new BA(this, null, null, "b4a.example", "b4a.example.starter");
if (BA.isShellModeRuntimeCheck(processBA)) {
processBA.raiseEvent2(null, true, "SHELL", false);
}
@@ -135,63 +135,41 @@ public class starter extends android.app.Service{
@Override
public android.os.IBinder onBind(android.content.Intent intent) {
return null;
}
public anywheresoftware.b4a.keywords.Common __c = null;
}public anywheresoftware.b4a.keywords.Common __c = null;
public b4a.example.main _main = null;
public b4a.example.localization _localization = null;
public static boolean _application_error(anywheresoftware.b4a.objects.B4AException _error,String _stacktrace) throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "application_error", false))
{return ((Boolean) Debug.delegate(processBA, "application_error", new Object[] {_error,_stacktrace}));}
RDebugUtils.currentLine=1179648;
//BA.debugLineNum = 1179648;BA.debugLine="Sub Application_Error (Error As Exception, StackTr";
RDebugUtils.currentLine=1179649;
//BA.debugLineNum = 1179649;BA.debugLine="Return True";
//BA.debugLineNum = 27;BA.debugLine="Sub Application_Error (Error As Exception, StackTr";
//BA.debugLineNum = 28;BA.debugLine="Return True";
if (true) return anywheresoftware.b4a.keywords.Common.True;
RDebugUtils.currentLine=1179650;
//BA.debugLineNum = 1179650;BA.debugLine="End Sub";
//BA.debugLineNum = 29;BA.debugLine="End Sub";
return false;
}
public static String _process_globals() throws Exception{
//BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals";
//BA.debugLineNum = 10;BA.debugLine="End Sub";
return "";
}
public static String _service_create() throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "service_create", false))
{return ((String) Debug.delegate(processBA, "service_create", null));}
RDebugUtils.currentLine=983040;
//BA.debugLineNum = 983040;BA.debugLine="Sub Service_Create";
RDebugUtils.currentLine=983044;
//BA.debugLineNum = 983044;BA.debugLine="End Sub";
//BA.debugLineNum = 12;BA.debugLine="Sub Service_Create";
//BA.debugLineNum = 16;BA.debugLine="End Sub";
return "";
}
public static String _service_destroy() throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "service_destroy", false))
{return ((String) Debug.delegate(processBA, "service_destroy", null));}
RDebugUtils.currentLine=1245184;
//BA.debugLineNum = 1245184;BA.debugLine="Sub Service_Destroy";
RDebugUtils.currentLine=1245186;
//BA.debugLineNum = 1245186;BA.debugLine="End Sub";
//BA.debugLineNum = 31;BA.debugLine="Sub Service_Destroy";
//BA.debugLineNum = 33;BA.debugLine="End Sub";
return "";
}
public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "service_start", false))
{return ((String) Debug.delegate(processBA, "service_start", new Object[] {_startingintent}));}
RDebugUtils.currentLine=1048576;
//BA.debugLineNum = 1048576;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
RDebugUtils.currentLine=1048577;
//BA.debugLineNum = 1048577;BA.debugLine="Service.StopAutomaticForeground 'Starter service";
//BA.debugLineNum = 18;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
//BA.debugLineNum = 19;BA.debugLine="Service.StopAutomaticForeground 'Starter service";
mostCurrent._service.StopAutomaticForeground();
RDebugUtils.currentLine=1048578;
//BA.debugLineNum = 1048578;BA.debugLine="End Sub";
//BA.debugLineNum = 20;BA.debugLine="End Sub";
return "";
}
public static String _service_taskremoved() throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "service_taskremoved", false))
{return ((String) Debug.delegate(processBA, "service_taskremoved", null));}
RDebugUtils.currentLine=1114112;
//BA.debugLineNum = 1114112;BA.debugLine="Sub Service_TaskRemoved";
RDebugUtils.currentLine=1114114;
//BA.debugLineNum = 1114114;BA.debugLine="End Sub";
//BA.debugLineNum = 22;BA.debugLine="Sub Service_TaskRemoved";
//BA.debugLineNum = 24;BA.debugLine="End Sub";
return "";
}
}
}