Cropping Picture on Droid X sets resulting image as wallpaper

荒凉一梦 提交于 2019-12-04 10:51:29

I can verify that the Droid X is doing the same for me even with the "output" option mentioned above. I have found no way around it as of yet and will look at blocking the crop feature for Droid X phones as well. It is ashame it doesn't work here.

By they way, you could try the following...

i.putExtra("return-data", true);

This returns the image in the returned intent. You can access it with the following...

BitMap BM = data.getParcelableExtra("data");

This, however, is not supported by the Galaxy S line of phones. It returns an empty parcel no matter what. So, I have found no good solution yet.

It could be that since you don't specify where to put the data when calling the crop intent that it is overwriting the image.

The crop intent is internal code I think so I'm not sure we can know for sure (the crop intent isn't found on all phones either btw)

When I call the crop intent I pass

i.putExtra("output", croppedOutputUri);

Have you tried placing:

i.putExtra("setWallpaper", false);

I took it from here: https://github.com/lvillani/android-cropimage/blob/master/src/com/android/camera/CropImage.java

theres a library whihc was probably takien from original sources and modified and you can see this attribute set there

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!