02-09-2013 01:21 AM
I have the following straight from the BB example here. Only diff is i sent it to single mode
https://developer.blackberry.com/cascades/referenc
contactPicker = new pickers::ContactPicker();
contactPicker->setMode(bb::cascades:
ickers::ContactSelectionMode:
ingle);
contactPicker->setKindFilters(QSet<bb:
im::contacts::AttributeKind::Type>()
<< bb:
im::contacts::AttributeKind:
hone);
to open i call
contactPicker->open()
All i got is the is a blank screen with "No Contacts" in the middle of the screen.
I have set the contact permission and I have contacts with phone numbers.
What else do I need? thanks
02-12-2013 10:32 AM
Anybody got ContactPicker working?
02-12-2013 11:01 AM
I can't really get it to show many contacts either, but I thought I'd mention the steps to get even this far as they are tricky too:
1) make sure -lbbcascadespickers is in your pro file
2) make sure you grant the contacts permission.
3) Add a contact manually, from say an email address. Do not import from Twitter, FB etc in any way and don't link it.
The docs on this one kind of suck.
02-12-2013 11:24 AM
02-12-2013 11:42 AM
Hehe. Yeah I will put code properly the next time.
I have both FB and Twitter contacts and have normal contacts and none of them show up.
I have contacted BB consultant who made the sample contactpicker app and he says it is working for him.
I using the leaked OS. May that could be one of the problem but in anycase it should work but the samples from BB directly doesn't even work.
also he said that social contacts such as FB are not supported in the picker.
02-12-2013 11:44 AM
seriously.. no social contacts in the picker is a bug by design? Ugh I thought we were past this..
02-12-2013 11:51 AM
I don't really care about those. just want to get the picker working for native contacts.
if you are interested here is the sample app from BB
let me know if it works. you might need to remove the translation in the makefile because it is missing in the project zip file.
02-12-2013 01:24 PM
This code works for me on the leaked OS on a Alpha A:
void App::showContactPicker()
{
ContactPicker* contactPicker = new ContactPicker();
contactPicker->setMode(ContactSelectionMode::Singl e);
contactPicker->setKindFilters(QSet<bb::pim::contac ts::AttributeKind::Type>() << bb::pim::contacts::AttributeKind::Phone << bb::pim::contacts::AttributeKind::Email);
QObject::connect(contactPicker, SIGNAL(contactSelected(int)), this, SLOT(onContactSelected(int)));
contactPicker->open();
}
I should also stress, not a single one of hundreds of contacts wasn't 'tainted' by the social media hooks. I litterally had to make one up from scratch for it to show up.
02-12-2013 02:23 PM
Thanks but nothing works. Still getting the blank screen.
I even manually add a contact and still no go. ![]()
So frustrating...
02-13-2013 07:27 PM
I checked with BlackBerry development and they are fixing the issue of contacts that are regular contacts but also linked to Twitter/Facebook.....those will show in the next release.
Smiley, if you want to send me a zip of your project I will take a look and help you get the contact picker working (assuming the project isnt't highly confidential). Just private message me and I'll be glad to help.