Android Question Download And Save And Show Image in LoOp

Discussion in 'Android Questions' started by ™AsAs4242, Jun 2, 2015.

  1. ™AsAs4242

    ™AsAs4242 Member Licensed User

    I'm a social network application

    When you open the application registered users list(the name and photo)will appear.

    I can download image and show in imageview with Picasso library, but it can't be saved in thememory

    I do not want to be cached images

    I want to download and save to memory and display

    then next time if we enter the application if there photo in memory shown else download and save photos then display
  2. Erel

    Erel Administrator Staff Member Licensed User

    This code saves a Bitmap object named bmp to a file:
    Dim out AsOutputStream
     out = 
    File.OpenOutput(File.DirDefaultExternal, "1.jpg"False)
    Peter Simpson and ™AsAs4242 like this.
  3. ™AsAs4242

    ™AsAs4242 Member Licensed User

    Tnx For Replay Erel But Ago i tested it

    if load image with picasso and save with this method the size of saved image is 2kb and when open is black !!

    plz see ScreenShot

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    It is impossible to help you without seeing the code.