#Region Project Attributes
#ApplicationLabel: b4aMobileVisionBitmap
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
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.
Dim mvbm As MobileVisionBitmap
Private Button1 As Button
Private iv1 As ImageView
Private bm 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("main")
bm.Initialize(File.DirAssets,"saying1.png") 'saying.png and saying1.png are in the /Files folder of the B4A project
iv1.Bitmap = bm
mvbm.Initialize("mvbm")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
mvbm.decodeBitmap(bm)
bm = Null
bm.Initialize(File.DirAssets,"saying1.png") 'saying.png and saying1.png are in the /Files folder of the B4A project
iv1.Bitmap = bm
End Sub
Sub mvbm_blocks_result(blocks As String)
Log("B4A Blocks = " & blocks)
End Sub
Sub mvbm_lines_result(lines As String)
Log("B4A Lines = " & lines)
End Sub
Sub mvbm_words_result(words As String)
Log("B4A Words = " & words)
End Sub
Sub mvbm_error_result(error As String)
Log("B4A ERROR = " & error)
End Sub