unable to find com.android.camera.CropImage activity in android

前端 未结 6 848
别那么骄傲
别那么骄傲 2020-12-03 02:14

I am trying to run PhotoStream sample from following link

http://android-developers.blogspot.com/2008/09/android-photostream.html

6条回答
  •  醉梦人生
    2020-12-03 02:51

    I found a way by following the LogCat while i was cropping a contact Image. It called the Intent with following parameters:

    cmp=com.android.gallery/com.android.camera.CropImage
    

    So try to replace the com.android.camera with com.android.gallery. This worked for me:

    Intent intent = new Intent("com.android.camera.action.CROP");
    intent.setClassName("com.android.gallery", "com.android.camera.CropImage");
    

    On some Android version, including the newest, com.android.gallery doesn't exist anymore. You need to use this then:

    Intent intent = new Intent("com.android.camera.action.CROP");
    intent.setClassName("com.google.android.gallery3d", "com.android.gallery3d.app.CropImage");
    

提交回复
热议问题