Android Question ProgressDialog not showing

tsteward

Well-Known Member
Licensed User
Longtime User
While loading my CLV I would like to show the ProgressDialog but I must be doing something wrong as it does not display at all.

Even when loading a small number of items into a CLV on some devices it is a bit slow so showing that the app is working would be nice.

B4X:
Sub vehiclesCLV_AddItems
   'Log("AddItems")

   ProgressDialogShow("Loading...")
   Dim currentNumberOfItems = vehiclesCLV.GetSize
   For i = currentNumberOfItems To Min(currentNumberOfItems + qtyRows, makes.Size-1)
     vehiclesCLV.Add(createListItem(makes.Get(i)), 62dip, "Item #t" )
   Next
   ProgressDialogHide
End Sub
 
Top