Android Question How to save images in my Phone Galary

Discussion in 'Android Questions' started by Makumbi, Jun 11, 2019.

  1. Makumbi

    Makumbi Active Member Licensed User

    Please help how can i improve this code so that it saves the download to my phone galary
    thank you

    Code:
    Dim j As HttpJob
        j.Initialize(
    "", Me)
        j.Download(
    "http://kccug.com/KabojjaApp/work/P1.png")
        
    Wait For (j) JobDone(j As HttpJob)
        
    If j.Success Then
            
    Dim out As OutputStream = File.OpenOutput("Dir""P1.png"False)
            
    File.Copy2(j.GetInputStream, out)
            out.Close
        
    End If
        j.Release
        
    'Return j.Success
     
  2. mangojack

    mangojack Well-Known Member Licensed User

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