Search code examples
androidandroid-manifestgoogle-tv

One Application to run on TV and Tablet (with gps)


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?


Solution

  • 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.