facebook

phoneui.showActivityDialog just view first dialog

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #345670 Reply

    Muhammad
    Member

    I use phoneui.showActivityDialog function to show download files progress,
    but only the first download progress dialog work.
    Eventhough, all files finished downloading.
    The second and third etc doesn’t view the dialog progress.

        for (j = 0; j < mp3_file.length; j++) {
    ....
    ....
            phoneui.showActivityDialog("Please wait, now downloading the surah " + file_name[j]);
    ....
    ....            
                    Downloading process
    ....
    ....    
                    phoneui.hideActivityDialog();
    
            }

    your help is appreciated.
    I use Mobione 2.5.0.

    Thank you.

    #345697

    Brandon
    Member

    Just my best guess…
    What are you using for the download process, it may be because this for loop runs faster than the download.
    Make sure in your download process you are using some kind of while loop, that only stops when the download is complete before going on to the next J.

    #345717

    Muhammad
    Member

    Good point CincyPlanet!
    I will check the code.
    Thank you so much.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: phoneui.showActivityDialog just view first dialog

You must be logged in to post in the forum log in