Disable Background touch in popup dialog in android
<p><img src="http://i.stack.imgur.com/UDvXK.png" alt="enter image description here">In my code i am showing alert in popup view. but when i touch any background buttons, they are enable. i want to disable background touch.
follwoing is my code. please check it.</p>

<pre><code>LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View popuplayoutReject = inflater.inflate(R.layout.popup_reject_request, (ViewGroup) findViewById(R.id.popup_element));
final PopupWindow popUpReject = new PopupWindow(popuplayoutReject, WindowManager.LayoutParams.WRAP_CONTENT,
        WindowManager.LayoutParams.WRAP_CONTENT, false);
ImageButton btnPopupReject_Ok, btnPopUpReject_Cancel;
TextView txtRequestRejectMessage = (TextView) popuplayoutReject.findViewById(R.id.errorMessage);
txtRequestRejectMessage.setText(getResources().getString(R.string.AddEntryNotSaved));
btnPopupReject_Ok = (ImageButton) popuplayoutReject.findViewById(R.id.btnPopup_Yes);
btnPopupReject_Ok.setImageResource(R.drawable.yes_button);

btnPopupReject_Ok.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View v) {
       finish();
    }
});

btnPopUpReject_Cancel = (ImageButton) popuplayoutReject.findViewById(R.id.btnPopUp_No);
btnPopUpReject_Cancel.setImageResource(R.drawable.no_button);
btnPopUpReject_Cancel.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View v) {
        popUpReject.dismiss();
    }
});
popUpReject.showAtLocation(popuplayoutReject, Gravity.CENTER, 0, 0);            
</code></pre>
