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

Java Development

Reply
Contributor
Posts: 29
Registered: ‎03-24-2010
My Device: black berry 8820
My Carrier: new

Help with Code to write

Hi Friends,

 

 I am developing GPS Tracking Application in our orgarnization without using BES Server. To be test with failure cases i just selected the Location state as OFF State. In My Programs i am getting the Temporarly Out Of Server Case. then how can i enable the location state as ON State.(like When we run Blackberry Maps with Location state as OFF State then when we select My Location in Menu it just shows Location Services is currently turned off on device. Do you want to enable?). I just want write code like this maps. when location is turned off then application has to ask user input.

 

Please help here.

Super Contributor
Posts: 273
Registered: ‎11-23-2010
My Device: 9800 torch
My Carrier: Software Programmer

Re: Help with Code to write

goto options-> advanced options-> gps (or location settings)->

that field there is some options will be there in that Enable loaction. and save

Contributor
Posts: 29
Registered: ‎03-24-2010
My Device: black berry 8820
My Carrier: new

Re: Help with Code to write

Hi
Thanks for your reply. But i need to do this process through application (which was developed by me)
Super Contributor
Posts: 273
Registered: ‎11-23-2010
My Device: 9800 torch
My Carrier: Software Programmer

Re: Help with Code to write

use application manager class to set the location permissions.

Contributor
Posts: 29
Registered: ‎03-24-2010
My Device: black berry 8820
My Carrier: new

Re: Help with Code to write

can we do this through programatically.(without asking user to grant permission)