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
Developer
Posts: 38
Registered: ‎01-07-2011
My Device: BB10 Dev Alpha, Playbook
My Carrier: Telus
Accepted Solution

Getting error from GPS Location API - Provider not available

Hello,

 

I'm trying to access location information using Android location API (using LocationManager.GPS_PROVIDER), but without success. I'm getting "Provider not available" error.

AndroidManifest.xml has lines related to relevant permissions:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>

 

But I'm not getting even security prompt to grant these permissions to my application.

 

OS version 2.0.0.3894

Build 73070

 

Thank you.

Please click the "kudos" in my post if I was able to help you on this issue.
Please mark thread as resolved if I was able to fix the issue!!
Twitter: @wiisniper
My Free Playbook Apps (no ads):
Speech timer Plus http://appworld.blackberry.com/webstore/content/83847/
Speech timer http://appworld.blackberry.com/webstore/content/34640/
Highlighted
Developer
Posts: 38
Registered: ‎01-07-2011
My Device: BB10 Dev Alpha, Playbook
My Carrier: Telus

Re: Getting error from GPS Location API - Provider not available

I've resolved this issue by rebooting and placing device near a window.

What I'm wondering now is why Android player never asked for security permission to access GPS location. Is it a development mode feature?
Please click the "kudos" in my post if I was able to help you on this issue.
Please mark thread as resolved if I was able to fix the issue!!
Twitter: @wiisniper
My Free Playbook Apps (no ads):
Speech timer Plus http://appworld.blackberry.com/webstore/content/83847/
Speech timer http://appworld.blackberry.com/webstore/content/34640/
Developer
Posts: 425
Registered: ‎04-10-2011
My Device: Z30

Re: Getting error from GPS Location API - Provider not available

Did you also try the network location provider? Neither GPS nor network works for me Smiley Sad
-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blog alopix.net
BBM Channel: C0047B612