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
 

tsteward

Well-Known Member
Licensed User
Longtime User
Nope didn't show still :(
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Try a doevents *within* the loop.. They cut down to only doing do events every so often.
Yep that works. Thanks.

My apps fine on my G2 phone but shit its slow on Galaxy Tab3 amazing
 
Upvote 0
Top