Standort: GPS/Netzwerk-Berechtigungen: wollte, wenn verfügbar

Möchte ich meine Anwendung den Zugriff auf GPS - /Netzwerk-Standorten, wenn Sie sind verfügbar.
Ich will nicht die Google Play filtern von Geräten ohne GPS - /Netzwerk-locator.

Wie sollte ich das tun?

Derzeit habe ich diese auf meinem manifest:

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.location" android:required="false" />

Aber ich bin nicht sicher, es ist genug, weil http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions-features besagt, dass:

-Berechtigung ACCESS_COARSE_LOCATION impliziert android.hardware.location.network und
android.hardware.location features Anforderung

-Berechtigung *ACCESS_FINE_LOCATION impliziert android.hardware.location.gps und
android.hardware.location

Muss ich auch noch hinzufügen
<uses-feature android:name="android.hardware.location.network" android:required="false" />
und
<uses-feature android:name="android.hardware.location.gps" android:required="false" /> ?

Warum?

Sollte nicht <uses-feature android:name="android.hardware.location" android:required="false" /> genug sein?

  • Sie hat ausdrücklich erklärt und betont das "und", so nehme ich Sie brauchen würde, um alle Anwendungen-Funktionen.
InformationsquelleAutor pandre | 2012-07-12
Schreibe einen Kommentar