View Single Post
Old 02-15-2005, 05:14 PM   #1
DoomBringer
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2005
Model: 7280
Carrier: cingular, no wait, AT&T
Posts: 300
Default Context Message object

Please Login to Remove!

I registered a custom menu with the built in BB email application. The context object being passed when the BB invokes my run() function to me is the Message object that is currently on the screen.
My problem is that the Message passed to me does not have a Multipart content obtained by calling getContent() (so it seems...) when I know for a fact that it has attachments (I just added them!). The Message.getContent() call seems to return a BodyPart object, if not a TextBodyPart.
Is this a bug in the API (3.7 API failed to pass the proper Message object to start with)? Am I calling the right functions on the Message object (I call Message.getContent() on the Message object passed to me and cast the resulting Object to a Multipart object based on an instanceof statement)?
Are there any workarounds?
I am using JDE 3.7 and deploying to a BB 7280 running OS4.0.0.185 platform 1.6.1.48)
Offline