Michel, pelo app "Fotos" do Kitkat vc não está recebendo URIs do tipo "content"?
Exemplo: content://media/external/images/media/93499
Em 17 de junho de 2014 18:59, Michel Braz de Morais <michel.braz.morais@gmail.com> escreveu:
Valeu galera!!Se mais alguém precisar tá na mão ....Esta aparecendo somente imagens para ser selecionado...Feito....Com o código sugerido do Gabriel e apenas colocando o filtro:
galleryIntent.setType("image/*");
att,
Michel Braz de MoraisAnalista / Desenvolvedor de sistemasEm 17 de junho de 2014 15:55, Michel Braz de Morais <michel.braz.morais@gmail.com> escreveu:
Retificando....
Fu funciona quando abro com a intent "fotos" ...
Quando abro com a intent "multimídia" ainda tem as opções de abrir vídeo..
Segue a imagem:Mas mesmo assim está melhor que antes...
Obrigado de qualquer forma Gabriel ...
Bora assistir o jogo..Em 17/06/2014 15:36, "Michel Braz de Morais" <michel.braz.morais@gmail.com> escreveu:
Agora só por curiosidade porque 8182?Valew Gabriel !!!Funcionou perfeitamente!!!att,
Michel Braz de MoraisAnalista / Desenvolvedor de sistemas2014-06-17 11:32 GMT-03:00 Gabriel Augusto <gabrielaugustodm@gmail.com>:Michel, uso esse código:private static final int SELECT_PICTURE = 8182;final Intent galleryIntent = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);final Intent chooserIntent = Intent.createChooser(galleryIntent, getString(R.string.add_img));startActivityForResult(chooserIntent, SELECT_PICTURE);
--Em 16 de junho de 2014 19:33, Michel Braz de Morais <michel.braz.morais@gmail.com> escreveu:
--Boa noite pessoal.Utilizo o seguinte código para carregar uma intent que ira carregar imagens do aparelho para selecionar uma:
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
instace.activity.startActivityForResult(intent,REQUEST_CODE);
Só que não importa o tipo de filtro que eu coloque:
intent.setType("image/*");
ou
intent.setType("image/*jpg");ou
intent.setType("image/*png");etc....Na Intent que aparece aparecem vídeos e imagens.Eu preciso que apareça somente imagem.Alguém tem alguma dica?
att,
Michel Braz de Morais
Analista / Desenvolvedor de sistemas
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.

gabrielaugustodm




0 comentários:
Postar um comentário