一款可在电视和平板电脑上运行的应用程序(带 GPS)
我有一个 Honeycomb 应用程序,我希望它可以在平板电脑和 GoogleTV 上运行。我的应用程序中有代码可以根据应用程序是在电视上还是平板电脑上以不同的方式处理情况。
我的应用程序没有出现在 GoogleTV 市场上。我已在我的清单中包含:
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
and
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
有谁知道如果声明 ...LOCATION 的许可会导致它在市场上看不到吗?如果是这样,有没有办法包含此代码(如果不是电视)?
I have a Honeycomb application that my desire was it would run on both tablet and GoogleTV. I have code in my application to handle situations differently dependent upon if the application is on a tv or tablet.
My application is not showing up on the GoogleTV market. I have included in my manifest:
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
and
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
Does anyone know that if by declaring permission of ...LOCATION would cause it not to be seen in the market? If so, is there a way to include this code side if NOT tv?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
android.permission.ACCESS_FINE_LOCATION 权限隐式需要 android.hardware.location.gps 功能,而 Google TV 不支持该功能。添加
到应用程序的清单中以确保不需要该功能。
The android.permission.ACCESS_FINE_LOCATION permission implicitly requires the android.hardware.location.gps feature, which is not supported on Google TV. Add
to your app's manifest to ensure that the feature is not required.
没有 GPS 支持,您应该使用
There is no GPS support, instead, you should use