Vous êtes sur la page 1sur 3

<uses-permission

android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

private void CopyRawToSDCard(int id, String path) {


InputStream in = getResources().openRawResource(id);
FileOutputStream out = null;
try {
out = new FileOutputStream(path);
byte[] buff = new byte[1024];
int read = 0;
while ((read = in.read(buff)) > 0) {
out.write(buff, 0, read);
}
in.close();
out.close();
Log.i(TAG, "copyFile, success!");
} catch (FileNotFoundException e) {
Log.e(TAG, "copyFile FileNotFoundException " + e.getMessage());
} catch (IOException e) {
Log.e(TAG, "copyFile IOException " + e.getMessage());
}

CopyRawToSDCard(R.raw.samba, Environment.getExternalStorageDirectory() + "/samba.docx");


File pdfFile = new File(Environment.getExternalStorageDirectory(), "/samba.docx");//File path
if (pdfFile.exists()) { //Revisa si el archivo existe!
Uri pat = Uri.fromFile(pdfFile);
Intent intent = new Intent(Intent.ACTION_VIEW);
//define el tipo de archivo
intent.setDataAndType(pat, "application/pdf");
try {
startActivity(intent);
} catch (ActivityNotFoundException e) {
Toast.makeText(getBaseContext(), "No software for PDF", Toast.LENGTH_SHORT).show();
}
} else {
Toast.makeText(getBaseContext(), "No se encontro ningun archivo", Toast.LENGTH_SHORT).show();
}
INFRAESTRUCTURA
DE LA EMPRESA

ADMINISTRACIÓN DE Reclutamiento, contratación, capacitación , despidos.


RECURSOS HUMANOS

1. Optimizar operaciones 1. Optimizar plataforma 1. Logística


1. Software. 1. Página web. 1. Mejorar procesos de
DESARROLLO
TECNOLÓGICO 2. Hardware. 2. Servidor operación y
3. Base de datos. distribución.

1. Proveedores 1. Requerimientos de las


1. Financiación operaciones
ABASTECIMIENTO 2. Adquisición de 1. Inventario (Ventas).
productos.

Mercancías
1. Se usa programas
1. Empaque. Mercancía de big data para Satisfacción del
1. Recepción de conocer gustos del
empaquetada/ servicio al cliente.
mercancías. 2. Embalaje consumidor.
embalada
1. Correo
Gestión de 3. Control de 2. Se ofrece productos
2. Gestión de electrónico.
mercancías. inventario en los que puede
Servicio órdenes estar interesado el 2. Redes

Vous aimerez peut-être aussi