Changeset 9866c0f in dispositivos_moviles for TibisayMovil/src/ve/gob


Ignore:
Timestamp:
Nov 13, 2013, 10:54:18 AM (11 years ago)
Author:
Jose Ruiz <joseruiz@…>
Branches:
master
Children:
73b8c70
Parents:
37c4d43 (diff), 4c4873f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

nada

Location:
TibisayMovil/src/ve/gob/cenditel/tibisaymovil
Files:
14 edited

Legend:

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

    r288126d r37c4d43  
    1 package ve.gob.cenditel.tibisaymovil;
     1package ve.gob.cenditel.tibisaymovil; 
    22
    33import android.app.Activity;
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/BDOCVerifyResultActivity.java

    re68708b rba6bc7c  
    171171       
    172172              if (intent != null) {
    173                   Toast.makeText(getApplicationContext(), "intent != null", Toast.LENGTH_SHORT).show();
     173                  //Toast.makeText(getApplicationContext(), "intent != null", Toast.LENGTH_SHORT).show();
    174174
    175175                  final android.net.Uri data = intent.getData ();
    176176                 
    177177                      if (data != null) {
    178                           Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show();
     178                          //Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show();
    179179                         
    180180                          // verificar el tipo de scheme
     
    183183                          // verificacion de un archivo que esta en el dispositivo
    184184                          if (scheme.equals("file")) {
    185                                   Toast.makeText(getApplicationContext(), "file: "+data.getPath(), Toast.LENGTH_SHORT).show();
     185                                  //Toast.makeText(getApplicationContext(), "file: "+data.getPath(), Toast.LENGTH_SHORT).show();
    186186                                 
    187187                                  // verificar el archivo
     
    192192                                          doBdocVerification(data.getPath());
    193193                                                }else{
    194                                                         Toast.makeText(getApplicationContext(), "¡Por Implementar! scheme == file", Toast.LENGTH_SHORT).show();
     194                                                        //Toast.makeText(getApplicationContext(), "¡Por Implementar! scheme == file", Toast.LENGTH_SHORT).show();
    195195                                                       
    196196                                                }
     
    200200                          // verificacion de un archivo que se debe descargar
    201201                          if (scheme.equals("https")) {
    202                                   Toast.makeText(getApplicationContext(), "scheme: "+data.toString(), Toast.LENGTH_SHORT).show();
     202                                  //Toast.makeText(getApplicationContext(), "scheme: "+data.toString(), Toast.LENGTH_SHORT).show();
    203203                                 
    204                                   Toast.makeText(getApplicationContext(), "externalStorage: "+Environment.getExternalStorageDirectory().toString(), Toast.LENGTH_SHORT).show();
     204                                  //Toast.makeText(getApplicationContext(), "externalStorage: "+Environment.getExternalStorageDirectory().toString(), Toast.LENGTH_SHORT).show();
    205205                                 
    206206                                  urlhttps = data.toString();
     
    211211                                  //Toast.makeText(getApplicationContext(), "****despues de execute()", Toast.LENGTH_SHORT).show();
    212212                                  // verificar el archivo
    213                                 Toast.makeText(getApplicationContext(), "Ahora viene la verificación del archivo", Toast.LENGTH_SHORT).show();
     213                                  //Toast.makeText(getApplicationContext(), "Ahora viene la verificación del archivo", Toast.LENGTH_SHORT).show();
    214214                          }
    215215                         
     
    224224                        mimeTypeFileToVerify = getMimeType(fileToVerify);
    225225                                       
    226                         Toast.makeText(getApplicationContext(), "BDOCVerifyResultActivity fileToVerify: "+fileToVerify, Toast.LENGTH_SHORT).show();
    227                         Toast.makeText(getApplicationContext(), "BDOCVerifyResultActivity fileToVerifyExtension: "+fileToVerifyExtension, Toast.LENGTH_SHORT).show();
     226                        //Toast.makeText(getApplicationContext(), "BDOCVerifyResultActivity fileToVerify: "+fileToVerify, Toast.LENGTH_SHORT).show();
     227                        //Toast.makeText(getApplicationContext(), "BDOCVerifyResultActivity fileToVerifyExtension: "+fileToVerifyExtension, Toast.LENGTH_SHORT).show();
    228228                       
    229229                        if (fileToVerifyExtension.equals("bdoc")){
    230                                 Toast.makeText(getApplicationContext(), "BDOCVerifyResultActivity: -> doBdocVerification(fileToVerify)", Toast.LENGTH_SHORT).show();
     230                                //Toast.makeText(getApplicationContext(), "BDOCVerifyResultActivity: -> doBdocVerification(fileToVerify)", Toast.LENGTH_SHORT).show();
    231231                                        // ejecutar la verificacion             
    232232                                        doBdocVerification(fileToVerify);
    233233                                }else{
    234                                         Toast.makeText(getApplicationContext(), "¡Por Implementar bundle != null!", Toast.LENGTH_SHORT).show();
     234                                        //Toast.makeText(getApplicationContext(), "¡Por Implementar bundle != null!", Toast.LENGTH_SHORT).show();
    235235                                       
    236236                                        // ejecutar la verificacion del pdf firmado
     
    242242                                 
    243243              }else{
    244                   Toast.makeText(getApplicationContext(), "intent == null", Toast.LENGTH_SHORT).show();
     244                  //Toast.makeText(getApplicationContext(), "intent == null", Toast.LENGTH_SHORT).show();
    245245              }
    246246       
     
    307307        private void doBdocVerification(String absolutePathFileToVerify){
    308308               
    309                 Toast.makeText(getApplicationContext(), "BDOCVerifyResultActivity: dentro doBdocVerification(fileToVerify)"+absolutePathFileToVerify, Toast.LENGTH_SHORT).show();
     309                //Toast.makeText(getApplicationContext(), "BDOCVerifyResultActivity: dentro doBdocVerification(fileToVerify)"+absolutePathFileToVerify, Toast.LENGTH_SHORT).show();
    310310                try {
    311311                        Log.d("doBdocVerification:", "Inicializando jdigidoc ...");
     
    425425                                                int position, long id) {
    426426                                        String absolutePathToOpen = extractedDirFiles + docs.get(position).getName();
    427                                         Toast.makeText(getApplicationContext(), getMimeType(absolutePathToOpen), Toast.LENGTH_SHORT).show();
     427                                        //Toast.makeText(getApplicationContext(), getMimeType(absolutePathToOpen), Toast.LENGTH_SHORT).show();
    428428                                        openIt(absolutePathToOpen, getMimeType(absolutePathToOpen));
    429429                                       
     
    465465                                        //String signer = parent.getItemAtPosition(position).toString();
    466466                                       
    467                                         Toast.makeText(getApplicationContext(), "SE DEBE MOSTRAR INFORMACIÓN DEL FIRMANTE", Toast.LENGTH_SHORT).show();
     467                                        //Toast.makeText(getApplicationContext(), "SE DEBE MOSTRAR INFORMACIÓN DEL FIRMANTE", Toast.LENGTH_SHORT).show();
    468468                                        showSignatureDetails(position, signers);
    469469                                }
     
    746746        {
    747747            e.printStackTrace();
    748             Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     748            //Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     749            Toast.makeText(this, "No se pudo iniciar el sistema de archivos. ¿Está la SDCARD montada?", Toast.LENGTH_LONG).show();
    749750            return false;
    750751        }
     
    10371038       protected void onPostExecute(ArrayList<String> result) {
    10381039           dismissDialog(DIALOG_DOWNLOAD_PROGRESS);
    1039            Toast.makeText(getApplicationContext(), "onPostExecute: "+ result.get(0), Toast.LENGTH_LONG).show();
     1040           //Toast.makeText(getApplicationContext(), "onPostExecute: "+ result.get(0), Toast.LENGTH_LONG).show();
    10401041           
    10411042           // ocurrio una excepcion
    10421043           if (result.get(0).equals("1")){
    10431044               
    1044                    Toast.makeText(getApplicationContext(), "onPostExecute: dentro del if" , Toast.LENGTH_LONG).show();
     1045                   //Toast.makeText(getApplicationContext(), "onPostExecute: dentro del if" , Toast.LENGTH_LONG).show();
    10451046               
    1046                 // ocurrio un problema
    1047                 AlertDialog.Builder builder = new AlertDialog.Builder(BDOCVerifyResultActivity.this);
     1047                   // ocurrio un problema
     1048                        AlertDialog.Builder builder = new AlertDialog.Builder(BDOCVerifyResultActivity.this);
    10481049               
    10491050               
    1050                 builder.setMessage(result.get(1)).setTitle("Error al descargar el archivo");
     1051                        builder.setMessage(result.get(1)).setTitle("Error al descargar el archivo");
    10511052               
    1052                 builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
    1053                    public void onClick(DialogInterface dialog, int id) {
     1053                        builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
     1054                                public void onClick(DialogInterface dialog, int id) {
    10541055                       // User clicked OK button
    10551056               
    1056                         Log.d("***", "DownloadFileAsync().execute(urlhttps, true)");
    1057                         Toast.makeText(getApplicationContext(), "DownloadFileAsync().execute(urlhttps, true)", Toast.LENGTH_LONG).show();
    1058                         // pasar como segundo argmento que se acepta que el sertivor es desconocido
    1059                         new DownloadFileAsync().execute(urlhttps, "true");
    1060                    }
    1061                });
    1062                 builder.setNegativeButton("Cancelar", new DialogInterface.OnClickListener() {
    1063                    public void onClick(DialogInterface dialog, int id) {
    1064                        // User cancelled the dialog
    1065                    }
    1066                });
    1067                 AlertDialog dialog = builder.create();
    1068                dialog.show();
    1069                
    1070                
    1071                
     1057                                        Log.d("***", "DownloadFileAsync().execute(urlhttps, true)");
     1058                                        //Toast.makeText(getApplicationContext(), "DownloadFileAsync().execute(urlhttps, true)", Toast.LENGTH_LONG).show();
     1059                                        // pasar como segundo argmento que se acepta que el sertivor es desconocido
     1060                                        new DownloadFileAsync().execute(urlhttps, "true");
     1061                                }
     1062                        });
     1063                        builder.setNegativeButton("Cancelar", new DialogInterface.OnClickListener() {
     1064                                public void onClick(DialogInterface dialog, int id) {
     1065                                        // User cancelled the dialog
     1066                                }
     1067                        });
     1068                        AlertDialog dialog = builder.create();
     1069                        dialog.show();
     1070                               
    10721071           }else{
    10731072                   // no ocurrió excepcion
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/CertificateToLoadActivity.java

    rd5ab40f rba6bc7c  
    429429                fileToLoad = CertificateToLoadActivity.this.selected.getAbsolutePath();
    430430               
    431                 Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: "+fileToLoad, Toast.LENGTH_SHORT).show();
     431                //Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: "+fileToLoad, Toast.LENGTH_SHORT).show();
    432432               
    433433                loadCertificate(fileToLoad);
     
    457457                // We can read and write the media
    458458                mExternalStorageAvailable = mExternalStorageWriteable = true;
    459                 Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
     459                //Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
    460460               
    461461                // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de
     
    477477                mExternalStorageAvailable = true;
    478478                mExternalStorageWriteable = false;
    479                 Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
     479                //Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
    480480               
    481481                builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:");
     
    486486                //  to know is we can neither read nor write
    487487                mExternalStorageAvailable = mExternalStorageWriteable = false;
    488                 Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
     488                //Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
    489489               
    490490                builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:");                     
     
    521521        {
    522522            e.printStackTrace();
    523             Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     523            //Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     524            Toast.makeText(this, "No se pudo iniciar el sistema de archivos. ¿Está la SDCARD montada?", Toast.LENGTH_LONG).show();
    524525            return false;
    525526        }
     
    559560        // chequear disponibilidad de directorio de certificados
    560561            if (!checkCertificatesDirectoryAvailability()){
    561                 Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
     562                //Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
    562563               
    563564                finish();
     
    574575                        boolean [] keyUsage = recipientCertificate.getKeyUsage();
    575576                       
    576                         Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: cerrificado leido", Toast.LENGTH_SHORT).show();
     577                        //Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: cerrificado leido", Toast.LENGTH_SHORT).show();
    577578                       
    578579                        if (keyUsage == null){
    579                                 Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: keyUsage == null", Toast.LENGTH_SHORT).show();
     580                                //Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: keyUsage == null", Toast.LENGTH_SHORT).show();
    580581
    581582                                showDialog("Error:", "El certificado seleccionado no tiene la extensión \"Cifrado de Clave \" (KeyEncipherment) para cifrado. " +
     
    585586                       
    586587                        if ( keyUsage[2] ){
    587                                 Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: CERTIFICADO SI TIENE KeyEncipherment", Toast.LENGTH_SHORT).show();
     588                                //Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: CERTIFICADO SI TIENE KeyEncipherment", Toast.LENGTH_SHORT).show();
    588589                               
    589590                               
     
    591592                                if (compareCertificate(recipientCertificate)){
    592593                                       
    593                                         Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: El certificado ya existe en el repositorio", Toast.LENGTH_SHORT).show();
     594                                        //Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: El certificado ya existe en el repositorio", Toast.LENGTH_SHORT).show();
    594595                                       
    595596                                        showDialog("Información:", "El certificado ya existe en el repositorio. Se cancela la operación.");
     
    696697            public void onClick(DialogInterface dialog, int id) {
    697698                // User clicked OK button                                               
    698                 Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();
     699                //Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();
    699700                finish();                               
    700701               
  • 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);   
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/EncryptionCertificatesActivity.java

    rfd4a5b9 rba6bc7c  
    2323import android.os.Bundle;
    2424import android.os.Environment;
     25import android.annotation.SuppressLint;
    2526import android.app.Activity;
    2627import android.app.AlertDialog;
     
    190191                       
    191192                        //finish();
    192                 Toast.makeText(getApplicationContext(), "Se debe agregar un certificado", Toast.LENGTH_SHORT).show();
     193                //Toast.makeText(getApplicationContext(), "Se debe agregar un certificado", Toast.LENGTH_SHORT).show();
    193194               
    194195                // llamar a función para cargar certificado
     
    205206                //shareIt();
    206207               
    207                 Toast.makeText(getApplicationContext(), "eliminar un certificado", Toast.LENGTH_SHORT).show();
     208                //Toast.makeText(getApplicationContext(), "eliminar un certificado", Toast.LENGTH_SHORT).show();
    208209               
    209210                if (certificateSelectedIndex == -1){
     
    218219                        public void onClick(DialogInterface dialog, int id) {
    219220                            // User clicked OK button                                                   
    220                                 Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();                           
     221                                //Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();                         
    221222                        }
    222223                                });
     
    234235
    235236                        builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
    236                         public void onClick(DialogInterface dialog, int id) {
     237                        @SuppressLint("NewApi")
     238                                                public void onClick(DialogInterface dialog, int id) {
    237239                            // User clicked OK button                                                   
    238                                 Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();
     240                                //Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();
    239241                               
    240242                                // funcion para eliminar el certificado
     
    262264                            }
    263265                               
    264                                 Toast.makeText(getApplicationContext(), "**archivo a borrar: "+pathToErase, Toast.LENGTH_LONG).show();
     266                                //Toast.makeText(getApplicationContext(), "**archivo a borrar: "+pathToErase, Toast.LENGTH_LONG).show();
    265267                               
    266268                               
     
    272274                        public void onClick(DialogInterface dialog, int id) {
    273275                            // User cancelled the dialog
    274                                 Toast.makeText(getApplicationContext(), "User clicked Cancel button", Toast.LENGTH_LONG).show();
     276                                //Toast.makeText(getApplicationContext(), "User clicked Cancel button", Toast.LENGTH_LONG).show();
    275277                               
    276278                                labelRemoveCertificate.setVisibility(View.GONE);
     
    410412        {
    411413            e.printStackTrace();
    412             Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     414            //Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     415            Toast.makeText(this, "No se pudo iniciar el sistema de archivos. ¿Está la SDCARD montada?", Toast.LENGTH_LONG).show();
    413416            return false;
    414417        }
     
    444447                // We can read and write the media
    445448                mExternalStorageAvailable = mExternalStorageWriteable = true;
    446                 Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
     449                //Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
    447450               
    448451                // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de
     
    464467                mExternalStorageAvailable = true;
    465468                mExternalStorageWriteable = false;
    466                 Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
     469                //Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
    467470               
    468471                builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:");
     
    473476                //  to know is we can neither read nor write
    474477                mExternalStorageAvailable = mExternalStorageWriteable = false;
    475                 Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
     478                //Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
    476479               
    477480                builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:");                     
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/EncryptionResultActivity.java

    r0a5cb8c rba6bc7c  
    122122            public void onClick(DialogInterface dialog, int id) {
    123123                // User clicked OK button                                               
    124                 Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();
     124                //Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();
    125125
    126126            }
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/FileToDecryptActivity.java

    rfd4a5b9 rba6bc7c  
    408408                fileToDecrypt = FileToDecryptActivity.this.selected.getAbsolutePath();
    409409               
    410                 Toast.makeText(getApplicationContext(), "FileToDecryptActivity: "+fileToDecrypt, Toast.LENGTH_SHORT).show();
     410                //Toast.makeText(getApplicationContext(), "FileToDecryptActivity: "+fileToDecrypt, Toast.LENGTH_SHORT).show();
    411411               
    412412                               
     
    450450                // chequear disponibilidad de directorio de certificados
    451451            if (!checkDecryptedDirectoryAvailability()){
    452                 Toast.makeText(getApplicationContext(), "FileToDecryptActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
     452                //Toast.makeText(getApplicationContext(), "FileToDecryptActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
    453453               
    454454                finish();
     
    488488                // We can read and write the media
    489489                mExternalStorageAvailable = mExternalStorageWriteable = true;
    490                 Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
     490                //Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
    491491               
    492492                // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de
     
    508508                mExternalStorageAvailable = true;
    509509                mExternalStorageWriteable = false;
    510                 Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
     510                //Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
    511511               
    512512                builder.setMessage("Directorio "+decryptedDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:");
     
    517517                //  to know is we can neither read nor write
    518518                mExternalStorageAvailable = mExternalStorageWriteable = false;
    519                 Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
     519                //Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
    520520               
    521521                builder.setMessage("Directorio "+decryptedDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:");               
     
    553553        {
    554554            e.printStackTrace();
    555             Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     555            //Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     556            Toast.makeText(this, "No se pudo iniciar el sistema de archivos. ¿Está la SDCARD montada?", Toast.LENGTH_LONG).show();
    556557            return false;
    557558        }
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/FileToEncryptActivity.java

    rae1bcd1 rba6bc7c  
    437437                fileToEncrypt = FileToEncryptActivity.this.selected.getAbsolutePath();
    438438               
    439                 Toast.makeText(getApplicationContext(), "FileToEncryptActivity: "+fileToEncrypt, Toast.LENGTH_SHORT).show();
     439                //Toast.makeText(getApplicationContext(), "FileToEncryptActivity: "+fileToEncrypt, Toast.LENGTH_SHORT).show();
    440440               
    441441               
     
    494494                // chequear disponibilidad de directorio de certificados
    495495            if (!checkCertificatesDirectoryAvailability()){
    496                 Toast.makeText(getApplicationContext(), "FileToEncryptActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
     496                //Toast.makeText(getApplicationContext(), "FileToEncryptActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
    497497               
    498498                finish();
     
    532532                // We can read and write the media
    533533                mExternalStorageAvailable = mExternalStorageWriteable = true;
    534                 Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
     534                //Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
    535535               
    536536                // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de
     
    552552                mExternalStorageAvailable = true;
    553553                mExternalStorageWriteable = false;
    554                 Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
     554                //Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
    555555               
    556556                builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:");
     
    561561                //  to know is we can neither read nor write
    562562                mExternalStorageAvailable = mExternalStorageWriteable = false;
    563                 Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
     563                //Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
    564564               
    565565                builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:");                     
     
    597597        {
    598598            e.printStackTrace();
    599             Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     599            //Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     600            Toast.makeText(this, "No se pudo iniciar el sistema de archivos. ¿Está la SDCARD montada?", Toast.LENGTH_LONG).show();
    600601            return false;
    601602        }
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/FileToShareActivity.java

    rc231890 rba6bc7c  
    447447                fileToShare = FileToShareActivity.this.selected.getAbsolutePath();
    448448               
    449                 Toast.makeText(getApplicationContext(), "FileToShareActivity: "+fileToShare, Toast.LENGTH_SHORT).show();
     449                //Toast.makeText(getApplicationContext(), "FileToShareActivity: "+fileToShare, Toast.LENGTH_SHORT).show();
    450450               
    451451               
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/FilesToPDFSignActivity.java

    r2ff9cec rba6bc7c  
    453453        @Override
    454454    protected void onActivityResult(int requestCode, int resultCode, final Intent data) {
    455         Toast.makeText(this, "result", Toast.LENGTH_LONG).show();
     455        //Toast.makeText(this, "result", Toast.LENGTH_LONG).show();
    456456
    457457        this.requestCode = requestCode;
    458458        this.resultCode = resultCode;
    459459        this.data=data;
    460         Toast.makeText(this, "request_code="+this.requestCode+" result="+this.resultCode, Toast.LENGTH_LONG).show();
     460        //Toast.makeText(this, "request_code="+this.requestCode+" result="+this.resultCode, Toast.LENGTH_LONG).show();
    461461       
    462462       
     
    485485
    486486            if (resultCode == RESULT_OK) {
    487                 Toast.makeText(FilesToPDFSignActivity.this, "aqui", Toast.LENGTH_LONG).show();
     487                //Toast.makeText(FilesToPDFSignActivity.this, "aqui", Toast.LENGTH_LONG).show();
    488488
    489489                boolean embedSignature = data.getBooleanExtra(IntentExtraField.EMBED_SIGNATURE_IN_PDF, false);
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/PDFVerifyResultActivity.java

    rc14b8d2 r4c4873f  
    44import java.io.File;
    55import java.io.InputStream;
    6 
    76
    87import android.net.Uri;
     
    1716import android.view.Window;
    1817import android.view.View.OnClickListener;
     18import android.webkit.MimeTypeMap;
    1919import android.widget.AdapterView;
    2020import android.widget.BaseAdapter;
     
    3939import java.util.ArrayList;
    4040import java.util.Random;
    41 
    4241import java.security.cert.X509Certificate;
    4342import java.text.SimpleDateFormat;
     
    7574               
    7675                // obtener el archivo pdf a verificar
    77                 Bundle bundle = getIntent().getExtras();
    78                 pdfToVerify = bundle.getString("pdfToVerify");
     76                //Bundle bundle = getIntent().getExtras();
     77                //pdfToVerify = bundle.getString("pdfToVerify");
     78               
     79                final android.net.Uri data = getIntent().getData ();
     80         
     81            if (data != null) {
     82                Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show();
     83                 
     84                // verificar el tipo de scheme
     85                String scheme = data.getScheme();
     86                   
     87                // verificacion de un archivo que esta en el dispositivo
     88                if (scheme.equals("file")) {
     89                        Toast.makeText(getApplicationContext(), "file: "+data.getPath(), Toast.LENGTH_SHORT).show();
     90                        pdfToVerify = data.getPath();                     
     91                }                 
     92            }else{
     93                // obtener el archivo pdf a verificar
     94                        Bundle bundle = getIntent().getExtras();
     95                        pdfToVerify = bundle.getString("pdfToVerify");
     96            }     
     97               
     98               
    7999                TextView pdfName = (TextView) this.findViewById(R.id.filename_text);
    80100                pdfName.setText(pdfToVerify);
     
    82102                // ejecutar el proceso de verificacion del pdf
    83103                doVerification(pdfToVerify);
     104               
     105                LinearLayout layoutPdfFileResult = (LinearLayout) this.findViewById(R.id.layout_pdf_signed_result);
     106       
     107        OnClickListener pdfFileListener = new OnClickListener() {
     108            public void onClick(View v) {
     109               
     110                //Toast.makeText(getApplicationContext(), "**CLICK SOBRE EL archivo***", Toast.LENGTH_LONG).show();
     111               
     112                openIt(pdfToVerify, getMimeType(pdfToVerify));
     113            }
     114        };
     115        layoutPdfFileResult.setOnClickListener(pdfFileListener);
     116               
     117               
    84118               
    85119                // habilitar opciones de botones inferiores
     
    136170                Log.d("VerificadorPDF", "af.getSignatureNames()");
    137171               
    138                 Toast.makeText(getApplicationContext(), "names.size: "+ Integer.toString(names.size()), Toast.LENGTH_SHORT).show();
     172                //Toast.makeText(getApplicationContext(), "names.size: "+ Integer.toString(names.size()), Toast.LENGTH_SHORT).show();
    139173                Log.d("VerificadorPDF", Integer.toString(names.size()));
    140174               
     
    174208                        for (int l=0; l < fields.length; l++) {
    175209                                try {
    176                                         Toast.makeText(getApplicationContext(), "PDFVerifyResultActivity - reading certificate: "+Integer.toString(l)+ " "+
    177                                                 Integer.toString(fields[l].getInt(null)), Toast.LENGTH_SHORT).show();
     210                                        //Toast.makeText(getApplicationContext(), "PDFVerifyResultActivity - reading certificate: "+Integer.toString(l)+ " "+
     211                                        //      Integer.toString(fields[l].getInt(null)), Toast.LENGTH_SHORT).show();
    178212
    179213                                        caInput = new BufferedInputStream(getResources().openRawResource(fields[l].getInt(null)));
     
    265299                                                int position, long id) {
    266300                                                                               
    267                                         Toast.makeText(getApplicationContext(), "SE DEBE MOSTRAR INFORMACIÓN DEL FIRMANTE", Toast.LENGTH_SHORT).show();
     301                                        //Toast.makeText(getApplicationContext(), "SE DEBE MOSTRAR INFORMACIÓN DEL FIRMANTE", Toast.LENGTH_SHORT).show();
    268302                                        showSignatureDetails(position, signers);
    269303                                }
     
    475509        }
    476510       
     511    // funcion para obtener el tipo mime de un archivo
     512    public static String getMimeType(String url)
     513    {
     514        String extension = url.substring(url.lastIndexOf("."));
     515        String mimeTypeMap = MimeTypeMap.getFileExtensionFromUrl(extension);
     516        String mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(mimeTypeMap);
     517        return mimeType;
     518    }
     519
     520       
     521        // funcion para lanzar un intent que abra un archivo
     522    private void openIt(String pdfFile, String mimeType) {
     523               
     524                Intent shareIntent = new Intent();
     525                shareIntent.setAction(Intent.ACTION_VIEW);
     526                File file = new File(pdfFile);
     527                Uri uri = Uri.fromFile(file);
     528                Log.i("DEBUG", file.getPath());
     529                shareIntent.setDataAndType(uri, mimeType);             
     530                startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.open_it_using)));
     531        }
    477532       
    478533}
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/PKCS12ToDecryptActivity.java

    rc14b8d2 rba6bc7c  
    133133            if (scheme.equals("file")) {
    134134                Log.d("PKCS12ToDecryptActivity: ", "scheme == file");
    135                 Toast.makeText(getApplicationContext(), "Descifrar archivo: "+data.getPath(), Toast.LENGTH_SHORT).show();
     135                //Toast.makeText(getApplicationContext(), "Descifrar archivo: "+data.getPath(), Toast.LENGTH_SHORT).show();
    136136         
    137137                // obtener archivo a descifrar
     
    488488                d.show();
    489489               
    490                 Toast.makeText(getApplicationContext(), "PKCS12ToDecryptActivity - PKCS12: "+pkcs12File, Toast.LENGTH_SHORT).show();
     490                //Toast.makeText(getApplicationContext(), "PKCS12ToDecryptActivity - PKCS12: "+pkcs12File, Toast.LENGTH_SHORT).show();
    491491               
    492492                break;         
     
    526526                // chequear disponibilidad de directorio de certificados
    527527            if (!checkCertificatesDirectoryAvailability()){
    528                 Toast.makeText(getApplicationContext(), "PKCS12ToDecryptActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
     528                //Toast.makeText(getApplicationContext(), "PKCS12ToDecryptActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
    529529               
    530530                finish();
     
    564564                // We can read and write the media
    565565                mExternalStorageAvailable = mExternalStorageWriteable = true;
    566                 Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
     566                //Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
    567567               
    568568                // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de
     
    584584                mExternalStorageAvailable = true;
    585585                mExternalStorageWriteable = false;
    586                 Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
     586                //Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
    587587               
    588588                builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:");
     
    593593                //  to know is we can neither read nor write
    594594                mExternalStorageAvailable = mExternalStorageWriteable = false;
    595                 Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
     595                //Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
    596596               
    597597                builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:");                     
     
    629629        {
    630630            e.printStackTrace();
    631             Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     631            //Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     632            Toast.makeText(this, "No se pudo iniciar el sistema de archivos. ¿Está la SDCARD montada?", Toast.LENGTH_LONG).show();
    632633            return false;
    633634        }
     
    712713        private void decryptFile(final String fileToDecrypt, final String pkcs12File, final String pkcs12Password) {
    713714               
    714                 Toast.makeText(getApplicationContext(), "Decrypting file: " + fileToDecrypt, Toast.LENGTH_SHORT).show();
     715                //Toast.makeText(getApplicationContext(), "Decrypting file: " + fileToDecrypt, Toast.LENGTH_SHORT).show();
    715716               
    716717                // -----------------------------
     
    885886                        m_sdoc = digFac.readSignedDocFromStreamOfType(selectedFile, false);
    886887                        Log.d("----", "leyo el ddoc");
    887                         Toast.makeText(getApplicationContext(), "leyó el ddoc", Toast.LENGTH_SHORT).show();
     888                        //Toast.makeText(getApplicationContext(), "leyó el ddoc", Toast.LENGTH_SHORT).show();
    888889                       
    889890                        selectedFile.close();
     
    11961197            public void onClick(DialogInterface dialog, int id) {
    11971198                // User clicked OK button                                               
    1198                 Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();
     1199                //Toast.makeText(getApplicationContext(), "User clicked OK button", Toast.LENGTH_LONG).show();
    11991200                finish();
    12001201               
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/SelectCertificateToEncryptActivity.java

    rc14b8d2 rba6bc7c  
    462462                certificateToEncrypt = SelectCertificateToEncryptActivity.this.selected.getAbsolutePath();
    463463               
    464                 Toast.makeText(getApplicationContext(), "SelectCertificateToEncryptActivity: "+certificateToEncrypt, Toast.LENGTH_SHORT).show();
     464                //Toast.makeText(getApplicationContext(), "SelectCertificateToEncryptActivity: "+certificateToEncrypt, Toast.LENGTH_SHORT).show();
    465465               
    466466               
     
    499499        private void encryptFile(final String fileToEncrypt, final String certificateToEncrypt) {
    500500               
    501                 Toast.makeText(getApplicationContext(), "Encrypting file: " + fileToEncrypt, Toast.LENGTH_SHORT).show();
     501                //Toast.makeText(getApplicationContext(), "Encrypting file: " + fileToEncrypt, Toast.LENGTH_SHORT).show();
    502502               
    503503               
    504504                // chequear disponibilidad de directorio de certificados
    505505            if (!checkCertificatesDirectoryAvailability()){
    506                 Toast.makeText(getApplicationContext(), "SelectCertificateToEncryptActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
     506                //Toast.makeText(getApplicationContext(), "SelectCertificateToEncryptActivity: directorio no disponible", Toast.LENGTH_SHORT).show();
    507507               
    508508                finish();
     
    655655                       
    656656                        outFile = encrypted_dir_files + fIn.getName()+".cdoc";
    657                         Toast.makeText(getApplicationContext(), "outFile: " + outFile, Toast.LENGTH_SHORT).show();
     657                        //Toast.makeText(getApplicationContext(), "outFile: " + outFile, Toast.LENGTH_SHORT).show();
    658658                       
    659659                       
     
    876876                // We can read and write the media
    877877                mExternalStorageAvailable = mExternalStorageWriteable = true;
    878                 Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
     878                //Toast.makeText(getApplicationContext(), "We can read and write the media", Toast.LENGTH_SHORT).show();
    879879               
    880880                // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de
     
    896896                mExternalStorageAvailable = true;
    897897                mExternalStorageWriteable = false;
    898                 Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
     898                //Toast.makeText(getApplicationContext(), "We can only read the media", Toast.LENGTH_SHORT).show();
    899899               
    900900                builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:");
     
    905905                //  to know is we can neither read nor write
    906906                mExternalStorageAvailable = mExternalStorageWriteable = false;
    907                 Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
     907                //Toast.makeText(getApplicationContext(), "we can neither read nor write", Toast.LENGTH_SHORT).show();
    908908               
    909909                builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:");                     
     
    941941        {
    942942            e.printStackTrace();
    943             Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     943            //Toast.makeText(this, "Could not initiate File System.. Is Sdcard mounted properly?", Toast.LENGTH_LONG).show();
     944            Toast.makeText(this, "No se pudo iniciar el sistema de archivos. ¿Está la SDCARD montada?", Toast.LENGTH_LONG).show();
    944945            return false;
    945946        }
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/TibisayMovilActivity.java

    r8fcfbf1 rba6bc7c  
    8686                                // seleccion de verificar
    8787                                if(function.equals(getString(R.string.verificar))) {
    88                                         Toast.makeText(context, "VERIFICAR", duration).show();
     88                                        //Toast.makeText(context, "VERIFICAR", duration).show();
    8989                                        verifyBDOCSignedFile();
    9090                                }
     
    9292                                // seleccion de cifrar
    9393                                if(function.equals(getString(R.string.cifrar))) {
    94                                         Toast.makeText(context, "CIFRAR", duration).show();
     94                                        //Toast.makeText(context, "CIFRAR", duration).show();
    9595                                        encryptFile();
    9696                                }
     
    9898                                // seleccion de descifrar
    9999                                if(function.equals(getString(R.string.descifrar))) {
    100                                         Toast.makeText(context, "DESCIFRAR", duration).show();
     100                                        //Toast.makeText(context, "DESCIFRAR", duration).show();
    101101                                        decryptFile();
    102102                                }
     
    104104                                // seleccion de gestionar certificados 
    105105                                if (function.equals(getString(R.string.certificados))){
    106                                         Toast.makeText(context, "Gestionar repositorio", duration).show();                                     
     106                                        //Toast.makeText(context, "Gestionar repositorio", duration).show();                                   
    107107                                        certificate_dialog.show();
    108108                                       
     
    111111                                // seleccion de compartir archivo
    112112                                if (function.equals(getString(R.string.compartir))){
    113                                         Toast.makeText(context, "Compartir Archivo", duration).show();
     113                                        //Toast.makeText(context, "Compartir Archivo", duration).show();
    114114                                        share_dialog.show();
    115115                               
Note: See TracChangeset for help on using the changeset viewer.