title: how to upload images from sd card by picking over them in android
body: <p>in my app i am trying to send images to a server that are stored in sd card. When i click a button it opens the sd card and shows the image in a grid view. From that the i want to upload the image which i am touching on it. I know to upload an image to a server, but i dont know to select an image from the sd card please help me.....</p>
  
  <p>Following is my code....</p>
  
  <pre><code>public void library()
  {
     Intent myIntent = new Intent();
     myIntent.setType("image/*");
     myIntent.setAction(Intent.ACTION_GET_CONTENT);
     startActivityForResult(Intent.createChooser(myIntent,"Select Picture"), 101);
  }
  public void onActivityResult(int requestCode, int resultCode, Intent myIntent)
  {
      Intent data = null;
      if (requestCode == 101 &amp;&amp; data != null) 
      {
      Uri selctedImageUri =data.getData(); 
      }
      else 
      {
          Toast toast = Toast.makeText(this, "No Image is selected.", Toast.LENGTH_LONG);
      toast.show();
      }
   }
  </code></pre>
  
  <p>how to proceed please help me.....</p>