Android Question Incompatible Device

Discussion in 'Android Questions' started by carloz, Aug 18, 2015.

  1. carloz

    carloz Member Licensed User

    Hello all,

    Continuing this discussion from a previous(old ) thread..
    One of my apps suddenly started to be shown as incompatible with some devices after a update on google play. As allways google play did not give a reason as to why it is incompatible.

    I wrote to google developer support and they replied asap..apparently , some devices do not have a gps built in to its hardware. They advised me to set the "android.hardware.location.gps" required:false in the manifest.

    Im using the b4a gps library , and theres no "android.hardware.location.gps" in the manifest !! i guess the gps library must add the permissions at runtime?
    how do i modify this to make it "required:false"?

    below is my manifest
    Code:
    'This code will be applied to the manifest file during compilation.
    'You do not need to modify it in most cases.
    'See this link for for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136
    AddManifestText(
    <uses-sdk android:minSdkVersion=
    "8" android:targetSdkVersion="14"/>
    <supports-screens android:largeScreens=
    "true"
        android:normalScreens=
    "true"
        android:smallScreens=
    "true"
        android:anyDensity=
    "true"/>)
    SetApplicationAttribute(android:icon, 
    "@drawable/icon")
    SetApplicationAttribute(android:
    label"$LABEL$")
    'End of default text.
    SetManifestAttribute("android:installLocation""auto")
    AddManifestText(<permission android:name=
    "$PACKAGE$.permission.C2D_MESSAGE" android:protectionLevel="signature" />)
    AddPermission($PACKAGE$.permission.C2D_MESSAGE)
    AddPermission(com.google.android.c2dm.permission.RECEIVE)
    ' Push Service Receiver Attribute
    SetReceiverAttribute(PushService, android:permission, "com.google.android.c2dm.permission.SEND")
    ' Service Receiver Text
    AddReceiverText(PushService,
    <
    intent-filter>
    <action android:name=
    "com.google.android.c2dm.intent.RECEIVE" />
    <category android:name=
    "$PACKAGE$" />
    </
    intent-filter>
    <
    intent-filter>
    <action android:name=
    "com.google.android.c2dm.intent.REGISTRATION" />
    <category android:name=
    "$PACKAGE$" />
    </
    intent-filter>)
     
  2. DonManfred

    DonManfred Expert Licensed User

    you can add this to the manifest editor
    Replace permissionname with the name of the permission like in AddPermission()
     
  3. carloz

    carloz Member Licensed User

    thnx DonManfred .. ill try that..

    regards
    carloz
     
  4. DavideV

    DavideV Active Member Licensed User

    Some devices (generally tablets) have a fake gps hardware , add this line at the end of your manifest:

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

    hope it helps, bye
     
  5. carloz

    carloz Member Licensed User

    thank you davideV ..


    regards
    carloz
     
  6. carloz

    carloz Member Licensed User

    it worked...
    thanks davideV & donmanfred..

    regards
    carloz
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice