0

Hi i'm working on a simple boot animation app for my first app just to learn the basics and all. I'm now done with the app and have everything i wanted basically, except previews of the boot animations. I tried creating a gallery and showing an animated gif however as you probably know android doesn't support animated gifs natively.

So my question is this what is the best way to show previews of my boot animations. I've searched but found nothing that seemed like a good way of previewing them. So how should i approach this problem? Any sample code and or links to tutorials, even just ideas or suggestions on what i should do to approach this would be a significant help

Thank you

westsider
  • 4,967
  • 5
  • 36
  • 51
GFlam
  • 1,109
  • 4
  • 25
  • 38

1 Answers1

1

I think AnimationDrawable can help you. You can read about it here.

Michael
  • 53,859
  • 22
  • 133
  • 139
  • Alright well i got that set up and working fine however i need the images to be read from the sdcard not the drawable folder of my application as i need to display a lot of animations so any solutions on how i can do that? – GFlam Mar 27 '11 at 02:17
  • 1. Load images using `BitmapFactory` class. 2. Create an `AnimationDrawable` object in your code. 3. Add loaded bitmaps as frames using `AnimationDrawable.addFrame()` method. Bitmaps can be converted to drawables by calling `new BitmapDrawable(getResources(), bitmap)`. 4. Set created `AnimationDrawable` as a background of some `View` and call drawables's `start()` method. – Michael Mar 27 '11 at 07:34
  • Alright thanks for the help will look into all of that stuff and will post my final solution when written – GFlam Mar 27 '11 at 18:22