Android Question path to files

coldteam

Active Member
Licensed User
Longtime User
HI. I have a question
i load image to ImageView like this:

B4X:
image_view1.Bitmap = LoadBitmap(File.DirAssets,"filename.jpg")

but if i have all image files in folder like: files\mypic\
i try to use:
B4X:
image_view1.Bitmap = LoadBitmap("file:///android_asset/mypic/","filename.jpg")

but its dont work with images

how to load image from new folder inside files?

THX
 

eurojam

Well-Known Member
Licensed User
Longtime User
it should be
B4X:
image_view1.Bitmap = LoadBitmap(File.DirAssets,"mypic/filename.jpg")
 
Upvote 0

coldteam

Active Member
Licensed User
Longtime User
ty, its work, but log write this:
check pic, but file loaded
 

Attachments

  • 2016-02-18 22-27-49 Скриншот экрана.png
    2016-02-18 22-27-49 Скриншот экрана.png
    2.8 KB · Views: 139
Upvote 0
Top