Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

App cash after Download .

$
0
0

I am downloading a file having 110 MB size from server. it is well download but after download complete app crashes. Onload function never called. My code for Download is //Define the http client var myHttpClient = Ti.Network.createHTTPClient(); myHttpClient.setTimeout(10000);

//On success of downloading myHttpClient.onload = function() { Ti.API.error("It Never comes Here");

};

//Process when dowloading is going on
myHttpClient.ondatastream = function(e) {
    ind.value = e.progress;
    //Change the progress bar value with downloading progression
    Ti.API.error(e.progress);

};
myHttpClient.onerror = function(e) {

    //Change the progress bar value with downloading progression
    Ti.API.error("error in Downloading");


};

//Open the url to download
myHttpClient.open("GET", myurl);

//Send request
myHttpClient.send(null);

};

I don't understand where is the problem working fine for 42 MB file.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>