Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim imvMyImageView As ImageView
Dim bmpMyBitmap As Bitmap
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
imvMyImageView.Initialize("IV") 'initialize the imageview
bmpMyBitmap.InitializeMutable(128,128) 'initialize the bitmap with size of 128 x 128
imvMyImageView.Bitmap = bmpMyBitmap 'attach the bitmap to the imageview
Activity.AddView(imvMyImageView,0,0,128,128) 'attach the imageview to the activity
End Sub