Android Question ProgressDialog not displaying

Discussion in 'Android Questions' started by Declan, May 22, 2017.

  1. Declan

    Declan Active Member Licensed User

    I am calling a sub with:
    Code:
    Sub btnContactsList_Click
        
    ProgressDialogShow("Creating Contacts List")
        CallSubDelayed(Me,
    "GetContactList")
    End Sub
    In sub GetContactList I am creating a List of all the phone contacts and writting this into a SQLite table.
    All is great, BUT the ProgressDialog is only displayed after the sub GetContactList is finished.
    What am I doing incorrectly that the ProgressDialog is not display when btnContactsList is Clicked?
     
  2. ronell

    ronell Well-Known Member Licensed User

    Try instead of showing progressdialog.. change the text of the button to " creating contact list", see if it will update the activity before generating the list
     
  3. Declan

    Declan Active Member Licensed User

    Yes that works.
    I do:
    Code:
    Sub btnContactsList_Click
    '    ProgressDialogShow("Creating Contacts List")
        btnContactsList.Text = "Creating Contacts List"
        CallSubDelayed(Me,
    "GetContactList")
    End Sub
    Then in last line of sub GetContactList I do:
    Code:
    btnContactsBackup.Text = "Contacts List"
     
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