I am using async task and my loading screen is as shown in image

But i want to show only that blue progress line not the dialog. what should i do?
here is my code
@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case DIALOG_DOWNLOAD_PROGRESS: //we set this to 0
mProgressDialog = new ProgressDialog(this);
mProgressDialog.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar_states));
mProgressDialog.setMessage("Downloading file...");
mProgressDialog.setIndeterminate(false);
mProgressDialog.setMax(100);
mProgressDialog.setTitle("Please wait while checking new database");
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
mProgressDialog.setCancelable(true);
mProgressDialog.show();
return mProgressDialog;
default:
return null;
}
}
Or how can i show only that percentage 53% or 53/100 in above image without dialog?
I just solve how to show the percentage but no ‘progress’ on progress line.
I have use to display the seekbar in dialog and its progress.Below code R.layout.pg contains one seekbar.Add more code whatever you want.
In Oncreate:
Seekbar seek;