1. Are you ready for the Galaxy S20? Here is everything we know so far!

Frame Animation - Too many frames?

Discussion in 'Android Development' started by Pabrick, Sep 5, 2011.

  1. Pabrick

    Pabrick Newbie
    Thread Starter

    Hi,

    I'm making an app with several animations, with 480x320 PNG Frames.

    I've got a XML for each animation.

    Then I call each animation this way:
    capa_sangre.setBackgroundResource(R.anim.sangcorta);
    anim_sangre = (AnimationDrawable) capa_sangre.getBackground();
    anim_sangre.start();

    The problems is that if the animation has more than 5 frame my app close itself.
     



    1. Download the Forums for Android™ app!


      Download

       
  2. alostpacket

    alostpacket Over Macho Grande?

    not sure but maybe something to do with setting the bg drawable instead of the source?

    just a wild guess though
     
Loading...
Similar Threads - Frame Animation Too
  1. iamashrafulbd
    Replies:
    0
    Views:
    395
  2. Milo Williamson
    Replies:
    11
    Views:
    1,427
  3. App Update
    Replies:
    0
    Views:
    570
  4. bulgin
    Replies:
    3
    Views:
    4,381
  5. App Update
    Replies:
    0
    Views:
    627
  6. Mehak Gul
    Replies:
    1
    Views:
    2,160
  7. sdowney717
    Replies:
    4
    Views:
    2,247
  8. App Update
    Replies:
    0
    Views:
    684
  9. MainFragger
    Replies:
    2
    Views:
    4,490
  10. App Update
    Replies:
    0
    Views:
    568

Share This Page

Loading...