Contacts not getting displayed in BB Z10

46 views
Skip to first unread message

anop...@gmail.com

unread,
Jan 8, 2014, 5:33:30 AM1/8/14
to codenameone...@googlegroups.com
The following code works OK for the NOKIA 701 device, however, it does not display any contact when running on Blackberry Z10. 

protected boolean initListModelAllContactsMultiList(final List cmp) {
super.initListModelAllContactsMultiList(cmp);

final String[] allContacts = ContactsManager.getAllContactsWithNumbers();

for (int i = 0; i < allContacts.length; i++) {
System.out.println(i + ":" + allContacts[i]);
}

Display.getInstance().callSerially(new Runnable() {
public void run() {
ListModel model = new ContactsModel(allContacts);
cmp.setModel(model);
}
});

return true;
}


(In order to run the code in a BB Z10 device I build for Android and then I transform the .apk file to .bar which is then installed in the device through the DDPB s/w)

Shai Almog

unread,
Jan 8, 2014, 12:09:50 PM1/8/14
to codenameone...@googlegroups.com, anop...@gmail.com
Reply all
Reply to author
Forward
0 new messages