02-25-2010 08:34 AM
I didn't mean to sound to critical on my earlier post, but I really think you should reconsider this download. Unless this is only targeted at some specific user group (like "folks in my company"), you are going to have a very hard time convincing people that a 70 minute download (which must be repeated periodically to update the data) is a good idea.
And as I said before, your typical Pearl or Curve is not going to have sufficient free storage space for the data, unless you put it on the external card.
03-02-2010 02:42 AM
Thanks for your comments\suggestions.
I have implemented Multi Threading, Below is logic which I have written.
Thread A, it will start Downloading (Download Json Data + Uncompress + Insert JSON String into a Vector - XYZ) – Basically this thread will maintain Queue of JSON Data.
Thread B, it will start once XYZ Vector has Length >0, value, and Thread B will do Parsing from XYZ – Vector, and will insert Parsed Data into Vector.
If Thread A, complete the Downloading then it will be Stopped, And Thead B will be Continue Until XYZ – Vector Queue become 0.
Above logic, working fine on Simulator, and almost in half time its complete the entire process, all things goes normal i.e. shows Progress bar correctly, screen is not freezing etc.
But, when I try to load same app on Device(8900 & Storm) , Initially all things goes normal shows progress bar etc. But after that downloading screen freeze,and it looks like App is hang, but if I wait, then after 30 Mins, its shows that process completed successfully.
So, Can you suggest me , why Thread is not behaving correctly on Actual Device?
Any Comments\Suggestions are most Welcome!!!
03-05-2010 10:40 AM
Threading is now working fine on Device also, i chagned logic which was updating screen, so now progress bar is also updating screen on Device Also.