B4X:
Sub getListAppLauncher
Dim in1 As Intent
in1.Initialize(in1.ACTION_MAIN, "")
in1.AddCategory("android.intent.category.LAUNCHER")
Dim pm As PackageManager
Dim lst As List
Dim icn As BitmapDrawable
Dim nma As String
lst = pm.QueryIntentActivities(in1)
For Each cn As String In lst
Dim s() As String
s = Regex.Split("/", cn)
Log(cn)
icn = pm.GetApplicationIcon(s(0))
nma = pm.GetApplicationLabel(s(0))
listview1.AddTwoLinesAndBitmap2(nma, cn, icn.Bitmap, cn)
Next
End Sub
Sub listview1_ItemClick (Position As Int, Value As Object)
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_MAIN, "")
Intent1.SetComponent(Value)
StartActivity(Intent1)
End Sub
how to get label and icon application.