Changeset 9866c0f in dispositivos_moviles for TibisayMovil/src/ve/gob
- Timestamp:
- Nov 13, 2013, 10:54:18 AM (11 years ago)
- 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. - 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; 1 package ve.gob.cenditel.tibisaymovil; 2 2 3 3 import android.app.Activity; -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/BDOCVerifyResultActivity.java
re68708b rba6bc7c 171 171 172 172 if (intent != null) { 173 Toast.makeText(getApplicationContext(), "intent != null", Toast.LENGTH_SHORT).show();173 //Toast.makeText(getApplicationContext(), "intent != null", Toast.LENGTH_SHORT).show(); 174 174 175 175 final android.net.Uri data = intent.getData (); 176 176 177 177 if (data != null) { 178 Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show();178 //Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show(); 179 179 180 180 // verificar el tipo de scheme … … 183 183 // verificacion de un archivo que esta en el dispositivo 184 184 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(); 186 186 187 187 // verificar el archivo … … 192 192 doBdocVerification(data.getPath()); 193 193 }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(); 195 195 196 196 } … … 200 200 // verificacion de un archivo que se debe descargar 201 201 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(); 203 203 204 Toast.makeText(getApplicationContext(), "externalStorage: "+Environment.getExternalStorageDirectory().toString(), Toast.LENGTH_SHORT).show();204 //Toast.makeText(getApplicationContext(), "externalStorage: "+Environment.getExternalStorageDirectory().toString(), Toast.LENGTH_SHORT).show(); 205 205 206 206 urlhttps = data.toString(); … … 211 211 //Toast.makeText(getApplicationContext(), "****despues de execute()", Toast.LENGTH_SHORT).show(); 212 212 // 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(); 214 214 } 215 215 … … 224 224 mimeTypeFileToVerify = getMimeType(fileToVerify); 225 225 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(); 228 228 229 229 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(); 231 231 // ejecutar la verificacion 232 232 doBdocVerification(fileToVerify); 233 233 }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(); 235 235 236 236 // ejecutar la verificacion del pdf firmado … … 242 242 243 243 }else{ 244 Toast.makeText(getApplicationContext(), "intent == null", Toast.LENGTH_SHORT).show();244 //Toast.makeText(getApplicationContext(), "intent == null", Toast.LENGTH_SHORT).show(); 245 245 } 246 246 … … 307 307 private void doBdocVerification(String absolutePathFileToVerify){ 308 308 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(); 310 310 try { 311 311 Log.d("doBdocVerification:", "Inicializando jdigidoc ..."); … … 425 425 int position, long id) { 426 426 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(); 428 428 openIt(absolutePathToOpen, getMimeType(absolutePathToOpen)); 429 429 … … 465 465 //String signer = parent.getItemAtPosition(position).toString(); 466 466 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(); 468 468 showSignatureDetails(position, signers); 469 469 } … … 746 746 { 747 747 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(); 749 750 return false; 750 751 } … … 1037 1038 protected void onPostExecute(ArrayList<String> result) { 1038 1039 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(); 1040 1041 1041 1042 // ocurrio una excepcion 1042 1043 if (result.get(0).equals("1")){ 1043 1044 1044 Toast.makeText(getApplicationContext(), "onPostExecute: dentro del if" , Toast.LENGTH_LONG).show();1045 //Toast.makeText(getApplicationContext(), "onPostExecute: dentro del if" , Toast.LENGTH_LONG).show(); 1045 1046 1046 1047 AlertDialog.Builder builder = new AlertDialog.Builder(BDOCVerifyResultActivity.this);1047 // ocurrio un problema 1048 AlertDialog.Builder builder = new AlertDialog.Builder(BDOCVerifyResultActivity.this); 1048 1049 1049 1050 1050 builder.setMessage(result.get(1)).setTitle("Error al descargar el archivo");1051 builder.setMessage(result.get(1)).setTitle("Error al descargar el archivo"); 1051 1052 1052 builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {1053 1053 builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() { 1054 public void onClick(DialogInterface dialog, int id) { 1054 1055 // User clicked OK button 1055 1056 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 1072 1071 }else{ 1073 1072 // no ocurrió excepcion -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/CertificateToLoadActivity.java
rd5ab40f rba6bc7c 429 429 fileToLoad = CertificateToLoadActivity.this.selected.getAbsolutePath(); 430 430 431 Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: "+fileToLoad, Toast.LENGTH_SHORT).show();431 //Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: "+fileToLoad, Toast.LENGTH_SHORT).show(); 432 432 433 433 loadCertificate(fileToLoad); … … 457 457 // We can read and write the media 458 458 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(); 460 460 461 461 // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de … … 477 477 mExternalStorageAvailable = true; 478 478 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(); 480 480 481 481 builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:"); … … 486 486 // to know is we can neither read nor write 487 487 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(); 489 489 490 490 builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:"); … … 521 521 { 522 522 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(); 524 525 return false; 525 526 } … … 559 560 // chequear disponibilidad de directorio de certificados 560 561 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(); 562 563 563 564 finish(); … … 574 575 boolean [] keyUsage = recipientCertificate.getKeyUsage(); 575 576 576 Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: cerrificado leido", Toast.LENGTH_SHORT).show();577 //Toast.makeText(getApplicationContext(), "CertificateToLoadActivity: cerrificado leido", Toast.LENGTH_SHORT).show(); 577 578 578 579 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(); 580 581 581 582 showDialog("Error:", "El certificado seleccionado no tiene la extensión \"Cifrado de Clave \" (KeyEncipherment) para cifrado. " + … … 585 586 586 587 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(); 588 589 589 590 … … 591 592 if (compareCertificate(recipientCertificate)){ 592 593 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(); 594 595 595 596 showDialog("Información:", "El certificado ya existe en el repositorio. Se cancela la operación."); … … 696 697 public void onClick(DialogInterface dialog, int id) { 697 698 // 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(); 699 700 finish(); 700 701 -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/DownloaderActivity.java
r56b06e2 rba6bc7c 118 118 119 119 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(); 121 121 122 122 final android.net.Uri data = intent.getData (); 123 123 124 124 if (data != null) { 125 Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show();125 //Toast.makeText(getApplicationContext(), "data != null", Toast.LENGTH_SHORT).show(); 126 126 127 127 // verificar el tipo de scheme … … 130 130 // verificacion de un archivo que esta en el dispositivo 131 131 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(); 133 133 134 134 // verificar el archivo … … 139 139 //doBdocVerification(data.getPath()); 140 140 }else{ 141 Toast.makeText(getApplicationContext(), "¡Por Implementar!", Toast.LENGTH_SHORT).show();141 //Toast.makeText(getApplicationContext(), "¡Por Implementar!", Toast.LENGTH_SHORT).show(); 142 142 143 143 } … … 147 147 // verificacion de un archivo que se debe descargar 148 148 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(); 150 150 151 151 //Toast.makeText(getApplicationContext(), "externalStorage: "+Environment.getExternalStorageDirectory().toString(), Toast.LENGTH_SHORT).show(); … … 171 171 172 172 173 Toast.makeText(getApplicationContext(), "fileToVerify bundle!=null: "+fileToVerify, Toast.LENGTH_SHORT).show();173 //Toast.makeText(getApplicationContext(), "fileToVerify bundle!=null: "+fileToVerify, Toast.LENGTH_SHORT).show(); 174 174 175 175 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(); 177 177 // ejecutar la verificacion 178 178 //doBdocVerification(fileToVerify); 179 179 }else{ 180 Toast.makeText(getApplicationContext(), "¡Por Implementar!", Toast.LENGTH_SHORT).show();180 //Toast.makeText(getApplicationContext(), "¡Por Implementar!", Toast.LENGTH_SHORT).show(); 181 181 182 182 } … … 186 186 187 187 }else{ 188 Toast.makeText(getApplicationContext(), "intent == null", Toast.LENGTH_SHORT).show();188 //Toast.makeText(getApplicationContext(), "intent == null", Toast.LENGTH_SHORT).show(); 189 189 } 190 190 … … 209 209 { 210 210 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(); 212 213 return false; 213 214 } … … 337 338 for (int l=0; l < fields.length; l++) { 338 339 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(); 341 342 342 343 caInput = new BufferedInputStream(getResources().openRawResource(fields[l].getInt(null))); … … 544 545 545 546 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(); 547 548 // pasar como segundo argmento que se acepta que el sertivor es desconocido 548 549 new DownloadFileAsync().execute(urlhttps, "true"); … … 563 564 }else{ 564 565 // 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(); 566 567 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(); 570 571 571 572 // lanzar activity para mostrar resultados de verificacion 572 573 Intent intent = new Intent(DownloaderActivity.this, BDOCVerifyResultActivity.class); 573 574 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(); 575 576 576 577 File f = new File(result.get(1)); … … 579 580 intent.putExtra("fileExtension", fileExtension); 580 581 581 Toast.makeText(getApplicationContext(), "putExtra2: "+fileExtension, Toast.LENGTH_LONG).show();582 //Toast.makeText(getApplicationContext(), "putExtra2: "+fileExtension, Toast.LENGTH_LONG).show(); 582 583 583 584 startActivity(intent); -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/EncryptionCertificatesActivity.java
rfd4a5b9 rba6bc7c 23 23 import android.os.Bundle; 24 24 import android.os.Environment; 25 import android.annotation.SuppressLint; 25 26 import android.app.Activity; 26 27 import android.app.AlertDialog; … … 190 191 191 192 //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(); 193 194 194 195 // llamar a función para cargar certificado … … 205 206 //shareIt(); 206 207 207 Toast.makeText(getApplicationContext(), "eliminar un certificado", Toast.LENGTH_SHORT).show();208 //Toast.makeText(getApplicationContext(), "eliminar un certificado", Toast.LENGTH_SHORT).show(); 208 209 209 210 if (certificateSelectedIndex == -1){ … … 218 219 public void onClick(DialogInterface dialog, int id) { 219 220 // 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(); 221 222 } 222 223 }); … … 234 235 235 236 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) { 237 239 // 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(); 239 241 240 242 // funcion para eliminar el certificado … … 262 264 } 263 265 264 Toast.makeText(getApplicationContext(), "**archivo a borrar: "+pathToErase, Toast.LENGTH_LONG).show();266 //Toast.makeText(getApplicationContext(), "**archivo a borrar: "+pathToErase, Toast.LENGTH_LONG).show(); 265 267 266 268 … … 272 274 public void onClick(DialogInterface dialog, int id) { 273 275 // 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(); 275 277 276 278 labelRemoveCertificate.setVisibility(View.GONE); … … 410 412 { 411 413 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(); 413 416 return false; 414 417 } … … 444 447 // We can read and write the media 445 448 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(); 447 450 448 451 // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de … … 464 467 mExternalStorageAvailable = true; 465 468 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(); 467 470 468 471 builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:"); … … 473 476 // to know is we can neither read nor write 474 477 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(); 476 479 477 480 builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:"); -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/EncryptionResultActivity.java
r0a5cb8c rba6bc7c 122 122 public void onClick(DialogInterface dialog, int id) { 123 123 // 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(); 125 125 126 126 } -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/FileToDecryptActivity.java
rfd4a5b9 rba6bc7c 408 408 fileToDecrypt = FileToDecryptActivity.this.selected.getAbsolutePath(); 409 409 410 Toast.makeText(getApplicationContext(), "FileToDecryptActivity: "+fileToDecrypt, Toast.LENGTH_SHORT).show();410 //Toast.makeText(getApplicationContext(), "FileToDecryptActivity: "+fileToDecrypt, Toast.LENGTH_SHORT).show(); 411 411 412 412 … … 450 450 // chequear disponibilidad de directorio de certificados 451 451 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(); 453 453 454 454 finish(); … … 488 488 // We can read and write the media 489 489 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(); 491 491 492 492 // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de … … 508 508 mExternalStorageAvailable = true; 509 509 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(); 511 511 512 512 builder.setMessage("Directorio "+decryptedDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:"); … … 517 517 // to know is we can neither read nor write 518 518 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(); 520 520 521 521 builder.setMessage("Directorio "+decryptedDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:"); … … 553 553 { 554 554 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(); 556 557 return false; 557 558 } -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/FileToEncryptActivity.java
rae1bcd1 rba6bc7c 437 437 fileToEncrypt = FileToEncryptActivity.this.selected.getAbsolutePath(); 438 438 439 Toast.makeText(getApplicationContext(), "FileToEncryptActivity: "+fileToEncrypt, Toast.LENGTH_SHORT).show();439 //Toast.makeText(getApplicationContext(), "FileToEncryptActivity: "+fileToEncrypt, Toast.LENGTH_SHORT).show(); 440 440 441 441 … … 494 494 // chequear disponibilidad de directorio de certificados 495 495 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(); 497 497 498 498 finish(); … … 532 532 // We can read and write the media 533 533 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(); 535 535 536 536 // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de … … 552 552 mExternalStorageAvailable = true; 553 553 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(); 555 555 556 556 builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:"); … … 561 561 // to know is we can neither read nor write 562 562 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(); 564 564 565 565 builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:"); … … 597 597 { 598 598 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(); 600 601 return false; 601 602 } -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/FileToShareActivity.java
rc231890 rba6bc7c 447 447 fileToShare = FileToShareActivity.this.selected.getAbsolutePath(); 448 448 449 Toast.makeText(getApplicationContext(), "FileToShareActivity: "+fileToShare, Toast.LENGTH_SHORT).show();449 //Toast.makeText(getApplicationContext(), "FileToShareActivity: "+fileToShare, Toast.LENGTH_SHORT).show(); 450 450 451 451 -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/FilesToPDFSignActivity.java
r2ff9cec rba6bc7c 453 453 @Override 454 454 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(); 456 456 457 457 this.requestCode = requestCode; 458 458 this.resultCode = resultCode; 459 459 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(); 461 461 462 462 … … 485 485 486 486 if (resultCode == RESULT_OK) { 487 Toast.makeText(FilesToPDFSignActivity.this, "aqui", Toast.LENGTH_LONG).show();487 //Toast.makeText(FilesToPDFSignActivity.this, "aqui", Toast.LENGTH_LONG).show(); 488 488 489 489 boolean embedSignature = data.getBooleanExtra(IntentExtraField.EMBED_SIGNATURE_IN_PDF, false); -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/PDFVerifyResultActivity.java
rc14b8d2 r4c4873f 4 4 import java.io.File; 5 5 import java.io.InputStream; 6 7 6 8 7 import android.net.Uri; … … 17 16 import android.view.Window; 18 17 import android.view.View.OnClickListener; 18 import android.webkit.MimeTypeMap; 19 19 import android.widget.AdapterView; 20 20 import android.widget.BaseAdapter; … … 39 39 import java.util.ArrayList; 40 40 import java.util.Random; 41 42 41 import java.security.cert.X509Certificate; 43 42 import java.text.SimpleDateFormat; … … 75 74 76 75 // 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 79 99 TextView pdfName = (TextView) this.findViewById(R.id.filename_text); 80 100 pdfName.setText(pdfToVerify); … … 82 102 // ejecutar el proceso de verificacion del pdf 83 103 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 84 118 85 119 // habilitar opciones de botones inferiores … … 136 170 Log.d("VerificadorPDF", "af.getSignatureNames()"); 137 171 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(); 139 173 Log.d("VerificadorPDF", Integer.toString(names.size())); 140 174 … … 174 208 for (int l=0; l < fields.length; l++) { 175 209 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(); 178 212 179 213 caInput = new BufferedInputStream(getResources().openRawResource(fields[l].getInt(null))); … … 265 299 int position, long id) { 266 300 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(); 268 302 showSignatureDetails(position, signers); 269 303 } … … 475 509 } 476 510 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 } 477 532 478 533 } -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/PKCS12ToDecryptActivity.java
rc14b8d2 rba6bc7c 133 133 if (scheme.equals("file")) { 134 134 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(); 136 136 137 137 // obtener archivo a descifrar … … 488 488 d.show(); 489 489 490 Toast.makeText(getApplicationContext(), "PKCS12ToDecryptActivity - PKCS12: "+pkcs12File, Toast.LENGTH_SHORT).show();490 //Toast.makeText(getApplicationContext(), "PKCS12ToDecryptActivity - PKCS12: "+pkcs12File, Toast.LENGTH_SHORT).show(); 491 491 492 492 break; … … 526 526 // chequear disponibilidad de directorio de certificados 527 527 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(); 529 529 530 530 finish(); … … 564 564 // We can read and write the media 565 565 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(); 567 567 568 568 // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de … … 584 584 mExternalStorageAvailable = true; 585 585 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(); 587 587 588 588 builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:"); … … 593 593 // to know is we can neither read nor write 594 594 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(); 596 596 597 597 builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:"); … … 629 629 { 630 630 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(); 632 633 return false; 633 634 } … … 712 713 private void decryptFile(final String fileToDecrypt, final String pkcs12File, final String pkcs12Password) { 713 714 714 Toast.makeText(getApplicationContext(), "Decrypting file: " + fileToDecrypt, Toast.LENGTH_SHORT).show();715 //Toast.makeText(getApplicationContext(), "Decrypting file: " + fileToDecrypt, Toast.LENGTH_SHORT).show(); 715 716 716 717 // ----------------------------- … … 885 886 m_sdoc = digFac.readSignedDocFromStreamOfType(selectedFile, false); 886 887 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(); 888 889 889 890 selectedFile.close(); … … 1196 1197 public void onClick(DialogInterface dialog, int id) { 1197 1198 // 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(); 1199 1200 finish(); 1200 1201 -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/SelectCertificateToEncryptActivity.java
rc14b8d2 rba6bc7c 462 462 certificateToEncrypt = SelectCertificateToEncryptActivity.this.selected.getAbsolutePath(); 463 463 464 Toast.makeText(getApplicationContext(), "SelectCertificateToEncryptActivity: "+certificateToEncrypt, Toast.LENGTH_SHORT).show();464 //Toast.makeText(getApplicationContext(), "SelectCertificateToEncryptActivity: "+certificateToEncrypt, Toast.LENGTH_SHORT).show(); 465 465 466 466 … … 499 499 private void encryptFile(final String fileToEncrypt, final String certificateToEncrypt) { 500 500 501 Toast.makeText(getApplicationContext(), "Encrypting file: " + fileToEncrypt, Toast.LENGTH_SHORT).show();501 //Toast.makeText(getApplicationContext(), "Encrypting file: " + fileToEncrypt, Toast.LENGTH_SHORT).show(); 502 502 503 503 504 504 // chequear disponibilidad de directorio de certificados 505 505 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(); 507 507 508 508 finish(); … … 655 655 656 656 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(); 658 658 659 659 … … 876 876 // We can read and write the media 877 877 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(); 879 879 880 880 // Crear directorio CertificatesToEncrypt donde se almacenan los certificados de … … 896 896 mExternalStorageAvailable = true; 897 897 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(); 899 899 900 900 builder.setMessage("Directorio "+certificatesDir+ " montado de solo lectura. No se pueden almancenar certificados.").setTitle("Error:"); … … 905 905 // to know is we can neither read nor write 906 906 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(); 908 908 909 909 builder.setMessage("Directorio "+certificatesDir+ " no está disponible. No se pueden almancenar certificados.").setTitle("Error:"); … … 941 941 { 942 942 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(); 944 945 return false; 945 946 } -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/TibisayMovilActivity.java
r8fcfbf1 rba6bc7c 86 86 // seleccion de verificar 87 87 if(function.equals(getString(R.string.verificar))) { 88 Toast.makeText(context, "VERIFICAR", duration).show();88 //Toast.makeText(context, "VERIFICAR", duration).show(); 89 89 verifyBDOCSignedFile(); 90 90 } … … 92 92 // seleccion de cifrar 93 93 if(function.equals(getString(R.string.cifrar))) { 94 Toast.makeText(context, "CIFRAR", duration).show();94 //Toast.makeText(context, "CIFRAR", duration).show(); 95 95 encryptFile(); 96 96 } … … 98 98 // seleccion de descifrar 99 99 if(function.equals(getString(R.string.descifrar))) { 100 Toast.makeText(context, "DESCIFRAR", duration).show();100 //Toast.makeText(context, "DESCIFRAR", duration).show(); 101 101 decryptFile(); 102 102 } … … 104 104 // seleccion de gestionar certificados 105 105 if (function.equals(getString(R.string.certificados))){ 106 Toast.makeText(context, "Gestionar repositorio", duration).show();106 //Toast.makeText(context, "Gestionar repositorio", duration).show(); 107 107 certificate_dialog.show(); 108 108 … … 111 111 // seleccion de compartir archivo 112 112 if (function.equals(getString(R.string.compartir))){ 113 Toast.makeText(context, "Compartir Archivo", duration).show();113 //Toast.makeText(context, "Compartir Archivo", duration).show(); 114 114 share_dialog.show(); 115 115
Note: See TracChangeset
for help on using the changeset viewer.