title: Displaying animated GIFs in Android
body: <p>I am getting my GIF image as a byte array from the server. Now since android cannot display animated GIFs in the ImageView, I have to decode it and show it as a movie. </p>
  
  <p>The problem that I am facing here is that the GIF that I am getting from the server has its dimensions set for an iPhone. So the GIF comes out really small on Android devices with larger screen/resolution. </p>
  
  <p>To fix this I have two alternatives: 
  1) I could either extract each Bitmap from the GIF and scale them according to my screen size. But for that I will have to mess up the aspect ratio and the image will come out stretched. </p>
  
  <p>2) Or I could ask the server guys to add support for Android devices, so that they could send me the GIF according to my screen size.</p>
  
  <p>Please recommend as to what the best solution would be. Do tell if you have any suggestions of your own.</p>