Please help how can i refesh the badger to show the current true counts after a record has been removed from my table without closing and opening my app
B4X:
Dim intCount As Int
intCount = Starter.SQL1.ExecQuerySingleResult("SELECT count(Id) as Id FROM SMSlist")
If intCount > 0 Then
Dim ms As Int = intCount
Else
Dim ms As Int = 0
End If
Log(ms)
badger1.SetBadge(btnSend, ms)
i wanted the badger to show current count after the deletion from the table has occurred not waiting for me to close the app and then re initialize again (Like a refresh or requery similar to the one used in ms access forms
Your code looks correct. I recommend you to create small project without the database and only with the badge feature. If it doesn't work then upload it.