Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
kirthiga
Posts: 204
Registered: ‎07-14-2010
My Carrier: Blackberry developer

Re: store the parsed value in a array

@kanna :

 

  should i use this in the dom parser code itself or create a seperate dom thread?

Please use plain text.
Developer
Ted_Hopp
Posts: 1,304
Registered: ‎01-21-2009

Re: store the parsed value in a array

Read the post by Ekansh again. You can't do what you want using a single connection.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Please use plain text.
Developer
kanna
Posts: 70
Registered: ‎01-02-2009

Re: store the parsed value in a array

yes, you can use it in the same dom parse.

 

Also I have mentioned in which part you have to use that codes, in the same post.

 

 

---------------------
Best Regards,
Kannabiran.
---------------------
Don't forget to mark your post as solved if you got answer. And give kudos.
Please use plain text.
Trusted Contributor
kirthiga
Posts: 204
Registered: ‎07-14-2010
My Carrier: Blackberry developer

Re: store the parsed value in a array

Ekansh is right, but in this placehttp://www.com//, of the line below

 

String URLArray[i]= " http://www.com//"+ImageArray[i];

 

 

my  http://www.com// is going to be constant only the values of ImageArray is different

 

say ,

 

www.google.com/abc.gif

www.google.com/che.gif

www.google.com/lll.gif

Please use plain text.
Developer
Ted_Hopp
Posts: 1,304
Registered: ‎01-21-2009

Re: store the parsed value in a array

I was responding to this:


kirthiga wrote:

so if i pass the UrlArray[] in the place ,

connection = (HttpConnection) Connector.open( URLArray+";deviceside=true" , Connector.READ, true);


That will generate an error because URLArray+"..." is not going to be anything that Connector.open will recognize. You need a separate HttpConnection for each element of URLArray.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Please use plain text.
Trusted Contributor
kirthiga
Posts: 204
Registered: ‎07-14-2010
My Carrier: Blackberry developer

Re: store the parsed value in a array

[ Edited ]

fine .. i did it in a seperate httpconnection only ..

but the list is empty .. no images are being displayed .

no error too

Please use plain text.
Developer
Ekansh
Posts: 468
Registered: ‎08-07-2009
My Carrier: Blackberry Developer

Re: store the parsed value in a array

Post the code what u did.

----------------------------------------------------------
feel free to press the kudos button on the left side to thank the user that helped you.
please mark posts as solved if you found a solution.
Please use plain text.
Developer
kanna
Posts: 70
Registered: ‎01-02-2009

Re: store the parsed value in a array

better way is, download all the images in a seperate thread and keep it in array, and use it in the list

---------------------
Best Regards,
Kannabiran.
---------------------
Don't forget to mark your post as solved if you got answer. And give kudos.
Please use plain text.