I am trying to run PhotoStream sample from following link
http://android-developers.blogspot.com/2008/09/android-photostream.html
You can bundle the CropImage activity with your app package so it is independent on Android version.
Here's the project: https://github.com/lvillani/android-cropimage
The CropImage activity extracted from Gallery.apk (AOSP 4.4.4). Compatible with Android API Level 15 and up.
Remember to add the following line to your AndroidManifest.xml: