title: How to detect if a given image file is an animated GIF in Android
body: <p>'m writing an image editor.</p>
  
  <p>I do not support editing animated gifs, so when the user selects an image I need to show an error message if that image is an animated gif.</p>
  
  <p>So given a file path, how can I distinguish between a static and an animated gif?</p>
  
  <p>I checked the question <a href="https://stackoverflow.com/questions/22221528/understand-an-gif-is-animated-or-not-in-java">Understand an gif is animated or not in JAVA</a> but it does not apply for Android since the ImageIO class is not available.</p>
  
  <p>Note: I only need to know if is animated, so I'd like the fastest approach</p>