语言

Menu
Sites
Language
Enable/disable GPS on rooted

Hi,

I would like to understand how can I enable/disable GPS on a rooted Gear S from code/command line? I am developing an application for gear s and I need to control GPS from my code.

Thank you.

Luke

编辑者为: Luke 12 2月, 2015

响应

8 回复
daniel kim

Hi,

So far, there is no exposed API or command which can enable/diable GPS explicitly in the Gear S device.

Instead of that, you can use getCurrentPosition() or watchPosition() in the code.

Help page in the SDK contains more information about it and you can refer to it.

 - Tizen Wearable Web App Programming > Tutorials > W3C/HTML5 Tutorials > Location Tutorials

 

Luke

The need to activate time to time via code the GPS whenever my application needs is just to extend battery life. Keeping the GPS always on will drain the battery fast.

Neither in a rooted tizen version this is possible?

Luke

 

AVSukhov

Hello,

There is no API to enable/disable GPS from code.

You can only notify user about GPS usage and open appropriate settings 

Randall Puterbaugh

When will this be available?  With all the battery problems with this device, it seems like this is exactly the type of api access that should be giving to app developers.

AVSukhov

Hello,

I do not know whether to add this capability.

Keep track of Release Notes.

Luke

Having the root access on device does not bring any help to activate GPS via code/command line/etc?

Luke

What is the Tizen module which is entitled to activate/deactivate GPS? Is it possible to change and modify its source code and recompile Tizen for gear s?

Vikram

Hello,

AFAK Platform source of Gear S is not opened. so there is no way to change it for now.