×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Sep 2013
    Posts
    50

    LWUIT Network Manager

    I am trying to use NetworkManager to download a large number of images. Below is the code I'm attempting to use. The url is simply the url for the image, which works fine in a browser. However, when I use the following code, I get a lot of "501: Not implemented" and "405: Method not allowed" popup dialogs. What am I doing wrong?
    Code:
    	ConnectionRequest myRequest = new ConnectionRequest();
    	myRequest.setUrl(url);
    	myRequest.addResponseListener(new MyResponseListener());
    	NetworkManager.getInstance().addToQueue(myRequest);
    EDIT: I have solved this problem by using ImageDownloadService and passing that to the NetworkManager like this:

    Code:
    	
            ImageDownloadService ids = new ImageDownloadService(url,new MyImageResponseListener());
    	NetworkManager.getInstance().addToQueue(ids);
    Last edited by james.harpe; 2013-09-25 at 15:13.

Similar Threads

  1. Wich Layout Manager to choose in LWUIT ?
    By Adi.Stoicuta in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2013-04-09, 22:59
  2. Replies: 2
    Last Post: 2012-11-23, 07:39
  3. How to append LWUIT List screen to a LWUIT Form in j2me?
    By pavanragi in forum Mobile Java General
    Replies: 1
    Last Post: 2012-08-06, 07:01
  4. Network manager
    By yhafc in forum Mobile Java General
    Replies: 2
    Last Post: 2010-07-20, 20:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •