Merge two bitmaps in android
===

I want to merge two bitmaps, here is my code

    // Camera arg conversion to Bitmap
    					Bitmap cameraBitmap = BitmapFactory.decodeByteArray(arg0, 0,
    							arg0.length);
    					
    					// FrameLayout to Bitmap
    					FrameLayout mainLayout = (FrameLayout) findViewById(R.id.frame);
    					Bitmap foreground = Bitmap.createBitmap(mainLayout.getWidth(),
    							mainLayout.getHeight(), Bitmap.Config.ARGB_8888);
    
    					Canvas c = new Canvas(foreground);
    					mainLayout.draw(c);

The camera image should become background, and foreground as top image. I've tried from 
[Combining 2 Images in Android using Canvas](http://www.jondev.net/articles/Combining_2_Images_in_Android_using_Canvas)  but it didn't help me. Any idea.? Thanks