i am trying to make a progressdialog inside a onclick, and it doesn’t shows nothing
this is my code:
enterButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
ProgressDialog pd = ProgressDialog.show(GPSLoc.this, GPSLoc.this.getResources().getString(R.string.app_name),
GPSLoc.this.getResources().getString(R.string.loading), true, false);
}}
why it doesn’t shows nothing? i am doing something wrong?
finally i did it implementing that with an AsyncTask. Because AsyncTask manages the UIThread and a background thread.