Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
New Contributor
Posts: 5
Registered: ‎03-05-2014
My Device: PlayBook
My Carrier: AT&T

Location permission

Hello,

My Application is just a file manager. But BB10 shows that it requires the Location permission
making the users scary and urge to uninstall.
But the code does not have anything which could request the current device location!
I tried to remove all the third party libraries, did not change a thing.

 

This is how the location permission is shown in the settings:


I tried to create an empty application with the same list of permissions in the manifest,
but it did not request neither location permission nor file access.

Here's the list of permissions in the manifest.xml
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
    <uses-permission android:name="android.permission.VIBRATE" />
 But even if I comment them out, the result does not change.

 

Please help!

Retired
Posts: 140
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: Location permission

android.permission.ACCESS_WIFI_STATE maps to the BB10 "access_location_services" permission.

 

The information you can retrieve with this Android permission can be used to garner your approximate location in some situations.

New Contributor
Posts: 5
Registered: ‎03-05-2014
My Device: PlayBook
My Carrier: AT&T

Re: Location permission

Thank you for the answer, your explanation makes sence.

 

I only need the WiFi state to not let the WiFi be turned off during a file transfer.

But may be my app does not have to control the WiFi state, i.e. may be BB10 iself will not let the WiFi off when it is actively used?

 

Retired
Posts: 140
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: Location permission

[ Edited ]

Yea, our Android Runtime doesn't really care about the WifiManager.WifiLock Smiley Happy

 

edit: clarifying "we"

New Contributor
Posts: 5
Registered: ‎03-05-2014
My Device: PlayBook
My Carrier: AT&T

Re: Location permission

I'm sorry, what do you mean by that, please explain. Who are "we"?