Sub Globals
Dim lst As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
lst.Initialize("lst")
Activity.AddView(lst,0,0,100%x,100%y)
ShowInstalledApps
end sub
Private Sub ShowInstalledApps
Dim pm As PackageManager 'phone library
For Each pck As String In pm.GetInstalledPackages
Dim name As String = pm.GetApplicationLabel(pck)
lst.AddSingleLine2(pm.GetApplicationLabel(pck),pm.GetApplicationIntent(pck))
Next
End Sub
Sub lst_ItemClick (Position As Int, Value As Object)
Try
Dim in As Intent
in = Value
If in.IsInitialized Then StartActivity(in)
Catch
Log(LastException)
End Try
End Sub