Changeset 4c4873f in dispositivos_moviles
- Timestamp:
- Nov 12, 2013, 3:35:18 PM (10 years ago)
- Branches:
- master
- Children:
- 58c7f6a
- Parents:
- ba6bc7c
- Location:
- TibisayMovil
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TibisayMovil/AndroidManifest.xml
re68708b r4c4873f 221 221 android:name="ve.gob.cenditel.tibisaymovil.PDFVerifyResultActivity" 222 222 android:label="@string/title_activity_pdfverify_result" > 223 <intent-filter> 224 <action android:name="android.intent.action.VIEW" /> 225 226 <category android:name="android.intent.category.DEFAULT" /> 227 228 <data android:scheme="file" /> 229 <data android:mimeType="*/*" /> 230 <data android:host="*" /> 231 <data android:pathPattern=".*\\.pdf" /> 232 </intent-filter> 233 223 234 </activity> 224 235 </application> -
TibisayMovil/res/values/strings.xml
r16fd839 r4c4873f 182 182 <string name="label_archivo_a_descifrar">Archivo a descifrar</string> 183 183 <string name="label_archivo_descifrado">Archivo original</string> 184 <string name="title_activity_pdfverify_result"> PDFVerifyResultActivity</string>184 <string name="title_activity_pdfverify_result">Tibisay Móvil</string> 185 185 186 186 </resources> -
TibisayMovil/src/ve/gob/cenditel/tibisaymovil/PDFVerifyResultActivity.java
rba6bc7c r4c4873f 74 74 75 75 // obtener el archivo pdf a verificar 76 Bundle bundle = getIntent().getExtras(); 77 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 78 99 TextView pdfName = (TextView) this.findViewById(R.id.filename_text); 79 100 pdfName.setText(pdfToVerify);
Note: See TracChangeset
for help on using the changeset viewer.