BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-17-2009, 02: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, 06: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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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