title: image appears black when trying drawing a text on it using canvas
body: <p>I have a bitmap on which I'm trying to write a text using canvas.After setting the bitmap in a canvas and doing the necessary operations(writting a text on the canvas), I draw the resulting canvas on a <code>ImageView</code>.The big problem is that there is no image displayed...the screen turns black.Now, I know that the bitmap is returned ok because I displayed right before doing the canvas operations.</p>
  
  <p>So,here is how I did it:</p>
  
  <pre><code>                     image= (ImageView) findViewById(R.id.imageview);
                      bitmap = android.provider.MediaStore.Images.Media
                         .getBitmap(cr, selectedImage);
                        int heightOfOld=bitmap.getHeight();
                        int widthOfOld=bitmap.getWidth();
                         android.graphics.Bitmap.Config hasAlpha=bitmap.getConfig();
  
                         Bitmap bitmapResult=bitmap.createBitmap(widthOfOld, heightOfOld, hasAlpha);
                         Canvas c=new Canvas(bitmapResult);
                         Canvas c1=drawTextImage(c);
                         image.draw(c1);
  </code></pre>
  
  <p>And here is the method used for drawing text on the canvas:</p>
  
  <pre><code>                  private Canvas drawTextImage(Canvas c){
                         Paint paint=new Paint();
                         paint.setColor(Color.BLUE);
                         paint.setStyle(Paint.Style.FILL);
                         paint.setAntiAlias(true);
                         paint.setTextSize(20);
                         c.drawText("Golden Stag", 30, 200, paint);
                         return c;
                         }
  </code></pre>
  
  <p>Could someone tell me where is the problem,please!?</p>