Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8881557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:22:19+00:00 2026-06-14T20:22:19+00:00

I have a png sequence that I want to display in an imageview. It

  • 0

I have a png sequence that I want to display in an imageview. It has 745 frames of up to 44kb each and want to play it at 23 fps. Some of the frames have are different from the previous frame or are blank so I could skip updating on frames 100-243 and 340-400 for example. So the total size on disk ends up around 9mb (I only use need to use 249 images out of the 745 frames beacuase there are some pauses in the animation and some times the animation object goes off screen). All images are 320 x 480 and are scaled to fit the screen.

While it’s playing I need to do some other stuff along the way without stopping the animation.
I’m new to Java. In pseudocode I would like to do something like this :

The Activity loads…

For x = 1 to 745

if exsists("image" & x) then 
    imageview setbackground("image" & x) (change this every 35ms)

switch (x)
case: 10 then call a function at frame 10
case: 100 then call a function that vibrates 0.5sec at frame  100
case: 200 then call different function at frame 200

Loop

End the animation…

Then close the Activty.

So the question is how to do this on the Android?

I tried using an AnimationDrawable and an animationlist.xml array but get a Simulator VM Error if I have more than 40 frames.
I can get a little bit more to run on the actual device.

Any help to point me in the right direction would be apprieciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:22:20+00:00Added an answer on June 14, 2026 at 8:22 pm

    I ended up finding the solution I was looking for the Timed Loop although it does bring up a new issue regarding my frame rate requirements which I have included in a new question.

    If you only need to update images every 70ms then this solution seems to work without the same memory restrictions as AnimationDrawable.

    See new question at:

    750 frame transparent PNG animation in ImageView at 23fps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, I have a button that, when pressed, should animate/play a png image sequence.
I have a three-second PNG sequence (a logo animation) that I'd like to display
I have a UIImageView which has a png image sequence loaded into it. My
I have a PNG image that has an unsupported bitmap graphics context pixel format.
I have like 45 PNG files that I want to use in a animation
I have a sequence of images needed to display in a short time (PNG
I have lot of png sequences that I need to loop through and display
I have a PNG file in a UIImageView, and next to that I have
I have a png graphic that is put in the web page using raphael
I have chart.png with data in it that I would like to put a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.