Ignore:
Timestamp:
Nov 11, 2013, 10:29:28 AM (11 years ago)
Author:
Antonio Araujo Brett <aaraujo@…>
Branches:
master
Children:
4c4873f
Parents:
42e7061
Message:

Deshabilitados mensajes de depuración en clases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/DownloaderActivity.java

    r56b06e2 rba6bc7c  
    118118       
    119119              if (intent != null) {
    120                   Toast.makeText(getApplicationContext(), "DownloaderActivity: intent != null", Toast.LENGTH_SHORT).show();
     120                  //Toast.makeText(getApplicationContext(), "DownloaderActivity: intent != null", Toast.LENGTH_SHORT).show();
    121121
    122122                  final android.net.Uri data = intent.getData ();
    123123                 
    124124                      if (data != null) {
    125                           Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show();
     125                          //Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show();
    126126                         
    127127                          // verificar el tipo de scheme
     
    130130                          // verificacion de un archivo que esta en el dispositivo
    131131                          if (scheme.equals("file")) {
    132                                   Toast.makeText(getApplicationContext(), "file: "+data.getPath(), Toast.LENGTH_SHORT).show();
     132                                  //Toast.makeText(getApplicationContext(), "file: "+data.getPath(), Toast.LENGTH_SHORT).show();
    133133                                 
    134134                                  // verificar el archivo
     
    139139                                          //doBdocVerification(data.getPath());
    140140                                                }else{
    141                                                         Toast.makeText(getApplicationContext(), "¡Por Implementar!", Toast.LENGTH_SHORT).show();
     141                                                        //Toast.makeText(getApplicationContext(), "¡Por Implementar!", Toast.LENGTH_SHORT).show();
    142142                                                       
    143143                                                }
     
    147147                          // verificacion de un archivo que se debe descargar
    148148                          if (scheme.equals("https")) {
    149                                   Toast.makeText(getApplicationContext(), "scheme: "+data.toString(), Toast.LENGTH_SHORT).show();
     149                                  //Toast.makeText(getApplicationContext(), "scheme: "+data.toString(), Toast.LENGTH_SHORT).show();
    150150                                 
    151151                                  //Toast.makeText(getApplicationContext(), "externalStorage: "+Environment.getExternalStorageDirectory().toString(), Toast.LENGTH_SHORT).show();
     
    171171                       
    172172                                       
    173                         Toast.makeText(getApplicationContext(), "fileToVerify bundle!=null: "+fileToVerify, Toast.LENGTH_SHORT).show();
     173                        //Toast.makeText(getApplicationContext(), "fileToVerify bundle!=null: "+fileToVerify, Toast.LENGTH_SHORT).show();
    174174                       
    175175                        if (fileToVerifyExtension.equals("bdoc")){
    176                                 Toast.makeText(getApplicationContext(), "verificacion de archivo desde la Activity principal", Toast.LENGTH_SHORT).show();
     176                                //Toast.makeText(getApplicationContext(), "verificacion de archivo desde la Activity principal", Toast.LENGTH_SHORT).show();
    177177                                        // ejecutar la verificacion             
    178178                                        //doBdocVerification(fileToVerify);
    179179                                }else{
    180                                         Toast.makeText(getApplicationContext(), "¡Por Implementar!", Toast.LENGTH_SHORT).show();
     180                                        //Toast.makeText(getApplicationContext(), "¡Por Implementar!", Toast.LENGTH_SHORT).show();
    181181                                       
    182182                                }
     
    186186                                 
    187187              }else{
    188                   Toast.makeText(getApplicationContext(), "intent == null", Toast.LENGTH_SHORT).show();
     188                  //Toast.makeText(getApplicationContext(), "intent == null", Toast.LENGTH_SHORT).show();
    189189              }
    190190               
     
    209209        {
    210210            e.printStackTrace();
    211             Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     211            //Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     212            Toast.makeText(this, "No se pudo iniciar el sistema de archivos. ¿Está la SDCARD montada?", Toast.LENGTH_LONG).show();
    212213            return false;
    213214        }
     
    337338                                for (int l=0; l < fields.length; l++) {
    338339                                        try {
    339                                                 Toast.makeText(getApplicationContext(), "DownloaderActivity: "+Integer.toString(l)+ " "+
    340                                                         Integer.toString(fields[l].getInt(null)), Toast.LENGTH_SHORT).show();
     340                                                //Toast.makeText(getApplicationContext(), "DownloaderActivity: "+Integer.toString(l)+ " "+
     341                                                //      Integer.toString(fields[l].getInt(null)), Toast.LENGTH_SHORT).show();
    341342
    342343                                                caInput = new BufferedInputStream(getResources().openRawResource(fields[l].getInt(null)));
     
    544545                   
    545546                                Log.d("***", "DownloadFileAsync().execute(urlhttps, true)");
    546                                 Toast.makeText(getApplicationContext(), "DownloadFileAsync().execute("+urlhttps+", true)", Toast.LENGTH_LONG).show();
     547                                //Toast.makeText(getApplicationContext(), "DownloadFileAsync().execute("+urlhttps+", true)", Toast.LENGTH_LONG).show();
    547548                                // pasar como segundo argmento que se acepta que el sertivor es desconocido
    548549                                new DownloadFileAsync().execute(urlhttps, "true");
     
    563564           }else{
    564565                   // no ocurrió excepcion
    565                    Toast.makeText(getApplicationContext(), "Se descargo correctamente el archivo", Toast.LENGTH_LONG).show();
     566                   //Toast.makeText(getApplicationContext(), "Se descargo correctamente el archivo", Toast.LENGTH_LONG).show();
    566567                   
    567                    Toast.makeText(getApplicationContext(), "result.get(0): "+result.get(0), Toast.LENGTH_LONG).show();
    568                    Toast.makeText(getApplicationContext(), "result.get(1): "+result.get(1), Toast.LENGTH_LONG).show();
    569                    Toast.makeText(getApplicationContext(), "downloadedDirFiles: "+downloadedDirFiles, Toast.LENGTH_LONG).show();
     568                   //Toast.makeText(getApplicationContext(), "result.get(0): "+result.get(0), Toast.LENGTH_LONG).show();
     569                   //Toast.makeText(getApplicationContext(), "result.get(1): "+result.get(1), Toast.LENGTH_LONG).show();
     570                   //Toast.makeText(getApplicationContext(), "downloadedDirFiles: "+downloadedDirFiles, Toast.LENGTH_LONG).show();
    570571                   
    571572                   // lanzar activity para mostrar resultados de verificacion
    572573                           Intent intent = new Intent(DownloaderActivity.this, BDOCVerifyResultActivity.class);
    573574                           intent.putExtra("fileToVerify", result.get(1));
    574                            Toast.makeText(getApplicationContext(), "putExtra1: "+result.get(1), Toast.LENGTH_LONG).show();
     575                           //Toast.makeText(getApplicationContext(), "putExtra1: "+result.get(1), Toast.LENGTH_LONG).show();
    575576                               
    576577                           File f = new File(result.get(1));
     
    579580                           intent.putExtra("fileExtension", fileExtension);
    580581                           
    581                         Toast.makeText(getApplicationContext(), "putExtra2: "+fileExtension, Toast.LENGTH_LONG).show();
     582                           //Toast.makeText(getApplicationContext(), "putExtra2: "+fileExtension, Toast.LENGTH_LONG).show();
    582583                           
    583584                           startActivity(intent);   
Note: See TracChangeset for help on using the changeset viewer.