Hi. I am making Android app, and i add Android Service to project, guided by this video:
Code in the Android Service:
unction TDM.AndroidServiceStartCommand(const Sender: TObject;
const Intent: JIntent; Flags, StartId: Integer): Integer;
begin
Result := TJService.JavaClass.START_STICKY;
end;
Calling from main project:
FService : TLocalServiceConnection;
FService := TLocalServiceConnection.Create;
FService.StartService('F');
But when i lainch my application, it is crashing at once at start. When i launch my app under debugging, Delphi writing me:
Full text on the attachment.
Also, debugger get this code:
I am using Delphi 10.4 CE.