Andrew (Digitwell) Well-Known Member Licensed User Longtime User Jan 11, 2023 #1 Hi, I have recently upgraded to B4A 12.0 and I was updating an app which uses the FusedLocationProvider library to get the location. When I call flp.getLastKnownLocation the UI locks up for > 20 sec (on Pixel 2XL) before it returns with a NULL location. Here is an app which demonstrates the problem. It is a slight change to the example FLP app from the forum. Thanks for any help Attachments FLPLastLLocationProblem.zip 14.9 KB · Views: 82
Hi, I have recently upgraded to B4A 12.0 and I was updating an app which uses the FusedLocationProvider library to get the location. When I call flp.getLastKnownLocation the UI locks up for > 20 sec (on Pixel 2XL) before it returns with a NULL location. Here is an app which demonstrates the problem. It is a slight change to the example FLP app from the forum. Thanks for any help
Erel B4X founder Staff member Licensed User Longtime User Jan 12, 2023 #2 I see it too. The underlying method is deprecated and looks like it is broken with the latest update of the SDK. Don't use this method for now. Upvote 0
I see it too. The underlying method is deprecated and looks like it is broken with the latest update of the SDK. Don't use this method for now.
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Jan 12, 2023 #3 Ok, I'll save the last location from the LocationChanged event. Upvote 0