![]() |
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 |
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; |
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 07:17 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz