Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Trusted Contributor
ankitagrawal
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Implementation of Activity indicator for OS 6

Hi,

     I want to use the default Activity indicator in OS 6 in my application.

 

After clicking on any button on the screen, want to show Indicator on the same screen and it should also pop when process completes.

 

Please post me some snippet to show the Activity indicator.

Please use plain text.
Developer
peter_strange
Posts: 19,595
Registered: ‎07-14-2008
My Device: Not Specified

Re: Implementation of Activity indicator for OS 6

Look for the many Threads on this forum that discuss loading screens, or 'please wait' screens, or progress indicators.  I suspect one of these will help you. 

Please use plain text.
Trusted Contributor
ankitagrawal
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: Implementation of Activity indicator for OS 6

I have searched for many threads in forum. Also got the code from BlackBerry Guide.

 

But the problem is, I want to show the indicator on the same screen and I am not getting that how to show on the same screen, so I want the code to implement it.

 

Guys, Please send me the code, who have already used the default Activity Loader.

Please use plain text.
Developer
lakshman9687
Posts: 243
Registered: ‎07-22-2011
My Device: BlackBerry Z10
My Carrier: AirTel

Re: Implementation of Activity indicator for OS 6

Hi Ankit,

 

You want that in same screen means one suggetion is take the full screen and apply transperent background and next one is update the layout.it means add one empty manager to the screen when ever u want the indicator just add that indicator to that manager and update layout vise versa....

 

Regards,

Lakshman K

----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

Please use plain text.
Trusted Contributor
ankitagrawal
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: Implementation of Activity indicator for OS 6

Hi Lakshman k,

 

                             Can you please post some snippet to implement it??

Please use plain text.
Developer
peter_strange
Posts: 19,595
Registered: ‎07-14-2008
My Device: Not Specified

Re: Implementation of Activity indicator for OS 6

I have just noted this:

"I want to use the default Activity indicator in OS 6 in my application"

 

There is no default activity indicator.  The hourglass that you will sometimes see is displayed by the garbage collector, and is not an indication of activity in general. 

 

If you would like sample code for the suggestions made, can you please

1) give us a screen shot showing the screen with and without activity indicator so that we know what you are trying to achieve.

2) tell us if you want to block the user while this activity takes place, or are you just trying to show some activity, like the network activity indicators that appear in the top right of the screen. 

Please use plain text.
Trusted Contributor
ankitagrawal
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: Implementation of Activity indicator for OS 6

Hi peter,

 

Blackberry 6 uses Activity indicator. Please go through following link:

 

http://docs.blackberry.com/en/developers/deliverables/18125/Activity_indicator_1214556_11.jsp

 

Nio problem, tell me the way to implement hourGlass, because I have to just show some waiting Activity after performing some UI action.

Please use plain text.
Developer
peter_strange
Posts: 19,595
Registered: ‎07-14-2008
My Device: Not Specified

Re: Implementation of Activity indicator for OS 6

OK.....

 

Sorry got a bit mixed up, the responses above are for a different question.

 

Actually there was always a way of displaying this sort of anmiation, using this code:

http://supportforums.blackberry.com/t5/Java-Development/Display-an-animated-GIF/ta-p/445014

This Field is just a packaging of something similar.

 

So it appears you just need to add this to your screen and make sure you have a suitable Bitmap to define it.

 

So the trick is to add this to your screen, which you can do with the standard

<manager>.add(<your Field>)

or

<manager>.insert(<your Field>);

 

And then delete it when you are finshed with it.

 

I do not use the MVC approach that the sample uses so i can't help with that sorry. 

 

Hope this helps and sorry for thinking something different....

Please use plain text.