Android Question HttpUtils2

Discussion in 'Android Questions' started by Devv, Mar 4, 2015.

  1. Devv

    Devv Active Member Licensed User

    Hello

    how could i get the percentage completed from HttpUtils2 download ?
    i want to see how much % is downloaded from my file how ?
     
  2. wonder

    wonder Expert Licensed User

    Devv likes this.
  3. Devv

    Devv Active Member Licensed User

    Thanks mr wonder

    i have another question plz

    RSASYNCdownlaoder it is working nicely except with the following code it will not toast the progress

    Code:
    Sub Activity_Create(FirstTime As Boolean)
        
    'Do not forget to load the layout file created with the visual designer. For example:
        'Activity.LoadLayout("Layout1")
        Dim AsyncDownloader As RSAsyncDownloader
        AsyncDownloader.Initialize(
    "AsyncDownloader")
        AsyncDownloader.FileName = 
    "test.apk"
        AsyncDownloader.Directory = 
    File.DirRootExternal
        AsyncDownloader.Download(
    "http://downloader-apk.com/apps/2015/02/19/WhatsApp_Messenger%202.11.528_[www.Downloader-Apk.com].apk")
    End Sub

    Sub Activity_Resume

    End Sub

    Sub Activity_Pause (UserClosed As Boolean)

    End Sub


    Private Sub AsyncDownloader_Started
    ToastMessageShow("The download has started.",False)
    End Sub

    Private Sub AsyncDownloader_Update (Progress As Int)
    ToastMessageShow(Progress,False)
    End Sub

    Private Sub AsyncDownloader_Finished (Result As String)
    ToastMessageShow("The download has finished.",False)
    End Sub

    this is very wired if you placed any url instead of the flowing it will work

    any ideas ?
     
  4. wonder

    wonder Expert Licensed User

    No problem Devv, glad I could point you in the right direction.
    Your second question is out of my scope, but I hope someone here will soon help you out.
     
    Devv likes this.
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