问题描述
我有一个bugsense帐户,用于跟踪我公司的android应用程序的崩溃报告。我们的应用程序需要安装一个单独的应用程序(即服务),否则应用程序将无法运行。我们通过检查是否安装了其他应用程序(服务)来处理此问题,如果不是,我们将用户引导至可安装应用程序的maket页面,我们这样做是这样的:
Intent market = new Intent(Intent.ACTION_VIEW,
Uri.parse(market:// details?id = com.mycompany.appname));
startActivityForResult(market,REQUEST_INSTALL_APK);
偶尔我在这行消息中收到一条错误消息:
android.content.ActivityNotFoundException:找不到处理Intent的行为{act = android.intent.action.VIEW dat = market:// details?id = com.mycompany.appname}
我看到最后一次发生这种事的原因是来自三星Galaxy球员,我们有一些内部球员,他们一直为我们工作得很好。
有人知道为什么在某些情况下会发生这种情况吗?我还没有听到客户的任何投诉,但似乎这可能是一个问题。
我想不知道用户可能已经植根于手机并卸载了Play商店但我高度怀疑(我们的客户是警察,非常技术性)。我想知道是否没有设置或手机上可能导致此问题无法解决的问题?或者也许他们有一个尚未升级的老版本的市场,它不支持我将用户引导到市场/游戏商店的方法。
另外请注意,我们现在只在Play商店中分发此应用程序,而此次崩溃来自的版本是最新发布的版本,它绝对没有进入无论如何,除了Play商店之外。根据崩溃报告中IP地址的GEO IP,它不是来自公司内部的任何人,该应用的副本未在市场上分发(仅3人)。这不是一款游戏,也不是一个普通用户永远不会使用的东西,而是出于特定的目的,所以它不是一些脚本小子和黑客在地下网站上的游戏。
用户没有Play商店。例如,他们可能正在运行一个修改过的ROM。
通常情况下,如果设备尝试过,则该设备可能不符合Play商店的要求。
market://
网址自2009年IIRC以来一直工作。
如果您的应用程序在100多个海盗网站上不可用,我会被打晕。
哦,他们绝对会把它放在地下网站上。盗版是自动化的。正如Scen指出的那样,机器人监控Play商店中的新来者,并抓住他们所能做的一切。而且,其中一些漫游器甚至可能运行你的应用(例如,通过测试猴子)。
I have a bugsense account which I use to track crash reports from my company's android app. Our application requires a seperate application (which is service) to be installed or else the application will not function. We handle this by checking if that other app (service) is installed, and if not we direct the user to the maket page where the application can be installed, and we do so like this:
Intent market = new Intent(Intent.ACTION_VIEW,
Uri.parse("market://details?id=com.mycompany.appname"));
startActivityForResult(market, REQUEST_INSTALL_APK);
Ocassionally I get an error on this line message saying:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.mycompany.appname }
I see that the last time this happened it was from a samsung galaxy player, which we have some in house and they have always worked fine for us.Does anyone have an idea why this might happen in some cases? I haven't yet heard any complaints from customers yet but seems like this might be a problem.
I thought somehow the user may have rooted the phone and uninstalled the play store but I highly doubt that (our customers are police officers and highly non technical). I'm wondering if there isn't a setting or something on the phone that could cause this to not work? 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.
Also note that we only distribute this application in the play store now and 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. Based on GEO IP of the ip address in the crash report it wasn't from anyone internal to the company that had a copy of the app not distributed in the market (only 3 people). 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.
The user does not have the Play Store. For example, they might be running a modded ROM.
Not generally, and the device probably would not qualify for the Play Store if they tried.
market://
URLs have worked since 2009 IIRC.
If your app is not available on 100+ pirate sites, I will be stunned.
Oh, they absolutely will have it on "underground sites". Piracy is automated. As Scen noted, bots monitor the Play Store for new arrivals and grab anything they can. And, some of those bots might even run your app (e.g., via the Test Monkey).
这篇关于找不到处理market:// URI的活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!