Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Darcy Jones   on Jun 03 In Java Category.

  
Question Answered By: Benjamin Simpson   on Jun 03

Well... I sort of managed to make the image refresh  by doing a loop

and calling this logic every time

" private void refreshImage() {

int i = imageList.getSelectedIndex();
//thread.interrupt();
imageName = (String) imageNames.elementAt(i);
display.setCurrent(genProgress(imageList.getString(i)));
thread = new Thread(this);
thread.start();
}
"
as it refreshes it will not let me do anthing else unless i press
the cancel button.

Also when i tested it on the series 60 emulator everytime I refresh
it asks me if I want to do aconnect asI am all the time calling the
HTTPConnection

c = (HttpConnection) Connector.open(name);
int status = c.getResponseCode();
if (status != 200) {
throw new IOException("HTTP Response Code = " + status);
}

and also in the Series 60 the image  is becoming null when refreshed :
( so Im really stuck...

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on J2ME -- Need help on how to refresh an image Or get search suggestion and latest updates.


Tagged: