Animation in BlackBerry

Hi all

I have an image containing the circle.

I want to add a buttonField to a specific location on this circle

and while browsing, the circle turn with buttons on it.

How can I do this?

Thank you

Not sure what you mean.

The idea of this logic is to create an animation.  The animation can be circular or rotating or whatever.  But you must create individual images yourself and then display them.

You can create images on the fly if you wanted to.  If you wanted to do that, then take a look at: this article:

http://supportforums.BlackBerry.com/T5/Java-development/rotate-and-scale-bitmaps/Ta-p/492524

If you wanted the keys to move around, then you are looking to update the positions of the fields in a layout manager.  So you have to watch these KB article

http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-layout-manager-for-a-screen/...

http://supportforums.BlackBerry.com/T5/Java-development/how-to-extend-Manager/Ta-p/446749

I never seen a display of fields with the fields of travel, so I don't really know how it works.

However, I have probably understood your request because I don't really know what you mean by circular animation.  What is this different to other entertainment?

Tags: BlackBerry Developers

Similar Questions

  • Subject of the OPENGL animation in Blackberry

    Hi all!

    Can someone guide me on the use of OPENGL animation in Blackberry?

    Please so if someone have some idea of OPENGL.

    Ideas and suggestions are appreciated related.

    Thanks in advance!

    Hi shellbellthemes,

    Thanks for your reply,

    I think that the link will be useful, so I have to dig deeper for more information.

    Thanks again.

  • How to display GIFs animated on Blackberry

    Hello

    Can someone knows how to display the gif file hosted on the blackberry application

    Can pass the name of the file abc.gif with the field Bitmap etc.

    The code samples for this solution?

    Thank you

    And you need to call that

    AnimatedGIFField amimg = new AnimatedGIFField (((GIFEncodedImage) GIFEncodedImage.getEncodedImageResource ("abc.gif")));

  • underside of blackberry 6, there are no supports Ajax-based animated page transitions...

    underside of blackberry 6, there are no supports Ajax-based animated page transitions...

    Of course not. BB5 is 5 years old, dating back to 2008. The specification CSS3 transition page was not even begun until 2009, is still in draft and has only become adopted over the past two years.

  • Classic mail messages blackBerry open too slowly because of the animation

    Each e-mail message opens with animation when the 'slides' texts form the right.

    How can I do each just "open" message - as in OS7 without waiting for animation?

    Thank you

    Hi @ak1

    Thanks for your comments!

    Disable animation is not possible so I will share your comments with our product team for further review. Thank you!

  • How to apply animations to field custom in blackberry?

    I have created a custom field and want to apply the animation to this field how this should be done? is there any api available to directly link animation to custom field? Please send the code.

    No, you must do it yourself

  • Help with animated gif messages blackBerry Smartphones


    GIF file format is not supported by Blackberry. Check the details of the file formats supported by BlackBerry.

  • Model for blackberry app development tools

    Hello guys,.

    I'm looking for tools to model for OS10 app. I've already found wire (http://supportforums.blackberry.com/t5/BlackBerry-Themes-Animated/Design-amp-Mockup-Tools-for-BlackB...  ), but the link does not work. Can I use for the tools of the comp! Please recommend you use.

    Thank you.

    Luca Filigheddu (Manager, global developer ecosystem to BlackBerry) told me he is allowed to use these media images, and we can change our needs.

    http://CA.BlackBerry.com/company/Newsroom/Media-Gallery.html

    Use MockIt app if you want to do on your device, otherwise I use Gimp a paint.net under Windows.

  • BlackBerry BBM stickers cat Q10 - how opt-out? Get rid of this message?

    Hello

    I'm a blackberry user because I do not play games or do eat very well.  I want a functional machine.

    How can I get rid of this offer "Send stickers" that appears after you have configured my Q10?  There is also a malware?

    By clicking on exit does not prevent the offer again to come.

    Forcing "anime"or any software for that matter, about users is not acceptable.  I need to turn it off.

    Help, please!

    Hit the right exit leaves the BBM. Hitting continue will take you right to BBM. Stickers is just a new feature in BBM BlackBerry wants you to know. You don't have to use them and you won't get anything boring. When you click on the smilies button when in a chat, there will be an icon to go to stickers if you want.

  • Alice in the Blackberry Webworks

    everyone can work in Alice in blackberry.

    See this link: Alice in Blackberry

    Hi alishaik786,

    I don't know what you're asking here.

    If you're wondering can any working on the AliceJS project, then the answer is Yes, sound completely open source and you can find the source here.

    If you ask anyone can use Alice in webworks on a blackberry app the answer is Yes again. Alice is released using the Apache 2.0 license, which means that you can freely use and redistribute.

    If you're wondering if Alice will work in a webworks on a smartphone app, the answer is Yes again, and if you use a computer Pocket 7.0 you will see some excellent performances because CSS animations are hardware acceleration.

  • animated GIF not showing do not adequately

    I have an animated gif image, and I used http://supportforums.blackberry.com/t5/Java-Development/Display-an-animated-GIF/ta-p/445014 this link to animate the noise towards the top of the screen and that did not work properly

    You can see the animation below

    public class UpdatePopScreen extends PopupScreen{
    
            public UpdatePopScreen(){
                 super(new VerticalFieldManager(), Screen.DEFAULT_CLOSE); 
    
                 GIFEncodedImage ourAnimation = (GIFEncodedImage) GIFEncodedImage.getEncodedImageResource("sunblackk.gif");
                AnimatedGIFField _ourAnimation = new AnimatedGIFField(ourAnimation, Field.FIELD_HCENTER);
    
                this.add(_ourAnimation);
               add(new LabelField("Loading..."));
    
        }         
    
        }
    

    and I have attached AnimatedGIFField.java

    I think something is wrong in your establishment or the way you use this code, because it works very well for me.  Sorry you'll have to do investigative work to identify the problem.

    I suspect there are two possibilities:

    (a) you have not configured your environment properly

    (b) you use something else keeps track of events

    I think that (b) is the most likely, but to test these two at the same time, you must proceed as follows:

    Create a new project and a new example application, then, in this application, test the screen.  Nothing else in this project - it should start just a screen, the screen should have a button, when you click the button the treatment should push the pop-up screen.

    I have included my code (which combines Animation and popup screen into one file - not recommended but useful source under test).  Use this code and the image as an attachment in your new project.

    Test it on your Simulator.

    Assuming that you can get this working, then we can investigate on what is actually wrong in your application.

    package mypackage;
    
    import net.rim.device.api.system.GIFEncodedImage;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Screen;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.BitmapField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.PopupScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    public class UpdatePopScreen extends PopupScreen {
        public UpdatePopScreen(){
    
             super(new VerticalFieldManager(), Screen.DEFAULT_CLOSE); 
    
             GIFEncodedImage ourAnimation = (GIFEncodedImage) GIFEncodedImage.getEncodedImageResource("animated.agif");
            AnimatedGIFField _ourAnimation = new AnimatedGIFField(ourAnimation, Field.FIELD_HCENTER);
    
            this.add(_ourAnimation);
            add(new LabelField("Loading..."));
    
        }
    }
    
    class AnimatedGIFField extends BitmapField
    {
        private GIFEncodedImage _image;     //The image to draw.
        private int _currentFrame;          //The current frame in the animation sequence.
        private AnimatorThread _animatorThread;
    
        public AnimatedGIFField(GIFEncodedImage image)
        {
            this(image, 0);
        }
    
        public AnimatedGIFField(GIFEncodedImage image, long style)
        {
            //Call super to setup the field with the specified style.
            //The image is passed in as well for the field to configure its required size.
            super(image.getBitmap(), style);
    
            //Store the image and it's dimensions.
            _image = image;
    
            //Start the animation thread.
            _animatorThread = new AnimatorThread(this);
            _animatorThread.start();
        }
    
        protected void paint(Graphics graphics)
        {
            //Call super.paint.  This will draw the first background frame and handle any required focus drawing.
            super.paint(graphics);
    
            //Don't redraw the background if this is the first frame.
            if (_currentFrame != 0)
            {
                //Draw the animation frame.
                graphics.drawImage(_image.getFrameLeft(_currentFrame), _image.getFrameTop(_currentFrame),  _image.getFrameWidth(_currentFrame)
                                    , _image.getFrameHeight(_currentFrame), _image, _currentFrame, 0, 0);
            }
        }
    
        //Stop the animation thread when the screen the field is on is
        //popped off of the display stack.
        protected void onUndisplay()
        {
            _animatorThread.stop();
            super.onUndisplay();
        }
    
        //A thread to handle the animation.
        private class AnimatorThread extends Thread
        {
            private AnimatedGIFField _theField;
            private boolean _keepGoing = true;
            private int _totalFrames;               //The total number of frames in the image.
            private int _loopCount;                 //The number of times the animation has looped (completed).
            private int _totalLoops;                //The number of times the animation should loop (set in the image).
    
            public AnimatorThread(AnimatedGIFField theField)
            {
                _theField = theField;
                _totalFrames = _image.getFrameCount();
                _totalLoops = _image.getIterations();
    
            }
    
            public synchronized void stop()
            {
                _keepGoing = false;
            }
    
            public void run()
            {
                while(_keepGoing)
                {
                    //Invalidate the field so that it is redrawn.
                    UiApplication.getUiApplication().invokeAndWait(new Runnable()
                    {
                        public void run()
                        {
                            _theField.invalidate();
                        }
                    });                
    
                   try
                    {
                        //Sleep for the current frame delay before the next frame is drawn.
                        sleep(_image.getFrameDelay(_currentFrame) * 10);
                    }
                    catch (InterruptedException iex)
                    {
    
                    } //Couldn't sleep.
    
                    //Increment the frame.
                    ++_currentFrame;      
    
                    if (_currentFrame == _totalFrames)
                    {
                        //Reset back to frame 0 if we have reached the end.
                        _currentFrame = 0;
    
                        ++_loopCount;
    
                        //Check if the animation should continue.
                        if (_loopCount == _totalLoops)
                        {
                            _keepGoing = false;
                        }
                    }
                }
            }
        }
    }
    
  • animation in the list field

    actually my question is related to my previous thread .i have created a field of list with custom images.
    My question http://supportforums.blackberry.com/t5/Java-Development/custom-list-field/m-p/2623111#M223562

    animation in a listfield wouldn't be something I think.
    If you want to do in any case you will need to adjust your drawListRow and call invalidate (rowindex) for each image.
    As you redraw the complete list instead of only the bitmap line, it is much more expensive, you will need to test if it works well enough.

  • Creating Animation

    I know that there is a class docs
    to make an animation
    so my question is can I use to make an Animation like PopUp or side scrolling screen.
    When you move from one screen to the other
    Screen is cloudy and new screen comes out when a button is clicked
    Just as there are in Android?

    You can use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/TransitionContext.html for this

  • Creating animation Dial/meter interface with a pointer/needle

    I want to create this animated thing, something similar to a counter/dial where changes in needle / based on the current value of a variable? How could I do cela using Cascades/QML and maybe a rotation or such a transformation on a perhaps imageView component?

    Thank you

    I don't know if it is possible to implement this in pure QML. Complex components are easier to implement in C++.

    Check out this example on github:

    https://github.com/BlackBerry/Cascades-samples/tree/master/speedwriter

    speedgauge.cpp & speedgauge.h

  • Need Suggestions for the development of BlackBerry games

    After reading the following log, I thought about developing an animation application.

    http://NA.BlackBerry.com/eng/devjournals/resources/journals/jan_2006/direct_screen_drawing.jsp

    If it is a good tutorial or resources available elsewhere related to this, please post here.

    All your suggestions are welcome.

    Resources of the journal associated with the development of games:

    http://NA.BlackBerry.com/eng/devjournals/resources/journals/devjournaltopics.jsp#games

Maybe you are looking for

  • How can I configure my Airport Express to mesh with new cable modem bridge mode?

    Time Warner sent me a new cable modem and my Airport express still flashing orange light. How can I configure the Airport express in bridge mode?

  • Tecra A10 - lost HDD Recovery for Vista

    Hello Toshiba, I bought a Tecra a month ago. Here are the details:Device name: Tecra A10 - 11LUnit number: PTSB0E-00C006AR For some reason I have to downgrade the machine in Windowx XP (using the CD-ROM supplied in the packaging recovery). I do not u

  • WiFi connects but no internet

    I recently updated my iPhone 5 iOS to 9.2.1 and confronted to this wifi problem. To ANY wifi network, even after having connected and authenticated successfully, I get no internet access. Open a browser, I see an error "unable to connect to the Inter

  • CUCM 7 MEET ME CONFERENCE CAN do only 3 participants.

    When I do a conference MEET ME at my place, it has ONLY 3 participants total including the host no matter if the participants are external and internal callers. We use centralized call processing structure, two server MCS 7825 CUCM in HQ (version 7.X

  • Uncontrolled copy watermark

    Hellothe publication of QM-system-docs to our Intranet Co. - I would like to have the watermark (or buffer) 'Controlled copy' on each doc page when it is printed.Shown on the screen - print - doc should not have the 'uncontr. copy"- stamp/watermark.T