Android Question Loading... message delayed until download almost complete

Discussion in 'Android Questions' started by Britt Paty, Apr 29, 2015.

  1. Britt Paty

    Britt Paty New Member Licensed User

    Hi, I'm not sure why this is happening, but the loading gif I use during the downloading of an image doesn't display until well after the visibility property has been set to true and almost when the download has been completed. The Panel visibility is set to True the first line of code after the download button is clicked Like this:

    Sub DownloadCategoryImageNames(Category As String)
    DownloadingPanel.Visible = True
    Log("Start Download...")

    Dim SqlStr As String = "SELECT * FROM Posts Where Category = '" &
    .
    .
    .
    End Sub

    Sub ImgForward_Click
    DownloadCategoryImageNames(Category)
    If ImageCount > 0 Then
    .
    .
    .
    End Sub

    The DownloadingPanel appears a few seconds after the download starts and well after the "Start Download..." log entry appears. I don't know why this is happening. Any ideas?

    Thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    How are you downloading the image?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice