简体   繁体   English

如何仅将Android设置为手机/平板电脑?

[英]How to set android for phones/tablets only?

I hear that android apps can now be played on a desktop in chrome os. 我听说现在可以在chrome os的桌面上播放android应用。 The problem is that my app requires use of the accelerometer so it must be played in a hand held device. 问题是我的应用程序需要使用加速度计,因此必须在手持设备中播放。 I don't want people downloading it on a desktop, getting mad because it doesn't work, then down-voting it. 我不希望人们在桌面上下载它,因为它不起作用而生气,然后拒绝投票。 Thanks. 谢谢。

By Adding this in your manifest, google will take care of everything <uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" /> 通过在清单中添加此代码,Google会处理<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" />

as said here http://developer.android.com/guide/topics/manifest/uses-feature-element.html 如这里所说的http://developer.android.com/guide/topics/manifest/uses-feature-element.html

Google Play filters the applications that are visible to users, so that users can see and download only those applications that are compatible with their devices. Google Play会过滤用户可见的应用程序,以便用户只能查看和下载与他们的设备兼容的那些应用程序。 One of the ways it filters applications is by feature compatibility. 它过滤应用程序的方法之一是通过功能兼容性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM