Dim appn(packages.size) As String
Dim pkgn(packages.size) As String
Dim ver(packages.Size) As String
Dim icon As BitmapDrawable
Dim n as int
n=0
For i = 0 To packages.Size - 1
appn(n)=pm.GetApplicationLabel(packages.Get(i))
pkgn(n)=packages.Get(i)
icon=pm.GetApplicationIcon(pkgn(i))
ver(n)=pm.GetVersionName(pkgn(n))
ListView1.AddTwoLinesAndBitmap(appn(n)&" "&ver(n),pkgn(n),icon.Bitmap)
n=n+1
Next