DownloadManager de fato ja é uma boa lib pra fazer Download, tbm recomendo...
Em seg, 11 de mai de 2015 às 11:09, Jonas Alves <jonasfa@gmail.com> escreveu:
-- Pra quê reinventar a roda?
http://developer.android.com/reference/android/app/DownloadManager.htmlEm seg, 11 de mai de 2015 12:05, Gorio <goriofab@gmail.com> escreveu:--
// le o arquivo com 8k buffer input = new BufferedInputStream(url.openStream(), 10 * 1024); // Output stream to write file in SD card output = new FileOutputStream(mFile);--Em 11 de maio de 2015 11:57, Jade Costa <jademcosta@gmail.com> escreveu:Não li seu código pq to no cel, mas provavelmente vc deve estar usando um inputstream q não salva em disco, e sim na memória...
Abs,
Em 11/05/2015 11:51, "Gorio" <goriofab@gmail.com> escreveu:----Bom dia,Estou com um dilema em uma classe que criei para efetuar download de arquivos via App.A classe está no link abaixoO problema esta ocorrendo sempre quando tento baixar um vídeo, chega em uma determinada porcentagem ele fecha o app e da o seguinte erro..Caused by: java.lang.OutOfMemoryErrorAlguém poderia me dar um help para solucionar o problema de OutOfMemory ?Exemplo de vídeo:
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/d/optout.
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/d/optout.
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/d/optout.
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/d/optout.
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/d/optout.







0 comentários:
Postar um comentário