Hello,
i am working on an application where it loads images from website 
(representing products)
when click on an image it should go to a new function which load details of 
product and allow to buy
my problem is the first page will not handle any clicks until all images 
are loaded

i am using the below code to load the images from the website 

    EncodedImage placeholder = 
EncodedImage.createFromImage(Image.createImage(300, 400, 0xffff0000), true);   
  
    URLImage background = URLImage.createToStorage(placeholder, 
name1+"-300_400.jpg",URL+"/images/"+name1); 
    background.fetch();
    Label imagelabel=new Label();
    imagelabel.setIcon(background);

how i can stop the background fetch when click

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/39a43529-2abb-428c-ac78-7b70ccf9acfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to