Sreepathy T L Member Licensed User Longtime User Dec 12, 2018 #1 Hi, I tried to run the GPS example on my Android 4.4.2 device - Lenovo S 660 - Code: https://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content I am seeing blank against Lat:, Lon: and Speed. Labels. I am not getting any errors in log When I am logging GPS1 object in the starter module it displays "anywheresoftware.b4a.gps.GPS@39c37634" in the log. Pls help in debugging. I also tried using the fusedlocation library, however it is not working with sdk version 24 (which I need since I need to support android 4.4.2 devices onwards) with error Code: ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
Hi, I tried to run the GPS example on my Android 4.4.2 device - Lenovo S 660 - Code: https://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content I am seeing blank against Lat:, Lon: and Speed. Labels. I am not getting any errors in log When I am logging GPS1 object in the starter module it displays "anywheresoftware.b4a.gps.GPS@39c37634" in the log. Pls help in debugging. I also tried using the fusedlocation library, however it is not working with sdk version 24 (which I need since I need to support android 4.4.2 devices onwards) with error Code: ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2018 #2 Sreepathy T L said: I also tried using the fusedlocation library, however it is not working with sdk version 24 (which I need since I need to support android 4.4.2 devices onwards) Click to expand... This is completely wrong. Must read: android.jar / targetSdkVersion / minSdkVersion You should use android.jar from platform-28. Make sure to manage the SDK with B4A Sdk Manager. Upvote 0
Sreepathy T L said: I also tried using the fusedlocation library, however it is not working with sdk version 24 (which I need since I need to support android 4.4.2 devices onwards) Click to expand... This is completely wrong. Must read: android.jar / targetSdkVersion / minSdkVersion You should use android.jar from platform-28. Make sure to manage the SDK with B4A Sdk Manager.
Sreepathy T L Member Licensed User Longtime User Dec 12, 2018 #3 Erel said: This is completely wrong. Must read: android.jar / targetSdkVersion / minSdkVersion You should use android.jar from platform-28. Make sure to manage the SDK with B4A Sdk Manager. Click to expand... When I use platform-28 for fusedlocation, it is not working on android 4.4.2 device (Error parsing package coming when tried to install through B4A bridge). So I am preferring "GPS" library. Of late, I noticed that the Lat & Lon values are coming indoors after about 10-15 mins. How to solve this without used fused location? Upvote 0
Erel said: This is completely wrong. Must read: android.jar / targetSdkVersion / minSdkVersion You should use android.jar from platform-28. Make sure to manage the SDK with B4A Sdk Manager. Click to expand... When I use platform-28 for fusedlocation, it is not working on android 4.4.2 device (Error parsing package coming when tried to install through B4A bridge). So I am preferring "GPS" library. Of late, I noticed that the Lat & Lon values are coming indoors after about 10-15 mins. How to solve this without used fused location?
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2018 #4 You should use platform-28. Your app will work on Android 2.3+ (or 4.1+ if using Google Play Services). Start with solving this issue. Sreepathy T L said: Of late, I noticed that the Lat & Lon values are coming indoors after about 10-15 mins. How to solve this without used fused location? Click to expand... Start a new thread for any other question you have. Upvote 0
You should use platform-28. Your app will work on Android 2.3+ (or 4.1+ if using Google Play Services). Start with solving this issue. Sreepathy T L said: Of late, I noticed that the Lat & Lon values are coming indoors after about 10-15 mins. How to solve this without used fused location? Click to expand... Start a new thread for any other question you have.
Sreepathy T L Member Licensed User Longtime User Dec 12, 2018 #5 Just now I saw the Geolocation library. I think that is more useful and simple. Thank you Erel. Upvote 0