title: Android initialize Animation
body: <p>I couldn't find examples of how to initialize the animation object.</p>
  
  <p>example <code>Animation ticketAnim;</code></p>
  
  <p>well <code>new Animation();</code> is not a valid object it seems so  I can't just do <code>Animation ticketAnim = new Animation();</code> but I would like to. I take the suggested initialization route that the IDE offers which is <code>Animation ticketAnim = null;</code></p>
  
  <p>of course, accessing this will result in a null pointer exception</p>
  
  <p>what is the right way to do this?</p>