rim-5.0

How to retrieve PIM contact's photo as Bitmap using RIM5.0?

时光怂恿深爱的人放手 提交于 2019-12-25 05:08:55
问题 I want to retrieve contacts' images and display them in BitmapField s. So I'm collecting Bitmap objects from contacts, using this code: Vector bitmaps = new Vector(); BlackBerryContactList contactList = (BlackBerryContactList)BlackBerryPIM.getInstance().openPIMList(BlackBerryPIM.CONTACT_LIST, BlackBerryPIM.READ_WRITE); Enumeration contactListItems = contactList.items(); int counter = 0; while (contactListItems.hasMoreElements()) { BlackBerryContact contact = (BlackBerryContact