Spinning-wheel of death!

Hi all

Dramatic title aside, I’m working with Corona for the first time, and am having an issue with my app.

After grabbing a JSON file from the web, I can successfully output both the data and then a graph, using the Google Charts API.

As you can see from the screenshot, it does that fine, but then gives me ‘the wheel’ and the only way to get out of it is to hit the home button.

If I try and output just the data, no issues. If I try just a chart, no issues. (And the wheel only appears when running on the phone, no issues in the simulator.)

Just wondering if anyone has any clues/help/advice?

Many thanks!

Are you calling native.setActivityIndicator() somewhere and not canceling it?

Awesome, Rob. That seemed to have done the trick!

I am using the Charts module provided by Graham Ranson here … http://developer.coronalabs.com/code/charts

https://github.com/GrahamRanson/Charts/blob/master/charts.lua

I ended up testing this by commenting out all the native.setActivityIndicator() related code in that module, and leaving the one line…

 --local showActivityIndicator = function() --native.setActivityIndicator( true ) timer.performWithDelay(1, download(), 1 ) --end --showActivityIndicator() --native.setActivityIndicator( false )

and it works fine. Is that the best way of doing it, or is that likely to cause some other problem down the line?

Thanks again for your time Rob. Very much appreciated!

The activity indicator is just a clue to your app users that its busy/waiting on something instead of hung up. If you use the, it’s up t you. I don’t know how long that module takes nor how reactive your app is. As for any other question about grant’s module, you will have to ask him.

Are you calling native.setActivityIndicator() somewhere and not canceling it?

Awesome, Rob. That seemed to have done the trick!

I am using the Charts module provided by Graham Ranson here … http://developer.coronalabs.com/code/charts

https://github.com/GrahamRanson/Charts/blob/master/charts.lua

I ended up testing this by commenting out all the native.setActivityIndicator() related code in that module, and leaving the one line…

 --local showActivityIndicator = function() --native.setActivityIndicator( true ) timer.performWithDelay(1, download(), 1 ) --end --showActivityIndicator() --native.setActivityIndicator( false )

and it works fine. Is that the best way of doing it, or is that likely to cause some other problem down the line?

Thanks again for your time Rob. Very much appreciated!

The activity indicator is just a clue to your app users that its busy/waiting on something instead of hung up. If you use the, it’s up t you. I don’t know how long that module takes nor how reactive your app is. As for any other question about grant’s module, you will have to ask him.