Possible to use hardware button on locked screen?

Uwe Borkenau shared this question 1 week ago
In Progress

I use Locus Pro on a Samsung Galaxy S5 Active. ─░ use it also for hiking and bicycling at rainy weather. Than I have to use the function "locked screen", because it isn't possible to use the touchscreen at rainy weather. Unfortunately it isn't possible to use the hardware buttons for the zoom when the screen is locked. But this would be a great future at rainy weather. Is there any possibility in the settings to change it?

or @Menion: Is there any possibility to implement it at Locus?

Comments (6)

photo
1

Good day Uwe,

are we here talking about "lock screen" made by device itself or really a "lock screen" function available on Locus Map main map screen in bottom right corner?

If we talk about lock screen made by Locus Map, then using hardware buttons here is disabled from security reasons. Anyway it is possible to enable this option as well, thanks to config.cfg file and parameter called hardware_buttons_enabled_during_screen_lock . So set this parameter to value "true" ( or "1" ) and it should work as you need.

photo
1

Hello Menion and thanks for the fast answer.

Yes, we are talking about lock screen made by locus map with the bottom in the right corner.

And I have find the file and have changed the setting to "1" but it doesn't function.

Than I have restart my device and have seen that the setting has changed automatically back to "0".


For testing I have changed the setting:

map_hold_center_method_timeout=15

and after a restart of my device it function perfectly.


So...I think that I have understand your explanation but the setting doesn't function.


Do you have an idea why?

photo
1

Hmm it looks like Locus incorrectly recognized changes in file and overwrite this parameter with default value.

May you try, in list of applications in your device, completely terminate Locus by "FORCE STOP" button? Then edit the file and then open Locus Map? Thanks

photo
1

Hello Menion. Unfortunately it is not possible to terminate Locus by using the "FORCE STOP" Button at my device.

Do you have any other idea or can it be a bug that you can fix with a new update?

photo
1

Good day Uwe,

hmm interesting. I'm sure, config file works correctly ( mainly because it is quite old system that should be really tested ). It looks like on your device, it makes a problem to change values, do not know why.

Maybe you should try for example edit config.cfg file in device and then restart a device.

photo
1

Hi Menion. I tried a few things. Also your tip with the "Force stop" button. But it's always the same. It makes no difference, if the setting for hardware_buttons_enabled_during_screen_lock=0 or 1. I can not use the volume buttons to zoom when "lock screen" is enabled. Other functions I can change in the config.cfg file. A friend with another device has exactly the same problem. Maybe you find a solution. I have no idea anymore.

But thanks for the great app. If you find any solution for my problem your app would be absolutely perfect. :-)

photo