title: uploading picture using aws sdk for android
body: <p>Im trying to upload a image using AWS sdk for Android. i get the following errors</p>
  
  <pre><code>12-28 16:41:41.476: E/AndroidRuntime(1098): FATAL EXCEPTION: main
  12-28 16:41:41.476: E/AndroidRuntime(1098): java.lang.NoClassDefFoundError: com.amazonaws.services.s3.AmazonS3Client
  12-28 16:41:41.476: E/AndroidRuntime(1098):     at com.example.s3uploader.MainActivity.onActivityResult(MainActivity.java:92)
  12-28 16:41:41.476: E/AndroidRuntime(1098):     at android.app.Activity.dispatchActivityResult(Activity.java:5322)
  </code></pre>
  
  <p>any help please</p>
  
  <pre><code>switch(requestCode) 
      { 
               case SELECT_PHOTO:
               if(resultCode == RESULT_OK)
  
               { 
                   Cursor cursor = null;
                    try { 
                        Uri selectedImage = imageReturnedIntent.getData();
                      String[] proj = { MediaStore.Images.Media.DATA };
                      cursor = this.getContentResolver().query(selectedImage,  proj, null, null, null);
                      int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
                      cursor.moveToFirst();
                      String path =cursor.getString(column_index);
                      Log.d("TAG", "VALUE OF PATH  = " + path);
  
                      AmazonS3Client s3Client = new AmazonS3Client( new BasicAWSCredentials("hut69988sj98jiok", "jujhyt893807520" ) );
  
  
                      PutObjectRequest por = new PutObjectRequest( "mybucket", "25Upload", new java.io.File( path) );  
                      s3Client.putObject( por );
  
  
  
                    } finally {
                      if (cursor != null) {
                        cursor.close();
                      }
                    }
  
               }
  
  
  
      }
  </code></pre>