title: unable to find com.android.camera.CropImage activity in android
body: <p>I am trying to run PhotoStream sample from following link </p>
  
  <blockquote>
    <p><a href="http://android-developers.blogspot.com/2008/09/android-photostream.html" rel="noreferrer">http://android-developers.blogspot.com/2008/09/android-photostream.html</a></p>
  </blockquote>
  
  <p>But when i try to set the wallpaper of an image ( reference class ViewPhotoActivity.java) i am getting following error </p>
  
  <blockquote>
  <pre><code>android.content.ActivityNotFoundException:
  </code></pre>
    
    <p>Unable to find explicit activity class
    {com.android.camera/com.android.camera.CropImage};
    have you declared this activity in
    your AndroidManifest.xml?</p>
  </blockquote>
  
  <p>and i think the following code is causing the problem</p>
  
  <pre><code>final Intent intent = new Intent("com.android.camera.action.CROP");
  intent.setClassName("com.android.camera", "com.android.camera.CropImage");
  intent.setData(Uri.fromFile(mFile));
  intent.putExtra("outputX", width);
  intent.putExtra("outputY", height);
  intent.putExtra("aspectX", width);
  intent.putExtra("aspectY", height);
  intent.putExtra("scale", true);
  intent.putExtra("noFaceDetection", true);
  intent.putExtra("output", Uri.parse("file:/" + mFile.getAbsolutePath()));
  startActivityForResult(intent, REQUEST_CROP_IMAGE);
  </code></pre>
  
  <p>As i tried to find the solution  of this problem but didn't get any.</p>