Android - 不同宽高比的照片裁剪工具

Android - Photos Crop Tool with different Aspect Ratio

我正在使用

启动 Google 照片裁剪工具
String packageId = "com.google.android.apps.photos";
String action = "com.android.camera.action.CROP";

(如果未安装该应用程序,我将启动任何可以处理该操作的 Intent。

我的问题是这个图标

使用此操作启动时,图标被禁用,但如果我使用:

String packageId = "com.google.android.apps.photos";
String action = Intent.ACTION_EDIT;

然后启用该图标(但我得到了我真正不需要的所有其他编辑工具)

有什么方法可以只打开工具的 CROP 部分并启用该图标吗?

谢谢

I'm launching the Google Photos Crop tool using

Intent 操作未记录在案,现在或将来都不需要任何特定应用程序(包括 "Google Photos" 是什么)为其提供支持。

If the app is not installed, I just launch any intent that can handle that action

Intent 操作未记录,并且没有要求任何特定的 Android 设备具有支持它的 activity。此外,没有文档说明启动这样一个 activity.

的效果是什么

When launching with this action, the icon is disabled

也许,对于您正在使用的特定应用程序的特定版本。此特定应用程序的未来版本可能会有不同的行为。其他应用会有不同的行为。

but if I use... Then the icon is enabled (but I get all other edit tools that I really don't need)

也许,对于您正在使用的特定应用程序的特定版本。此特定应用程序的未来版本可能会有不同的行为。其他应用会有不同的行为。

Is there any way to open only the CROP portion of the tool and have that icon enabled?

可能不会。当然,没有记录的方法来控制它,因为整个 Intent 操作没有记录。

有很多image cropping libraries available for Android。请使用一个。