android软件包管理器如何从市场网站上知道要安装什么? [英] How does android package manager know what to install from the market place web site?

查看:66
本文介绍了android软件包管理器如何从市场网站上知道要安装什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在台式机浏览器上访问市场网站并使用您的帐户登录时,它就会知道您的设备以及哪些应用程序可以在其上运行或不运行.他们如何做到这一点完全可以理解.

令人着迷的功能是,您可以单击网站上的安装按钮,然后自动下载该应用程序并将其安装在手机上.现在那是魔术!此推送通知如何工作?

是只能通过市场网站完成的事情,还是第三方可以用来触发安装的功能?我的用例是大大简化QR代码的使用以安装应用程序. QR码将用户带到具有信息内容(例如,关于博物馆中的绘画的内容)并且还具有允许用户安装具有相同但离线内容的相应应用程序的按钮的移动网页.该应用程序无需经过市场就可以安装,从而失去了用户的直接关注.

我希望答案是你不能那样做",但是我不想问这个假设,而是住在那里.有没有其他方法可以实现我的用例?

解决方案

通常,为了确保所安装的任何应用程序都需要用户采取显式操作(即查看权限并按安装按钮),需要做很多工作. Market服务所表现出的这种行为是绕过此过程的为数不多的事物之一,但我认为其背后的逻辑是用户查看了权限并同意在Web前端进行安装,因此对于让他们再做一次.

据我所知,您提到的用例(用户正在PC上浏览并从那里将应用程序安装到他们的其中一台设备)是这种情况的唯一情况.我不认为市场为第三方提供了任何方法来捆绑并以这种方式分发其应用程序(市场Web前端除外).

因此,简而言之,没有真正的其他好方法可以像这样推送应用程序.

我确定您可以设置行为类似的设备,但是它需要对设备进行额外的操作或安装在设备上,因此在库存设备上将无法使用,这意味着90%或更多的人不会这样做能够使用它.

不过,我确实同意您的动机,对于我们中的某些人来说,从QR安装应用程序似乎是一个微不足道的过程,但是公众尚未达到可以依靠他们完成所有任务的地步正确而迅速地进行,以至于他们的注意力仍然集中在原来的东西上,在您的情况下,就是博物馆里的物品.

When you visit the market place web site on a desktop browser and log in with your account it knows about your devices and what apps do and do not work on it. Fairly understandable how they do this.

What is intriguing is the feature whereby you can click the install button on the web site and the app is then automatically downloaded and installed on the phone. Now that is magic! How does this push notification work?

Is it something that can only be done via the market place web site or is it a feature that can be used by third parties to trigger installations? My use case is to drastically simplify the use of a QR code to install an application. The QR code take the user to a mobile web page that has informative content (e.g. about a painting in a museum) and also has a button to allow the user to install the corresponding application that has the same but offline content. The app would installed without going via the market place and thus losing the user's immediate attention.

I expect that the answer is "you can't do that" but rather than live under that presumption I thought that I'd ask. Is there another way to achieve my use case?

解决方案

In general much work was done to ensure any applications being installed require explicit action to be taken by the user(i.e. view the permissions and press the install button). This behavior that the Market service exhibits is one of the few things that sort of sidesteps this process but I would assume the logic behind it is that the user viewed the permissions and agreed to the install on the web front end so it would be redundant to make them do it again.

As far as I am aware the use case which you mentioned (user is browsing on PC and installs app to one of their devices from there) is the only situation where it works like this. I don't believe the market offers any way for 3rd parties to tie into this and distribute their applications in this manner (other than the market web front end).

So in short, no there isn't really any other good way to push applications like that.

Im sure you could set up something that behaves similarly but it would rely on something extra being done to or installed on the device and as such it wouldn't work on stock devices which means 90% or more of people wouldn't be able to use it.

I do agree with your motivation though, it seems like a trivial process to some of us to install an app from a QR, but the general public is not yet at a point where you can count on them get it it all done correctly and quickly enough that their attention is still focused on whatever it was, in your case the item in the museum.

这篇关于android软件包管理器如何从市场网站上知道要安装什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆