Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] pdf não é apresentado

O tamanho do pdf está ok. Está tudo certo. O problema é só a apresentação pois ele vem todo em branco


Em 27 de junho de 2013 16:38, Carlos Alberto Pinto <caneto@gmail.com> escreveu:
Desculpe, mais como existe algum sdk pois ja tentei usar e nao consegui nada.


Carlos Alberto
Desenvolvedor Web/PHP/Vb.Net/C#
Iniciando projetos em Android/Java
Desenvolvedor Senior - CTIS
Alocado IBGE/GESIG/CODES





2013/6/27 Diego Lopes Marques da Silva <diego.lopes@dce.ufpb.br>
Estou utilizando o adobe reader mesmo



2013/6/27 Carlos Alberto Pinto <caneto@gmail.com>
Oi , você usa qual classe para visualizar os PDFs, pois a principio pelo que o código está mostrando deveria funcionar.

Obrigado
Carlos


Carlos Alberto
Desenvolvedor Web/PHP/Vb.Net/C#
Iniciando projetos em Android/Java
Desenvolvedor Senior - CTIS
Alocado IBGE/GESIG/CODES





2013/6/27 Diego Lopes Marques da Silva <diego.lopes@dce.ufpb.br>
Pessoal,

Estou com uma duvida que acredito que seja besta.
Estou pegando o conteúdo de um pdf, porém ele abre todo vazio.

Alguem pode me ajudar?:


File f = new File(Environment.getExternalStorageDirectory().getPath() + "/diretorioTeste/"+ docArray[tmp].getFile().replaceAll("\\s", ""));
                        File dir = new File(Environment.getExternalStorageDirectory().getPath() + "/diretorioTeste/");
                        //dir.mkdir();
                        if(!f.exists() && !dir.mkdir()){
                            f.createNewFile();
                            FileOutputStream fos = new FileOutputStream(f);
                            fos.write(response.getBytes());
                            fos.flush();
                            fos.close();
                           
                           
                        }
                        PDFDecoder.decodeStream(dict, streamBuf)
                        Uri path = Uri.fromFile(f);
                        Intent intent = new Intent(Intent.ACTION_VIEW);
                        intent.setDataAndType(path, "application/pdf");
                        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

                        try {
                            startActivity(intent);
...


--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 





--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 




--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário