ProgresDialog doesn't show up
<pre><code>public Context ctx;
 @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.ctx = this;
            //another code......)

        send = (Button)findViewById(R.id.wyslij_zapytanie_ofertowe);
        send.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                ProgressDialog dialog = ProgressDialog.show(ctx, "Loading", "Please wait...", true);
                try {   
                    GMailSender sender = new GMailSender("dasdda@gmail.com", "ddx");
                    sender.sendMail("This is Subject",   
                            "This is Body",   
                            "staxxxowe@gmail.com",   
                            "xxxyk@gmail.com");   
                  dialog.dismiss();
                } catch (Exception e) {   
                    Log.e("SendMail", e.getMessage(), e);
                    dialog.dismiss();
                } 
            }
        });
</code></pre>

<p>I try also instead ctx put ClassName.class and also doesn't work. Any one have idea how to solve this problem?</p>
