title: How to avoid restarting activity when orientation changes on Android
body: <p>I am creating an Android app in which I'm drawing a view on a canvas. When the device's orientation changes, the activity restarts. I don't want it to.</p>
  
  <p>How can I avoid restarting the activity when the orientation changes?</p>