小编Kis*_*pal的帖子

Firebase Android:如何取消下载?

如何从 Firebase 取消我的下载任务?

每当我单击ProgressDialog.

这是我的下载活动所在的部分ExamesActivity.java。看起来像:

//Download the File on Button(Download) click:
        bDownload.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                //Initalizing teh Spinner-to-String functions:
                Grade = spClasse.getSelectedItem().toString();
                Type = spEpoca.getSelectedItem().toString();
                Subject = spDisciplina.getSelectedItem().toString();
                Year = spAno.getSelectedItem().toString();

                //Download the File:
                //First Check if ON the Spinner, everything is choosen. It should be. If not, show error Toast.
                if (Grade.equals("...") | Type.equals("...") | Disciplina.equals("...") | Year.equals("..."){

                    //Show the The Error Toast:
                    Toast.makeText(ExamesActivity.this, "everything shall be choosen", Toast.LENGTH_SHORT).show();

                } …
Run Code Online (Sandbox Code Playgroud)

android download firebase firebase-storage

5
推荐指数
1
解决办法
1710
查看次数

标签 统计

android ×1

download ×1

firebase ×1

firebase-storage ×1