BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-17-2009, 01:40 AM   #1 (permalink)
Knows Where the Search Button Is
 
baskaraninfo's Avatar
 
Join Date: Feb 2009
Location: Bangalore
Model: 9350
PIN: N/A
Carrier: Telstra
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question How to set the message type to PIN_MESSAGE

Please Login to Remove!

I have done a custom email application, as default it is considering as Message.EMAIL_MESSAGE. But, now I need to send as a Message.PIN_MESSAGE !

Quote:
Session session = Session.getDefaultInstance();
Store store = session.getStore();
// WHERE TO SAVE THE SEND MESSAGES
Folder[] folders = store.list(Folder.SENT);
Folder sentfolder = folders[0];
net.rim.blackberry.api.mail.Message msg = new net.rim.blackberry.api.mail.Message(sentfolder);
There is a method called getMessageType() to get the type of the message. But, how can we set the message type while composing a message through Java application?

Thanks
Offline  
Old 03-17-2009, 05:16 AM   #2 (permalink)
Knows Where the Search Button Is
 
baskaraninfo's Avatar
 
Join Date: Feb 2009
Location: Bangalore
Model: 9350
PIN: N/A
Carrier: Telstra
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb How to set the message type to PIN_MESSAGE

We have to use PINAddress instead of Address and thereafter the message was considered as PIN_MESSAGE instead of EMAIL_MESSAGE!!

If anybody else have any other alternative way, please post it here
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.