Android Question customlistview

Tata Mapassa

Member
Licensed User
Longtime User
Hello, I have a sqlite database with 1 table (Test) and 3 fields (ID, Label, Date). I want each time the application is started to display a customlistview (Icon, label) of all the records with only the Date field corresponding to today's date?
If possible that the label is of a different color from one recording to another?

THANKS
 

josejad

Expert
Licensed User
Longtime User
I have a sqlite database with 1 table (Test) and 3 fields (ID, Label, Date). I want each time the application is started to display a customlistview
Upload a small project with your code and what you want to achieve. It will make easier to help you
 
Upvote 0

Tata Mapassa

Member
Licensed User
Longtime User
I use the application directly on an Android smartphone after sending the APK from the PC to the phone via Bluetooth.
 

Attachments

  • Capture d'écran 2024-03-31 231619.png
    Capture d'écran 2024-03-31 231619.png
    131.9 KB · Views: 31
Upvote 0

josejad

Expert
Licensed User
Longtime User
Hi:

Please, check how to make sql queries. My comment "'Modify the query to select just date = today" is not literal

Check DateTime docs too
Your query should be something like

B4X:
"SELECT ID, Info, Date FROM Test Where Date = '" & DateTime.Date(DateTime.Now) & "'"
 
Upvote 0
Top