Sub Process_Globals
End Sub
Sub Globals
Dim ListView1 As ListView
Dim pm As PackageManager
Dim Packages As List
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Main")
Packages = pm.GetInstalledPackages
Packages.Sort(True)
For I = 0 To Packages.Size - 1
ListView1.AddSingleLine2(Packages.Get(I), Packages.Get(I))
Next
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause(UserClosed As Boolean)
End Sub
'##########################
'######## Controls ########
'##########################
Sub ListView1_ItemClick(Position As Int, Value As Object)
Dim i As Intent
i = pm.GetApplicationIntent(Value)
If i.IsInitialized Then
StartActivity(i)
Else
ToastMessageShow("Cannot run app", False)
End If
End Sub