hi ,
I am trying to run PhotoStream sample from following link
http://android-developers.blogspot.com/2008/09/android-photostream.html
But when i try to set the wallpaper of an image ( reference class ViewPhotoActivity.java) i am getting following error
android.content.ActivityNotFoundException:
Unable to find explicit activity class {com.android.camera/com.android.camera.CropImage}; have you declared this activity in your AndroidManifest.xml?
and i think the following code is causing the problem
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);
As i tried to find the solution of this problem but didn't get any.