A andrewf10 New Member Licensed User Longtime User Mar 7, 2012 #1 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: Code: 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
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: Code: 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
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2012 #2 This is a little bit more complicated. You will need to download the file yourself. This can be done pretty easily with HttpUtils: HttpUtils - Android web services are now simple! Upvote 0
This is a little bit more complicated. You will need to download the file yourself. This can be done pretty easily with HttpUtils: HttpUtils - Android web services are now simple!