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

Native Development

Reply
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All
Accepted Solution

AppCover could not play animation

I found that it can only use active frame update plus timer to move a imageview in order to realize an animation on the AppCover, but it is not fluent.

 

If I directly add animation on the AppCover, the appcover would not be loaded. Does someone know how to add animation on AppCover?

 

Thank you




p(^_^)q
Good good study, day day up
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: AppCover could not play animation

I'm fairly certain this is not possible. The intention is that apps in the background (i.e. not fullscreen) should not take significant CPU, and not only are they limited in the CPU they're given, but I believe the app cover is also explicitly not updated very often... In theory no more often than every 15s or 30s or something like that.

As a user, I would absolutely not want any app to be animating its cover anyway. I did post a video once showing a form of animation, but as you can tell from the title and my comments, this would definitely be considered an "abuse" of active frames: https://www.youtube.com/watch?v=7JpctH_H_ec Please don't do something like that!

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: AppCover could not play animation

OK, I agree with you. Thank you.




p(^_^)q
Good good study, day day up
Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: AppCover could not play animation

I believe that the app cover will only refresh once every two seconds.

 

If I remember correctly the UI guidelines recomend not updating more than once every 30 seconds...


Read my thoughts on BlackBerry Development at news.ebscer.com
Highlighted
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: AppCover could not play animation

It can use a customized timer which can be bound in the update function. I can even set up to 2ms and it works. But not suggest to do that.




p(^_^)q
Good good study, day day up