problem swiching display

Hi,

I have midlet wich "streams" video from webcam. This streaming is made in seperate thread and image is repainted each time when it is received. Problem ir this when user click "back" then I want to instantly show another Form to user and stop this webcam thread and skip all remaining bytes in inputstream. But it didn`t work, what is correct way to do this?

Thanks.

[389 byte] By [erviinsa] at [2007-9-24]
# 1
HI,I've had similar problems in the past, although my app was doing much simpler things. This is the solution I thiink you need:Display.getDisplay(this).setCurrent(form);Hope this helps
alex.uka at 2007-7-16 > top of java,Java Mobility Forums,Java ME Technologies...