Displaying an internet-hosted image

andrewf10

New Member
Licensed User
Longtime User
Hi,

Today's my first day of Android development and thanks to this brilliant site and product, a basic mySQL read-and-display app is up and running. Now I'm trying to adapt it to show a JPG that's stored on the internet.

In my ignorance, I thought this might work:
B4X:
Dim bmpImage As BitmapDrawable
            bmpImage.Initialize(LoadBitmap(File.DirAssets,"http://www.somewhere.ie/images/ie.jpg"))

but when I run it in the emulator, I get a FileNotFoundException

Can someone please guide me on how I can achieve this?

Many thanks in advance
 
Top