Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private Button1 As Button
Private ImageView1 As ImageView
Private foto As Int = 0
Private nomefoto(4) As String
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("immagine")
caricofoto
If foto = 0 Then
ImageView1.Bitmap = LoadBitmap(File.DirAssets, nomefoto(foto))
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub caricofoto
nomefoto(0)= "cattura 2.png":nomefoto(1)= "cattura2.png":nomefoto(2)= "cattura3.png":nomefoto(3)= "cattura.png"
End Sub
Sub Button1_Click
If foto >= 0 And foto < 3 Then
foto = foto + 1
Else
foto = 0
End If
Log(nomefoto(foto))
ImageView1.Bitmap = LoadBitmap(File.DirAssets, nomefoto(foto))
End Sub