On Sun, Jun 14, 2009 at 10:08 AM, fabbx<[email protected]> wrote:
>
> i'm trying to allow user to select an picture to upload to my website
> but i don't understand how i can get the choice of the user
>
> i'm here :
>
>        public void uploadPhoto() {
>                setContentView(R.layout.index);
>                Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
>                intent.setType("image/*");
>                startActivity(Intent.createChooser(intent, "Select picture"));

Use this instead:
http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent,%20int)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to