Android network.download() Error build 2013.1135

I’m trying to download a file from the web using the network.download() function.

Same code worked well on version 1106. Then I’ve just upgraded my version to the latest one (1135). Now I’m getting an event.isError downloading this file.

The download works ok on iOS and Simulator. This problem only happens when running on Android.

Here’s my code:

        network.download( “http://www.myurl.com/file.xml”, 

                “GET”, myListener, “file.xml”, system.TemporaryDirectory )

In LogCat, I get the following information:

06-07 23:36:29.400: I/System.out(682): ERROR: BufferedInputStream is closed

Tag: System.out

I changed my code to network.request(), passing filename and baseDirectory in params.

Here my request:

        params.response = {

                filename = “file.xml”,

                baseDirectory = system.TemporaryDirectory

                }

        network.download( “http://www.myurl.com/file.xml”, 

                “GET”, myListener, params )

Now I get a different error in LogCat:

06-08 00:09:27.533: I/System.out(3780): Invalid Parameter: response ‘filename’ value is required and must be a string value.

Look that I’m trying to download a XML file. I have read something about servers that gzip TEXT/HTML content, and a xml file is a TEXT/XML, and Android has a problem dealing with it. Can this information help in any way?

Another important information: this web site, when I’m using a browser to call this xml file, opens the download popup window asking me chose download directory.

Can you help me? My android device is a Galaxy Tab 2, 10.1, Android 4.1.1.

Thanks in advance.

Alexandre