如何限制Android应用程序,以特定的设备化妆?应用程序、设备、Android

2023-09-12 00:16:16 作者:- 海是鱼的羁绊

我正在开发的特定品牌手机的Andr​​oid应用程序 - 这是该项目的要求不是我的决定。

所以,我需要能够使Android市场的应用程序只适用于那些由特定制造商生产的设备。

我似乎并没有能够找到如何做到这一点。

这可能吗?

P.S。 我可以检索设备使android的code。 所以我怀疑是市场上的应用程序应该能够通过设备拨打和过滤。 我只是不知道它实际上并(将,如果​​它确实是巨大的)。

解决方案

您不必基于设备/制造商在应用code过滤你的应用程序,而不是您可以从Android Market开发者控制台做 - https://market.android.com/publish/ 只是当你发布应用程序本身

还有就是开发者控制台,它会显示所有可以访问Android Market的设备列表上的支持的设备部分。然后,您可以过滤掉不符合您的应用程序兼容设备或生产厂家

这是在主要开发者控制台部分:

在这里,您可以从能够看到你的应用程序中排除的设备和/或制造商

译文 关于 Android Q 背后的新变化,我们和谷歌开发团队聊了聊

有关详细信息,请参阅Device可用性帮助页面,其中说:

  

设备可用性对话框可以帮助开发人员在两个强大   方式:

     

了解哪些设备可以找到在Android Market中您的应用程序

        

设备可用性提供了基于兼容设备的动态列表   您的清单中设置。例如,如果你的apk清单指定要   大屏幕大小,控制台将反映支持的设备   可以发现市场的应用程序。

  

您还可以使用动态搜索   功能来查看您的应用程序将不可用的设备   至。您可以通过搜索关键字制造商,设计名称(如激情),   或实际的公共设备名称(如的Nexus One),以当看到你的   清单设置过滤设备。过滤器有问题,或   非兼容设备此功能提供了设备专用   政府选择开发商。当您将设备添加到   手动排除设备列表中,您的应用程序将无法使用   这排除设备市场。这主要是为了帮助   开发人员提供最佳的用户体验,通过帮助   开发商过滤掉已知有兼容性问题的设备。

  

I am developing an android app for SPECIFIC brand of phones - that's the project requirement not my decision.

So I need to be able to make the app available in the android marketplace only to those devices that are produced by that SPECIFIC manufacturer.

I don't seem to be able to find how to do that.

Is it possible?

P.S. I can retrieve the device make in the android code. So I suspect that the market app should be able to filter by the device make as well. I just don't know if it actually does (would be great if it does).

解决方案

You don't need to filter your app based on device/manufacturer in the application code, instead you can do it from the android market developer console - https://market.android.com/publish/ just when you publish the app itself.

There is a 'Supported Devices' section on the developer console, which shows you a list of all the devices which can access the android market. You can then filter out devices or manufacturers that are not compatible with your app

This is the section in the main developer console:

Here you can exclude devices and/or manufacturers from being able to see your app

For more information please refer to the Device Availability help page which says:

The Device Availability dialog can help developers in two powerful ways:

Understand which devices can find your app in Android Market

Device Availability provides a dynamic list of compatible devices based upon your manifest settings. For example, if your apk’s manifest specifies a large screen size, the console will reflect the supported devices that can find your app in Market.

You can also use the dynamic search feature to see the devices that your application will not be available to. You can search by manufacturer, the design name (E.g. "Passion"), or the actual public device name (E.g. "Nexus One"), to see if your manifest settings filtered a device. Filter problematic or non-compatible devices This feature provides a device-specific administration option to developers. When you add a device to the "Manually Excluded Devices" list, your app will not be available to that excluded device in Market. This is primarily intended to help developers provide the best user experience possible, by helping developers filter out devices known to have compatibility problems.

 
精彩推荐
图片推荐