Program crashed when loading xml layout
<p>I load a layout xml when the user tap the EditText as follow. But the program always crushes when executing the setContentView(descriptionView); What is the problem?</p>

<pre><code>EditText DescEditTxt = (EditText) addView.findViewById(R.id.descriptionEdit);
    if(DescEditTxt != null)
    {
        DescEditTxt.setOnFocusChangeListener(new View.OnFocusChangeListener() {
            @Override
            public void onFocusChange(View v, boolean hasFocus) {

                final View descriptionView = getLayoutInflater().inflate(R.layout.description, null);
                setContentView(descriptionView);
            }
       });
    }
</code></pre>
