Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
08-15-2012 10:51 AM
I saw a lot of examples how to send a PIN message pragmatically.. But my question is how can I retrieve pin conversations.. I’m able only to read emails from the ‘store’ but not PIN messages.
Thank you for any help.
08-15-2012 11:01 AM - edited 08-16-2012 02:58 AM
welcome to the support forums.
edit: see below
08-15-2012 03:39 PM
I don't disagree with Simon too often, but in my experience a PIN message is just a special case of an EMAIL message. It carries a different type attribute of Message.PIN_MESSAGE, instead of Message.EMAIL_MESSAGE
How exactly are you trying to access these messages?
08-15-2012 05:28 PM - edited 08-15-2012 05:36 PM
To get the pin messages you need to attach the listener to the default store on the device. The code I use is:
Session session = Session.getDefaultInstance();
Store store = session.getStore();
store.addFolderListener( yourlistener );
If you want to get the messages already on the device you would use this same method, but you will need to check for the name of the folders under the store. The folders for the actual email account will have the name of the email account but the folders for the PIN messages will have the name "no service book". Here is how I check it:
//this is a PIN message folder
08-16-2012 02:58 AM
08-22-2012 11:49 AM - edited 08-22-2012 11:51 AM
I was trying your solution and got Folder - 'no service book' but message count is 0, however I have an active BBM conversation.
Any suggestions to get that working?