如何使用 Delphi Android 编程从我的移动设备上的 GPS/glonas/baido 卫星获取当前日期时间?
此时我只能从位置传感器获取经度和纬度。
procedure TForm1.LocationSensor1LocationChanged(Sender: TObject;
const OldLocation, NewLocation: TLocationCoord2D);
var
LDecSeparator: String;
begin
LDecSeparator := FormatSettings.DecimalSeparator;
FormatSettings.DecimalSeparator := '.';
// Show current location
ListBoxItemLatitude.ItemData.Detail := Format('%2.6f', [NewLocation.Latitude]);
ListBoxItemLongitude.ItemData.Detail := Format('%2.6f', [NewLocation.Longitude]);
end;
我知道使用 GSM 网络更容易一段时间,但我的情况下没有可用的移动网络。
这可能吗?