I'm writing an android application and I want when httpclient.execute()
is being executed, the screen go dark and a progress bar appear until this line is executed, what should I do? my code is like this :
ProgressBar x = (ProgressBar) findViewById("R.id.progress") ;
x.setVisibility(ProgressBar.VISIBLE) ;
httpclient.execute()
x.setVisibility(ProgressBar.GONE) ;
but with this code only the progress bar appears and the screen doesn't become dark.