Tuesday, February 6, 2007

Image problem in RSS reader

we found that larger images are not displayed properly in the browser, It seems that the browser tries to render the image prior to it is completely downloaded , the supossed solution could be to first download the binary data of the image using a seperate thread and then call the render function to render that data over the screen. The programmer of the orignal appliation seems not to be caring abt threads as the thread mechanism in the GetUrl() function was added by me , because it was not using threads at all in the beggining and therefore was not able to fetch any url when a link was clicked , threading could make the clicking of link possible, and now i think that the image problem will be solved if we put a sleep(10) function in the rendering thread .
or by making two concurrent threads to run , one to render and the other to fetch the data.

1 comment:

hnkang said...

Setting monitor preferences for the emulator slows the app down enough for images to load and render properly. These settings can be found in Sun's Wireless Toolkit menu under Preferences > Monitor.