Downloaded Bitmap and ListView

pixelpop

Active Member
Licensed User
Longtime User
I am attempting to download an image and use it in ListView. Can't quite get there:

B4X:
Sub smImagesJobDone (Job As HttpJob)

   If Job.Success = True Then
      smImage = Job.GetBitmap
   End If
End Sub

Sub ...
...some processing...

ListView1.AddTwoLinesAndBitmap(hl_short, "", smImage)

End Sub

Of course, B4A wants the bitmap initialized, but Initialze expects a bitmap from a file and Initialize2 expects an InputStream, but ListView wants an bitmap. Is there a way to do this without writing the image to a file and then reading it back in ListView?
 

pixelpop

Active Member
Licensed User
Longtime User
I thought so, but it wasn't. Since my post, I have kept trying different things. If you would be kind enough, attached is my latest itteration. The remote source file is available for viewing, but here is a recap:


If you caould take a look and see what I'm doing wrong, it would be a great help. Thanks.
 

Attachments

  • news_list.zip
    1.7 KB · Views: 267
Upvote 0

pixelpop

Active Member
Licensed User
Longtime User
Here you go, Erel. Thanks for taking a look at this or me.
 

Attachments

  • pixelpop_submission.zip
    88.4 KB · Views: 305
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…