Publish progress using aquery

473 Views Asked by At

I need to show the file downloading progress using AQuery, is there any way showing the % of the file download instead of just showing a plain progress dialog (aq.progress(new ProrgressDialog(mContext)...))

1

There are 1 best solutions below

0
On

make progress dialog like this and set on AQuery-

private ProgressDialog dialog;
private AQuery aq;

in your onCreate

dialog = new ProgressDialog(this);
    dialog.setTitle("AQuery");
    dialog.setMessage("Downloading....Please wait !");
    dialog.setIndeterminate(false);
    dialog.setMax(100);
    dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    dialog.setCancelable(false);

    aq = new AQuery(this);
    aq.id(R.id.imgAQuery).progress(dialog).image("your url",false,false);