#Region Project Attributes
#ApplicationLabel: Test
#VersionCode: 1
#VersionName: 1.1
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#LibraryVersion: 1.2
#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.
Private barcode As EditText
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")
Activity.LoadLayout("1.bal")
StartService(service1)
End Sub
Sub Activity_Resume
'Dim iIn As Intent
'iIn = Activity.GetStartingIntent
' Dim str As String
' str = iIn.ExtrasToString
' Log(str)
' str = Activity.GetStartingIntent.ExtrasToString
' Log(str)
'Log(Activity.GetStartingIntent.HasExtra("android.intent.extra.EXTRA_BARCODE_DECODED_DATA"))
'Log(Activity.GetStartingIntent.GetExtra("android.intent.extra.EXTRA_BARCODE_DECODED_DATA"))
'Dim in As JavaObject = Activity.GetStartingIntent
'Log(in.RunMethod("getParcelableExtra", Array("android.intent.extra.STREAM")))
'All methods returns NULL or FALSE
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub barcode_TextChanged (Old As String, New As String)
' Dim iIn As Intent
' iIn = Activity.GetStartingIntent
' Dim str As String
'
' str = iIn.ExtrasToString
' Log(str)
End Sub