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

Android activityindicator does not hide on xhr.onload

$
0
0

Since shortly my acativityindicator does not hide on xhr.onload. This works fine with iPhone but not anymore on Android. I have to go back to close the activity window. I tried several scripts but the only solution was a time based hide function.


...
info.show();

// Ti.App.fireEvent('show_indicator');

var json;
var xhr = Ti.Network.createHTTPClient({});
xhr.timeout = 10000;
xhr.onload = function() {
    // Ti.App.fireEvent('hide_indicator');
    Ti.API.info('info.hide');
    setTimeout(function(){
     info.hide();
    }, 500);

...


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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