Load pica from dB in ScrollView

parijs

Active Member
Licensed User
Longtime User
Hi,

I try to load a pica from a dbase in a ScrollView

this is my code:

B4X:
Dim bmdbackground As BitmapDrawable

bmdbackground.Initialize(oRst.GetString("pic"))
Panel1.Initialize("View")
Panel1.Tag=nPos&"0"

PanelHeight=150dip  
Label2Top=75dip

Panel0.AddView(Panel1,0,PanelTop,scvMain.Width,PanelHeight)
Panel1.Color=Colors.Black
ImageView1.Initialize("View")    
ImageView1.Tag=nPos&"8"
Panel1.AddView(ImageView1,5dip,5dip,65dip,65dip)
ImageView1.Background = bmdbackground

and this is my error

bmdbackground.Initialize(oRst.GetString(\
javac 1.6.0
src\mus\zh\overzicht.java:407: inconvertible types
found : java.lang.String
required: android.graphics.Bitmap
_bmdbackground.Initialize((android.graphics.Bitmap)(mostCurrent._orst.GetString("pic")));
^
1 error

Who can help me :sign0085:
 
Top