Method for obtaining location information and electronic device thereof
An electronic device and a method of the electronic device are provided. The electronic device includes a location measurement module configured to measure a location; a memory configured to store an application program; and a processor electrically connected to the location measurement module and t...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | An electronic device and a method of the electronic device are provided. The electronic device includes a location measurement module configured to measure a location; a memory configured to store an application program; and a processor electrically connected to the location measurement module and the memory, wherein the memory stores instructions that, when executed, cause the processor to store location information obtained by the location measurement module in the memory, process a request from the application program to obtain location information, and, in response to the request to obtain location information, provide the stored location information to the application program based on at least part of the location information stored in the memory.
提供了种电子设备和电子设备的方法。所述电子设备包括:位置测量模块,被配置为测量位置;存储器,被配置为存储应用程序;以及处理器,电连接到位置测量模块和存储器,其中所述存储器存储指令,当被执行时所述指令使得处理器将由位置测量模块获得的位置信息存储在存储器中,处理来自应用程序的用于获得位置信息的请求,并且响应于用于获得位置信息的请求,基于存储器中存储的位置信息的至少部分,向应用程序提供所存储的位置信息。 |
---|