gpt4 book ai didi

android - 找不到处理市场 ://URI 的 Activity

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:51:46 24 4
gpt4 key购买 nike

我有一个 bugsense 帐户,用于跟踪来 self 公司的 Android 应用程序的崩溃报告。我们的应用程序需要安装一个单独的应用程序(即服务),否则该应用程序将无法运行。我们通过检查是否安装了其他应用程序(服务)来处理此问题,如果没有,我们将用户定向到可以安装该应用程序的市场页面,我们这样做是这样的:

Intent market = new Intent(Intent.ACTION_VIEW,
Uri.parse("market://details?id=com.mycompany.appname"));

startActivityForResult(市场, REQUEST_INSTALL_APK);

偶尔我会收到一条错误消息:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.mycompany.appname }

我看到上次发生这种情况是来自三星 galaxy 播放器,我们内部有一些播放器,它们对我们来说一直运行良好。有谁知道为什么在某些情况下会发生这种情况?我还没有听到客户的任何投诉,但看起来这可能是个问题。

我认为用户可能以某种方式对手机进行了 root 操作并卸载了 Play 商店,但我对此深表怀疑(我们的客户是警察,而且非常非技术人员)。我想知道手机上是否没有设置或其他东西可能导致此功能无法正常工作?或者他们可能有一个尚未升级的旧版本市场,并且它不支持我正在使用的将用户定向到市场/游戏商店的方法。

另请注意,我们现在仅在 Play 商店中分发此应用程序,而导致此崩溃的版本是最新版本,除了 Play 商店外,它绝对没有公开发布。根据崩溃报告中 IP 地址的 GEO IP,它不是来自公司内部的任何人,他们拥有未在市场上分发的应用程序副本(只有 3 人)。这不是游戏或普通用户愿意使用的任何东西,而是出于特定目的,因此它不是脚本小子和黑客在地下网站上玩的游戏。

最佳答案

Does anyone have an idea why this might happen in some cases?

用户没有 Play 商店。例如,他们可能正在运行经过修改的 ROM。

I'm wondering if there isn't a setting or something on the phone that could cause this to not work?

通常不会,如果他们尝试过,该设备可能不符合 Play 商店的资格。

Or perhaps they have an old version of the market that hasn't been upgraded and it doesn't support the method I'm using of directing the user to the market/play store.

market:// URL 自 2009 IIRC 以来一直有效。

the version that this crash came from is the most recent release which definitely didn't get out into the public anyway except the play store.

如果您的应用在 100 多个盗版网站上都无法使用,我会感到震惊。

This isn't a game or anything a regular user would ever care to use but for a specific purpose so its not some game that script kiddies and hackers would have on underground sites.

哦,他们绝对会把它放在“地下网站”上。盗版是自动化的。正如 Scen 指出的那样,机器人会监控 Play 商店中的新品并尽其所能。而且,其中一些机器人甚至可能会运行您的应用程序(例如,通过测试猴子)。

关于android - 找不到处理市场 ://URI 的 Activity ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11439313/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com