title: Communication between main firemonkey application and local service
body: <p>I've got a Firemonkey application with a Local Android Service.</p>
  
  <p>When the user opens it, he has to write something in a TEdit and when he clicks an OK button, the application starts the local android service :</p>
  
  <pre><code>FLocationServiceConn := TLocalServiceConnection.Create; // -- android_service
  FLocationServiceConn.StartService('LocationService'); // -- android_service
  </code></pre>
  
  <p>The service sends user's location to a remote server using a nethttpclient object.</p>
  
  <p>The problem is that I need to send TEdit.Text info with the user's location to the remote server (I need to know which is the user), so I need to pass that info to the service when it starts.</p>
  
  <p>I haven't found how to pass parameters to a local service. I have tried to create a file when the user clicks OK button (it works)</p>
  
  <pre><code>miau:=TStringList.Create;
  miau.Text:='test';
  miau.SaveToFile(TPath.Combine(TPath.GetDocumentsPath, 'conf.txt'));
  </code></pre>
  
  <p>but when I try to read that file from the service, it crashes...(It seems TPath is the problem).</p>
  
  <p>What do you think? Which would be the best way to send the users info (TEdit.Text) to the local service?</p>
  
  <p>Thank you very much</p>