Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 8
Registered: ‎04-27-2010
My Device: BlackBerry 9780
My Carrier: China Mobile
Accepted Solution

Message.setFlag(Message.Flag.OPENED, true) causes 9780 freeze (app error 601)

[ Edited ]

Hi all,

 

I am using

 

Message.setFlag(Message.Flag.OPENED, true)

 

to set a new arrival email (from BIS) as read for certain purpose. However, it works on 4.5.0 simulator but not a 9780 with BBOS v6.0.0.359. This line causes the phone freeze, after some time an error screen shows "app error 601" (or 603, i can't remember exactly). Don't know if there is anything goes wrong, I was using the very basic sample code from Allow a background listener to detect and update a GUI application . only two classes in this sample are used.

 

Thanks in advance for any hints or advice.

New Contributor
Posts: 8
Registered: ‎04-27-2010
My Device: BlackBerry 9780
My Carrier: China Mobile

Re: Message.setFlag(Message.Flag.OPENED, true) causes 9780 freeze (app error 601)

sorry for the disturb, I found the reason, I just put setFlag() in the UI thread, that's why UI freezes. It's now no problem.
Highlighted
Trusted Contributor
Posts: 151
Registered: ‎07-20-2010
My Device: Not Specified

Re: Message.setFlag(Message.Flag.OPENED, true) causes 9780 freeze (app error 601)

did you use a seperate thread for this operation?