android – 应用程序在2.1,2.2等作物活动崩溃,但在1.6中工作

android – 应用程序在2.1,2.2等作物活动崩溃,但在1.6中工作,第1张

概述嗨朋友们, 我想使用Crop Activity但它会崩溃为 to activity {com.CropActivity / com.CropActivity.CropActivity}:android.content.ActivityNotFoundException: 它的代码在Andorid 1.6中正常工作,但它在2.1或2.2中崩溃. 请给我解决方案 提前致谢 这是我开始裁剪活动的代码. 嗨朋友们,

我想使用Crop Activity但它会崩溃为

to activity {com.CropActivity / com.CropActivity.CropActivity}:android.content.ActivityNotFoundException:

它的代码在AndorID 1.6中正常工作,但它在2.1或2.2中崩溃.
请给我解决方案
提前致谢

这是我开始裁剪活动的代码.

Intent i = new Intent("com.androID.camera.action.CROP");           i.setClassname("com.androID.camera","com.androID.camera.CropImage");           i.setData(data.getData());            image.setimageURI(data.getData());            Log.d("Camera","path: " + data.getData().getPath());            i.putExtra("noFaceDetection",false);            i.putExtra("outputX",iconWIDth);            i.putExtra("outputY",iconHeight);            i.putExtra("aspectX",iconWIDth);            i.putExtra("aspectY",iconHeight);            i.putExtra("scale",true);            i.putExtra("output",Uri.parse(iconUri));             i.putExtra("return-data",true);             startActivityForResult(i,CROP_IMAGE);
解决方法 如果这是默认情况下androID上存在的CropActivity,则它是 not officially part of the API,因此意图字符串可能已更改.

请参阅这些链接以获取可能的解决方案

> unable to find com.android.camera.CropImage activity in android
> How to crop an image in android?

总结

以上是内存溢出为你收集整理的android – 应用程序在2.1,2.2等作物活动崩溃,但在1.6中工作全部内容,希望文章能够帮你解决android – 应用程序在2.1,2.2等作物活动崩溃,但在1.6中工作所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1124463.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存