Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   Firemonkey Service starten (https://www.delphipraxis.net/180875-firemonkey-service-starten.html)

geosucher 26. Jun 2014 09:58

Firemonkey Service starten
 
Hallo zusammen,

ich arbeite mit Delphi XE5 und versuche aus einer App eine andere App zu starten (BluetoothGPS).
Im Internet findet man dazu:

"...Now you can start/stop the service from other apps by sending the service or broadcast Intent :
Start - googoo.android.btgps.action.SERVICE_START
Stop - googoo.android.btgps.action.SERVICE_STOP
Toggle - googoo.android.btgps.action.SERIVCE_TOGGLE
* Note: You should first make sure you setup all the preferences and you can start the service correctly through the GUI frontend.
* try the workarounds (in preference) if failed to connect (eg, service discovery fail, connection refused)..."

Nun meine Frage: Wie starte/stoppe ich einen Service in Android?

Danke für Eure Tipps!:)

Gruß

Geosucher

MEissing 26. Jun 2014 10:46

AW: Firemonkey Service starten
 
Über die normalen Android-Mechanismen (Intent)

Analog zu dem hier:

Code:
var
  intent: JIntent;
begin
    intent := TJIntent.Create;
    intent.setAction(StringToJString('googoo.android.btgps.action.SERVICE_START'));
    SharedActivity.startActivityForResult(intent, 0);
end;

geosucher 26. Jun 2014 12:56

AW: Firemonkey Service starten
 
Hallo Herr Eißing,

danke für die schnelle Hilfe! Android-Programmierung ist noch ziemliches Neuland
für mich, um so besser, dass es dieses Forum gibt.

Vielen Dank!

Roland Hesse


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:32 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz