Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Upload de fotos

Pra tirar foto eu faço assim:
Uri outputFileUri = Uri.fromFile(fileResult);
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, outputFileUri);
startActivityForResult(cameraIntent, 1001);

Depois trato o "onActivityResult" e pronto.


Pra enviar a foto eu faço um post com file e pronto. :)

Simples e fácil!


Em 1 de julho de 2013 15:32, Gink Labrev <gink.labrev@gmail.com> escreveu:
Pessoal,

Qual o jeito mais simples de tirar uma foto e fazer o upload ?

Já  fiz isso, mas foi muito trabalhoso, tendo que usar WeakReference e Scan Media. Não tem alguma lib pronta para isso ? Afinal é uma das coisas mais comuns para Android.

Abs

--
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.
 
 



--
Abraços,
Pedro Subutzki
__________________________________________
HADI - Makes SQLite in Android easy and simple
https://github.com/PepeuCps/Hadi

--
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