2

i am implemented this code image upload device only how can retrieve bitmap uri Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType("image/*"); startActivityForResult(photoPickerIntent, ACTIVITY_RESULT_IMAGE_SELECTED);

 protected void onActivityResult(int requestCode, int resultCode, Intent intent,Intent data, CharSequence Uri) 
 {
     super.onActivityResult(requestCode, resultCode, intent);

     if (requestCode == ACTIVITY_RESULT_IMAGE_SELECTED)
     {
             if (resultCode == RESULT_OK) {
                     Uri uri = intent.getData();
                     Object mBitmap = MediaStore.EXTRA_OUTPUT; //Media.//getBitmap(this.getContentResolver(),uri);
                     //EditText images=(EditText) findViewById(R.id.EditTextImages);
                   //  mImageUploadAdapter.addImage(uri);
                    // mImageUploadGridView.invalidateViews();
             }
     } i am implementing this code
satya
  • 27
  • 1
  • 11

1 Answers1

2

intent.getData() will return the URI of the Bitmap. If your question is about how you are to create a Bitmap Object from this URI you can take a look here.

Community
  • 1
  • 1
Samuh
  • 36,316
  • 26
  • 109
  • 116
  • ok ,its not working just error display method getBitmap(ContentResolver, Uri) is undefined for the type MediaStore.Audio.Media thank you very much – satya Feb 19 '10 at 11:02