title: Best way to draw images in an activity
body: <p>I need to draw a bitmap and yet change it when buttons are pressed on an activity class. I have tried using a View class but unfortunately I am having no luck. I thought this would be a simple enough task.</p>
  
  <p>Does anyone have an idea in how to do this? I have been struggling on this for 2 days and nowhere seems to give a decent solution.</p>
  
  <p>Activity Class</p>
  
  <pre><code>public class PhonicsActivity extends Activity{
  
  int letterStatus = 0;
  
  protected void onCreate (Bundle savedInstanceState){
  
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity1_phonics);
  
      final Intent phonicsBackIntent = new Intent(this, PhonicsMenu.class);   
  
      final Button nextButton = (Button) findViewById(R.id.nextbutton);
      final Button backButton = (Button) findViewById(R.id.backbutton);
      final Button menuButton = (Button) findViewById(R.id.menubutton);
  
      nextButton.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
  
          }
      });
  </code></pre>
  
  <p>View Class</p>
  
  <pre><code>public class PhonicsView extends View {
  
  private int letterStatus = 1;
  
  public PhonicsView(Context context) {
      super(context);
      // TODO Auto-generated constructor stub
  }
  
  public PhonicsView(Context context, AttributeSet attrs) {
      super(context, attrs);
      // TODO Auto-generated constructor stub
      init();
  }
  
  public PhonicsView(Context context, AttributeSet attrs, int defStyle) {
      super(context, attrs, defStyle);
      // TODO Auto-generated constructor stub
      init();
  }
  
   private void init(){
  
  
       }
  
  
  protected void onDraw(Canvas canvas) {
  
      drawLetterA(canvas);
  
      if (letterStatus == 2){
  
          Bitmap myBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.lettera);
          canvas.drawBitmap(myBitmap, 0, 0, null);
  
      }
  
  }
  </code></pre>
  
  <p>I need the buttons in the activity to cover the previous image or clear the canvas and then draw the next letter. </p>