This is a migrated thread and some comments may be shown as answers.

ActivityIndicator doesn't work

5 Answers 340 Views
NativeScript Insiders
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
TJ
Top achievements
Rank 1
TJ asked on 05 Jan 2015, 09:45 PM
I was attempting to use an ActivityIndicator (https://github.com/NativeScript/docs/blob/master/ApiReference/ui/activity-indicator/HOW-TO.md), but when I instantiate a ActivityIndicator() object my app crashes on iOS and Android.

Thanks,
TJ

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Jan 2015, 08:28 AM
Hi TJ,

Can you post more info about the error? You can use the tip provided in this post to get more info about the error.

Regards,
Vlad
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
TJ
Top achievements
Rank 1
answered on 06 Jan 2015, 04:57 PM
Hi Vlad,

The ActivityIndicator is no longer crashing for me (not sure why), but it doesn't appear to do anything. I've tried putting these three lines of JS in my page's load method:

var activityIndicatorModule = require( "ui/activity-indicator" );
var indicator = new activityIndicatorModule.ActivityIndicator();
indicator.set( "busy", true );

...but nothing happens. I also tried adding an <ActivityIndicator busy="true" /> to my page, but that doesn't display anything either. Any idea what I need to do to get this to work? I don't see anything else in the docs.

Thanks,
TJ
0
Vlad
Telerik team
answered on 07 Jan 2015, 07:18 AM
Hello TJ,

We have ActivityIndicator in our cuteness.io app details page. Can you try it? 

Regards,
Vlad
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
TJ
Top achievements
Rank 1
answered on 07 Jan 2015, 09:45 PM
Hey Vlad,

After looking at Cuteness I was able to get this working and the problem was on my end. I'll make one feature suggestion though: if we could add the ability to show a message with the spinner (like this Cordova plugin does http://plugins.telerik.com/plugin/spinner) that would be awesome.

Anyways, thanks for your help.
TJ
0
Vlad
Telerik team
answered on 08 Jan 2015, 11:18 AM
Hi TJ,

Since such kind of dialog is not native for native mobile platforms the closest option we can offer for now is custom dialog from our dialogs module with some text. Here is an example:

...
var dialogs = require("ui/dialogs");
var dialog = new dialogs.Dialog("Loading...");
dialog.show();
...


Regards,
Vlad
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
NativeScript Insiders
Asked by
TJ
Top achievements
Rank 1
Answers by
Vlad
Telerik team
TJ
Top achievements
Rank 1
Share this question
or