I'm using the class RoundedAvatarDrawable.java to draw a round image from a sample bitmap.
But for me it doesn't work or maybe i'm not using it to the right way.

<https://github.com/chrisbanes/philm/blob/master/app/src/main/java/app/philm/in/drawable/RoundedAvatarDrawable.java>

This my activity layout :

```
 <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >

        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/profil" />

            <ImageView
            android:id="@+id/imageView2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/profil2" />

    </LinearLayout>

```

This is my activity code :

```
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // TODO Auto-generated method stub
    setContentView(R.layout.profil_activity_layout);
    getActionBar().setTitle("ROOT ACTIVITY");

    //Resources res = getResources();
    //Drawable drawable = res.getDrawable(R.drawable.profil);

    Bitmap bImage = BitmapFactory.decodeResource(this.getResources(), R.drawable.profil);
    RoundedAvatarDrawable RondedAvatarImg = new RoundedAvatarDrawable(bImage);

    Bitmap bImageRwonded = RondedAvatarImg.getBitmap();
    ImageView mImg = (ImageView) findViewById(R.id.imageView2);
    mImg.setImageBitmap(bImageRwonded);

}

```

The ouput of the activity is

![enter image description here](https://i.stack.imgur.com/hdLmt.png)

I was expecting to get a rounded photo in the second ImageView.
So could somebody explain to me what did i miss.