BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-16-2009, 06:21 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Mar 2007
Location: India
Model: 8100
Carrier: Airtel
Posts: 64
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question update UI while parsing xml.

Please Login to Remove!

Hi All,


I am using xml and list.


When I prase xml at the same time i want to update list which cotain data from the xml file.


Can i do this?

Also I want to know that when we parse xml, Is file gets downloaded completely or file is getting downloaded while parsing xml?


Is downloading and parsing of a file running consequently....


Any help is appriciable.


Thanks
__________________
Crazy for BlackBerry
Offline  
Old 11-16-2009, 08:19 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 9000
Carrier: Airtel
Posts: 81
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
When I prase xml at the same time i want to update list which cotain data from the xml file.
if you are not in event thread just get event lock using
Code:
(UiApplication.getUiApplication().getEventLock())) {  
    // UI Code here  
}
Quote:
Is downloading and parsing of a file running consequently....
Use any pull parser.
A pull parser reads a little bit of a document at once. The application drives the parser through the document by repeatedly requesting the next piece.
__________________
blog.vimviv.com
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.