Good afternoon. Prompt why this code works in Android 2.2 and not
working in Android 2.1. Сalling dialogue.
final Dialog pricewc = new Dialog(this);
                LayoutInflater inf = getLayoutInflater();
                View layoutdialog = inf.inflate(R.layout.pricewc,
(ViewGroup)findViewById(R.id.pricewcadd));
                pricewc.setContentView(layoutdialog);
                final EditText textdialog =
(EditText)pricewc.findViewById(R.id.pricewcadd);
                pricewc.setTitle(R.string.dialog_add_wc_coast);
                Button bn = (Button)pricewc.findViewById(R.id.buttonAdd);
                Button bn_cansel =
(Button)pricewc.findViewById(R.id.buttonAdd_cansel);
                bn.setOnClickListener(new View.OnClickListener() {
                public void onClick(View v) {
                                showDialog(ExitActvitiFinal);
                                pricewc.cancel();

                        }
                });
                bn_cansel.setOnClickListener(new View.OnClickListener() {
                                public void onClick(View v) {
                                pricewc.cancel();}

                });
                pricewc.setCancelable(false);
                pricewc.show();
        return null ;

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to