R r2d4 Member Licensed User Longtime User Mar 12, 2012 #1 Hello, is there a way to activate GPS if it is turned off? Greetings r2d4
Erel B4X founder Staff member Licensed User Longtime User Mar 13, 2012 #2 There is no official way to do it. There is a library that uses a hack to turn on the GPS. It doesn't work on all devices: TurnGPS Library - Page 4 Upvote 0
There is no official way to do it. There is a library that uses a hack to turn on the GPS. It doesn't work on all devices: TurnGPS Library - Page 4
P Penko Active Member Licensed User Longtime User Mar 13, 2012 #3 It has been fixed on Android 2.3 but it works on my HTC(Android 2.2). Thefore it should work on earlier device. I suggest that you don't rely on this as it is a hack and is deprecated. Sent from my HTC Desire using Tapatalk Upvote 0
It has been fixed on Android 2.3 but it works on my HTC(Android 2.2). Thefore it should work on earlier device. I suggest that you don't rely on this as it is a hack and is deprecated. Sent from my HTC Desire using Tapatalk
T timo Active Member Licensed User Longtime User Mar 13, 2012 #4 Maybe r2d4 wanted only something like that B4X: If GPS1.GPSEnabled = False Then ToastMessageShow("Please enable the GPS device.", True) StartActivity(GPS1.LocationSettingsIntent) End If Upvote 0
Maybe r2d4 wanted only something like that B4X: If GPS1.GPSEnabled = False Then ToastMessageShow("Please enable the GPS device.", True) StartActivity(GPS1.LocationSettingsIntent) End If
P Penko Active Member Licensed User Longtime User Mar 13, 2012 #5 Reading his post makes be think he's asking about automatic turn on. However, you showed him how he has to do it the official way. Sent from my HTC Desire using Tapatalk Upvote 0
Reading his post makes be think he's asking about automatic turn on. However, you showed him how he has to do it the official way. Sent from my HTC Desire using Tapatalk
R r2d4 Member Licensed User Longtime User Mar 13, 2012 #6 Indeed, I am searching a way to enable GPS without user interaction. I got a Samsung S2 Galaxy (Android 2.3) - may be someone knows a workaround? Upvote 0
Indeed, I am searching a way to enable GPS without user interaction. I got a Samsung S2 Galaxy (Android 2.3) - may be someone knows a workaround?
NJDude Expert Licensed User Longtime User Mar 13, 2012 #7 I believe that due to security reasons Android doesn't allow that. Upvote 0
P Penko Active Member Licensed User Longtime User Mar 13, 2012 #8 As I told you, using the TURNGPS library you can do it on devices with android 2.2 or earlier. For the rest, you will gave to do it the official way. Sent from my HTC Desire using Tapatalk Upvote 0
As I told you, using the TURNGPS library you can do it on devices with android 2.2 or earlier. For the rest, you will gave to do it the official way. Sent from my HTC Desire using Tapatalk