Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   Delphi Android Abfrage query (https://www.delphipraxis.net/210988-android-abfrage-query.html)

zeras 10. Jul 2022 14:04


Android Abfrage query
 
Ich habe in vielen Beispielen Abfragen in Android für Datenbanken etc. gefunden.

Manchmal wird das so abgefragt
Delphi-Quellcode:
  Cursor := MainActivity.getContentResolver.query(Uri, l_projection, Selection, SelectionArgs, SortOrder);

manchmal so
Delphi-Quellcode:
  Cursor := SharedActivity.getContentResolver.query(Uri, l_projection, Selection, SelectionArgs, SortOrder);

manchmal so
Delphi-Quellcode:
  fContentResolver.query(StrToJURI('content://com.android.calendar/calendars'), wValues, wfilter, wArgs, nil);

manchmal so
Delphi-Quellcode:
  TAndroidHelper.Activity.getContentResolver.query

Teilweise auch noch anders.
Was ist hier der richtige Weg?

TurboMagic 12. Jul 2022 18:13

AW: Android Abfrage query
 
Der richtige Weg dürfte Delphi versionsabhängig sein.


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:44 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