Android Question what's problem on this code?

khosrwb

Active Member
Licensed User
Longtime User
hi I don't know what problem on this code?

please tell me my mistake
 

Attachments

  • 11.zip
    6.9 KB · Views: 126

ArminKH

Well-Known Member
at first check your project
upload_2015-8-1_17-36-54.png
 
Upvote 0

khosrwb

Active Member
Licensed User
Longtime User
excuse me
I chenge file location file and reupload them
 

Attachments

  • 11.zip
    6.9 KB · Views: 121
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Solution:
B4X:
    For i = 0 To packages.Size - 1
        If GetType(packageManager1.GetApplicationIcon(packages.Get(i))) = "android.graphics.drawable.BitmapDrawable" Then
            Dim d As BitmapDrawable = packageManager1.GetApplicationIcon(packages.Get(i))

            listview1.AddTwoLinesAndBitmap2(packageManager1.GetApplicationLabel(packages.Get(i)),i,d.Bitmap,i)
        Else
            listview1.AddTwoLines2(packageManager1.GetApplicationLabel(packages.Get(i)),i,i)
        End If
    Next
 
Upvote 0
Top