title: When the application is closed, the Android Local service was stopped
body: <p>I'm using Delphi 10.3 for developing android application and I have implemented Service to retrieve the data from Server. The thread was running properly but it closes when the app is closed. 
  I have used the following code to run the service:</p>
  
  <pre><code>DMService.StartCommand();
  begin
    AddLog; //Log 
    SampleThread :=  TThread.Create;
    Result := TJService.JavaClass.START_REDELIVER_INTENT;
  end;
  </code></pre>
  
  <p>The same code worked fine in Delphi 10.1 (without mentioning the Android 26 as target version).</p>
  
  <p>Also I have tried using <a href="https://stackoverflow.com/questions/35447879/delphi-10-seattle-background-service-and-threads">TTask</a> but still the problem does not resolves.
  Also I have tried <code>Result := TJService.JavaClass.START_STICKY;</code>, but still the service closes.</p>
  
  <p>And after several analysis, I have analyzed after closing the host application the service, the Service starts again and the thread/Task initiated and the service was destroyed.</p>
  
  <p>Should I need to enable any special permission or while creating should I need to add more code. Currently, I'm using the following code for initiating the service from the host application: </p>
  
  <pre><code>  FLocalServiceConnection := TLocalServiceConnection.Create;
    FLocalServiceConnection.StartService('SCommuteSupervisorNotificationService');
  </code></pre>
  
  <p>Please help me to resolve this issue to run the service after the host app closes.</p>