tags:

views:

6

answers:

0

Hi all,

After searching around on the web, i've found that to get more than the first 2k message, i would need to do Transport.more on the Message msg. Before doing that, i need to implement MessageListener (i've implemented on the present class). So i need to attach the listener by doing the following: msg.addMessageListener(this). Then i did Transport.more(bodypart, true), which should fire the messagelistener only when everything is loaded. However, it fires whenever there are new data in the message, which is causing me a headache because i only want the final Message. Checking bodypart.hasMore in the changed method (required by MessageListener) freezes the app for some reason. Is there an easier way of doing this?

thanks a lot!

Jason