Global ActivityIndicator not working on Android (KS Demo)
It seems the globally defined ActivityIndicator in the KitchenSink Demo is not displayed in any sub-context / tab / window.
The ActivityIncator hide and show functions are defined in app.js and should be triggered via global events.
Titanium.App.addEventListener('show_indicator', function(e)
{
Ti.API.info("IN SHOW INDICATOR");
showIndicator();
});
Some examples then try to use this ActivityIndicator (e.g. image_view_animated.js) and trigger them via
Titanium.App.fireEvent('show_indicator');
Actually this just pinpoints a bug I've been struggeling with for some time. It seems you can't open "overlay" items (e.g. indicators, additional info bar, etc.) from the global context via events sent from sub-contexts.
2 Answers
-
Accepted Answer
There are several issues in play. There is a "fix" to the ActivityIndicator in the lastest builds where it should in most cases show up correctly.
Our continuous integration (CI) system provides updated builds approximately 30 minutes or less after a change has been committed to github. Please refer to our Continuous Builds for Download guide for obtaining one for your platform.
-
Thanks Don, works like a charm with SDK 1.4.0!