![]() |
Android Rückmeldung über USB möglich (Log im PC)?
Hallo,
Ich nutze XE5, um für Android zu programmieren. Dabei habe ich ein Tablet über USB am Rechner. Ich würde gerne über einen Befehl im Programm eine Info an den PC senden, ähnlich Logs direkt an den PC. Geht sowas mit ADB oder gibt es andere Möglichkeiten? Ich habe in einem Beispielprjekt gesehen, dass dort "Log.d('Info') ausgegeben wird. Kommt diese über Debugging an den Rechner oder wird das lokal auf dem Tablet gelogt? |
AW: Android Rückmeldung über USB möglich (Log im PC)?
Ja mit logcat
|
AW: Android Rückmeldung über USB möglich (Log im PC)?
Und ganz simpel mit
Delphi-Quellcode:
die Meldungen schreiben. Geht eigentlich auf jeder Plattform (und kann man bei Bedarf auch durch eine eigene Implementierung ersetzen).
uses
FMX.Platform; procedure Log( const AFormat : string; const AParams : array of const ); var LLog : IFMXLoggingService; begin if TPlatformServices.Current.SupportsPlatformService( IFMXLoggingService, LLog ) then LLog.Log( AFormat, AParams ); end; |
AW: Android Rückmeldung über USB möglich (Log im PC)?
Zitat:
|
AW: Android Rückmeldung über USB möglich (Log im PC)?
Zitat:
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:52 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