一款可在电视和平板电脑上运行的应用程序(带 GPS)

发布于 2024-12-23 04:44:00 字数 543 浏览 1 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

阳光下的泡沫是彩色的 2024-12-30 04:44:00

android.permission.ACCESS_FINE_LOCATION 权限隐式需要 android.hardware.location.gps 功能,而 Google TV 不支持该功能。添加

<uses-feature android:name="android.hardware.location.gps" android:required="false"/>

到应用程序的清单中以确保不需要该功能。

The android.permission.ACCESS_FINE_LOCATION permission implicitly requires the android.hardware.location.gps feature, which is not supported on Google TV. Add

<uses-feature android:name="android.hardware.location.gps" android:required="false"/>

to your app's manifest to ensure that the feature is not required.

花心好男孩 2024-12-30 04:44:00

没有 GPS 支持,您应该使用

android.hardware.location
or
android.hardware.location.network

There is no GPS support, instead, you should use

android.hardware.location
or
android.hardware.location.network
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文