CN110138965B - Wearable device, number formatting method and device thereof, and storage medium - Google Patents

Wearable device, number formatting method and device thereof, and storage medium Download PDF

Info

Publication number
CN110138965B
CN110138965B CN201910326032.3A CN201910326032A CN110138965B CN 110138965 B CN110138965 B CN 110138965B CN 201910326032 A CN201910326032 A CN 201910326032A CN 110138965 B CN110138965 B CN 110138965B
Authority
CN
China
Prior art keywords
country code
wearable device
mobile terminal
current standard
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910326032.3A
Other languages
Chinese (zh)
Other versions
CN110138965A (en
Inventor
闫凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910326032.3A priority Critical patent/CN110138965B/en
Publication of CN110138965A publication Critical patent/CN110138965A/en
Application granted granted Critical
Publication of CN110138965B publication Critical patent/CN110138965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. SMS or e-mail
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/727Identification code transfer arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Abstract

The invention discloses a method and a device for formatting wearable equipment number, wearable equipment and a computer readable storage medium, which are applied to the wearable equipment and comprise the following steps: acquiring a current standard country code from a mobile terminal; storing the obtained current country code; and in the number using scene, using the stored current standard country code to carry out number formatting. By the embodiment of the invention, the number of the wearable device can be formatted into the format in the mobile terminal according to the national information of the current mobile terminal under the condition that the wearable device does not have a GPS and a mobile communication network, so that the visual effect of a user on the formatted number is improved, and the user experience is improved.

Description

Wearable device, number formatting method and device thereof, and storage medium
Technical Field
The present invention relates to the field of wearable devices, and in particular, to a method and an apparatus for number formatting of a wearable device, and a computer-readable storage medium.
Background
Currently, wearable devices are increasingly popular, users using wearable devices are more and more, and users use wearable devices more and more frequently in daily life, so that wearable devices have become one of mobile devices indispensable to users.
The existing wearable equipment is generally provided with a voice communication function, and the wearable equipment can be used for operations such as making a call and answering the call. However, the existing wearable device cannot manually input a number to dial a call, and the wearable device cannot determine current network information without a GPS and a mobile communication network, so that the number applied to dialing cannot be formatted into the number format of the current country, which affects user experience.
Disclosure of Invention
In view of this, the method, the apparatus, the wearable device and the computer-readable storage medium for formatting the number of the wearable device provided in the embodiments of the present invention enable the wearable device to format the number of the wearable device into the format in the mobile terminal according to the country information of the current mobile terminal without a GPS and a mobile communication network, thereby improving the visual effect of the user on the formatted number and improving the user experience.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to an aspect of the embodiment of the present invention, there is provided a method for formatting a wearable device number, which is applied to a wearable device, the method including:
acquiring a current standard country code from a mobile terminal;
storing the obtained current country code;
and in the number using scene, using the stored current standard country code to carry out number formatting.
In one possible design, before the obtaining the current standard country code from the mobile terminal, the method further includes: the wearable device and the mobile terminal are paired through Bluetooth.
In one possible design, the obtaining the current standard country code from the mobile terminal includes: and after the wearable equipment is successfully matched with the mobile terminal, acquiring the current standard country code transmitted by the mobile terminal through Bluetooth.
In one possible design, the current standard country code is derived from one of the following approaches:
acquiring a mobile network connected with a current mobile terminal: gelphonymanager. getnetworkcountryiso ();
acquiring the position information of the current mobile terminal through a LocationManager and a Geocoder, and extracting a country code;
acquiring a country code through SIM card information: telephonymanager. getsimcrotyiiso ();
obtaining a standard country code through a currently set language: locale.
In one possible design, the storing the obtained current country code includes: and storing the acquired current standard country code in settings.
In one possible design, in the number use scenario, number formatting is performed using the stored current standard country code; the method comprises the following steps: in the number usage scenario including call log display, dial input number, and incoming call number, the country code stored in setings.
In one possible design, the wearable device is a wrist machine.
An apparatus for formatting a wearable device number, applied to a wearable device, the apparatus comprising: the device comprises an acquisition module, a storage module and a format module, wherein:
the acquisition module is used for acquiring the current standard country code from the mobile terminal;
the storage module is used for storing the acquired current country code;
and the format module is used for carrying out number formatting by using the stored current standard country code in a number using scene.
According to another aspect of the embodiments of the present invention, there is provided a wearable device including: the wearable device number formatting method comprises the steps of storing a wearable device number format, and executing a computer program stored on the memory and capable of running on the processor.
According to another aspect of the embodiments of the present invention, there is provided a computer readable storage medium having stored thereon a program of a method for wearable device number formatting, which when executed by a processor implements the steps of the method for wearable device number formatting provided by the embodiments of the present invention.
Compared with the related art, the wearable device number formatting method, the wearable device number formatting device, the wearable device and the computer readable storage medium provided by the embodiment of the invention are applied to the wearable device, and comprise the following steps: acquiring a current standard country code from a mobile terminal; storing the obtained current country code; and in the number using scene, using the stored current standard country code to carry out number formatting. By the embodiment of the invention, the number of the wearable device can be formatted into the format in the mobile terminal according to the national information of the current mobile terminal under the condition that the wearable device does not have a GPS and a mobile communication network, so that the visual effect of a user on the formatted number is improved, and the user experience is improved.
Drawings
Fig. 1 is a schematic hardware structure diagram of an implementation manner of a wearable device according to an embodiment of the present invention;
fig. 2 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
fig. 3 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
fig. 4 is a hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;
fig. 5 is a hardware schematic diagram of an implementation manner of a wearable device provided in an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for formatting a number of a wearable device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for number formatting of a wearable device according to an embodiment of the present invention;
fig. 8 is a flowchart illustrating a method for formatting a number of a wearable device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a wearable device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The wearable device provided by the embodiment of the invention comprises a mobile terminal such as an intelligent bracelet, an intelligent watch, an intelligent mobile phone and the like. With the continuous development of screen technologies, screen forms such as flexible screens and folding screens appear, and mobile terminals such as smart phones can also be used as wearable devices. The wearable device provided in the embodiment of the present invention may include: a Radio Frequency (RF) unit, a WiFi module, an audio output unit, an a/V (audio/video) input unit, a sensor, a display unit, a user input unit, an interface unit, a memory, a processor, and a power supply.
In the following description, a wearable device will be taken as an example, please refer to fig. 1, which is a schematic diagram of a hardware structure of a wearable device for implementing various embodiments of the present invention, where the wearable device 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and that the wearable device may include more or fewer components than shown, or combine certain components, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 1:
the rf unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, the rf unit 101 may transmit uplink information to a base station, in addition, the downlink information sent by the base station may be received and then sent to the processor 110 of the wearable device for processing, the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the wearable device is updated, for example, after detecting that the geographic location where the wearable device is located changes, the base station may send a message notification of the change in the geographic location to the radio frequency unit 101 of the wearable device, and after receiving the message notification, the message notification may be sent to the processor 110 of the wearable device for processing, and the processor 110 of the wearable device may control the message notification to be displayed on the display panel 1061 of the wearable device; typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication, which may specifically include: the server may push a message notification of resource update to the wearable device through wireless communication to remind a user of updating the application program if the file resource corresponding to the application program in the server is updated after the wearable device finishes downloading the application program. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
In one embodiment, the wearable device 100 may access an existing communication network by inserting a SIM card.
In another embodiment, the wearable device 100 may be configured with an esim card (Embedded-SIM) to access an existing communication network, and by using the esim card, the internal space of the wearable device may be saved, and the thickness may be reduced.
It is understood that although fig. 1 shows the radio frequency unit 101, it is understood that the radio frequency unit 101 does not belong to the essential constituents of the wearable device, and can be omitted entirely as required within the scope not changing the essence of the invention. The wearable device 100 may implement a communication connection with other devices or a communication network through the wifi module 102 alone, which is not limited by the embodiments of the present invention.
WiFi belongs to short-distance wireless transmission technology, and the wearable device can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband Internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the wearable device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the wearable device 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the wearable device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
In one embodiment, the wearable device 100 includes one or more cameras, and by turning on the cameras, capturing of images can be realized, functions such as photographing and recording can be realized, and the positions of the cameras can be set as required.
The wearable device 100 also includes at least one sensor 105, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the wearable device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like.
In one embodiment, the wearable device 100 further comprises a proximity sensor, and the wearable device can realize non-contact operation by adopting the proximity sensor, so that more operation modes are provided.
In one embodiment, the wearable device 100 further comprises a heart rate sensor, which, when worn, enables detection of heart rate by proximity to the user.
In one embodiment, the wearable device 100 may further include a fingerprint sensor, and by reading the fingerprint, functions such as security verification can be implemented.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
In one embodiment, the display panel 1061 is a flexible display screen, and when the wearable device using the flexible display screen is worn, the screen can be bent, so that the wearable device is more conformable. Optionally, the flexible display screen may adopt an OLED screen body and a graphene screen body, in other embodiments, the flexible display screen may also be made of other display materials, and this embodiment is not limited thereto.
In one embodiment, the display panel 1061 of the wearable device may take a rectangular shape to wrap around when worn. In other embodiments, other approaches may be taken.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the wearable device. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
In one embodiment, the side of the wearable device 100 may be provided with one or more buttons. The button can realize various modes such as short-time pressing, long-time pressing, rotation and the like, thereby realizing various operation effects. The number of the buttons can be multiple, and different buttons can be combined for use to realize multiple operation functions.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the wearable device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the wearable device, and is not limited herein. For example, when receiving a message notification of an application program through the rf unit 101, the processor 110 may control the message notification to be displayed in a predetermined area of the display panel 1061, where the predetermined area corresponds to a certain area of the touch panel 1071, and perform a touch operation on the certain area of the touch panel 1071 to control the message notification displayed in the corresponding area on the display panel 1061.
The interface unit 108 serves as an interface through which at least one external device is connected to the wearable apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the wearable apparatus 100 or may be used to transmit data between the wearable apparatus 100 and the external device.
In one embodiment, the interface unit 108 of the wearable device 100 is configured as a contact, and is connected to another corresponding device through the contact to implement functions such as charging and connection. The contact can also be waterproof.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the wearable device, connects various parts of the entire wearable device by various interfaces and lines, and performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling up data stored in the memory 109, thereby performing overall monitoring of the wearable device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The wearable device 100 may further include a power source 111 (such as a battery) for supplying power to various components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown in fig. 1, the wearable device 100 may further include a bluetooth module or the like, which is not described herein. The wearable device 100 can be connected with other terminal devices through Bluetooth, so that communication and information interaction are realized.
Please refer to fig. 2-4, which are schematic structural diagrams of a wearable device according to an embodiment of the present invention. The wearable device in the embodiment of the invention comprises a flexible screen. When the wearable device is unfolded, the flexible screen is in a strip shape; when the wearable device is in a wearing state, the flexible screen is bent to be annular. Fig. 2 and 3 show the structural schematic diagram of the wearable device screen when the wearable device screen is unfolded, and fig. 4 shows the structural schematic diagram of the wearable device screen when the wearable device screen is bent.
Based on the above embodiments, it can be seen that, if the device is a watch, a bracelet, or a wearable device, the screen of the device may not cover the watchband region of the device, and may also cover the watchband region of the device. Here, the present application proposes an optional implementation manner, in which the device may be a watch, a bracelet, or a wearable device, and the device includes a screen and a connection portion. The screen can be a flexible screen, and the connecting part can be a watchband. Optionally, the screen of the device or the display area of the screen may partially or completely cover the wristband of the device. As shown in fig. 5, fig. 5 is a hardware schematic diagram of an implementation manner of a wearable device provided in an embodiment of the present application, where a screen of the device extends to two sides, and a part of the screen is covered on a watchband of the device. In other embodiments, the screen of the device may also be entirely covered on the watchband of the device, and this is not limited in this application.
Based on the above wearable device hardware structure, various embodiments of the method of the present invention are presented.
Please refer to fig. 6. The embodiment of the invention provides a wearable device number formatting method based on a paired mobile terminal, which is applied to wearable devices and comprises the following steps:
step S1, obtaining the current standard country code from the mobile terminal;
step S2, storing the acquired current country code;
and step S3, in the number using scene, using the stored current standard country code to format the number.
Further, before the step S1, acquiring the current standard country code from the mobile terminal, the method further includes: the wearable device and the mobile terminal are paired through Bluetooth.
Further, in step S1, the obtaining the current standard country code from the mobile terminal includes: after the wearable device is successfully paired with the mobile terminal, acquiring a current standard country code transmitted by the mobile terminal through Bluetooth; wherein the current standard country code is derived from one of the following approaches:
acquiring a mobile network connected with a current mobile terminal: gelphonymanager. getnetworkcountryiso ();
acquiring the position information of the current mobile terminal through a LocationManager and a Geocoder, and extracting a country code;
acquiring a country code through SIM card information: telephonymanager. getsimcrotyiiso ();
obtaining a standard country code through a currently set language: locale.
Further, in step S2, the storing the obtained current country code includes: and storing the acquired current standard country code in settings.
Further, in the step S3, in the number usage scenario, number formatting is performed by using the stored current standard country code; the method comprises the following steps: in the number usage scenario including call log display, dial input number, and incoming call number, the country code stored in setings. For example, the number of a mobile phone in china is formatted as xxx-xxxx-xxxx.
Preferably, the wearable device is a wrist machine.
The embodiment of the invention provides a wearable device number formatting method based on a paired mobile terminal, which is applied to wearable devices and comprises the following steps: acquiring a current standard country code from a mobile terminal; storing the obtained current country code; and in the number using scene, using the stored current standard country code to carry out number formatting. By the embodiment of the invention, the number of the wearable device can be formatted into the format in the mobile terminal according to the national information of the current mobile terminal under the condition that the wearable device does not have a GPS and a mobile communication network, so that the visual effect of a user on the formatted number is improved, and the user experience is improved.
Please refer to fig. 7. The embodiment of the invention provides a wearable device number formatting device based on a paired mobile terminal, which is applied to wearable devices and comprises: the device comprises an acquisition module 10, a storage module 20 and a format module 30, wherein:
the acquiring module 10 is configured to acquire a current standard country code from a mobile terminal;
the storage module 20 is configured to store the obtained current country code;
the format module 30 is configured to perform number formatting using the stored current standard country code in a number usage scenario.
Further, the apparatus further includes a pairing module configured to pair the wearable device and the mobile terminal through bluetooth.
Further, the obtaining module 10 is configured to obtain a current standard country code from the mobile terminal; the method comprises the following steps: after the wearable device is successfully paired with the mobile terminal, acquiring a current standard country code transmitted by the mobile terminal through Bluetooth; wherein the current standard country code is derived from one of the following approaches:
acquiring a mobile network connected with a current mobile terminal: gelphonymanager. getnetworkcountryiso ();
acquiring the position information of the current mobile terminal through a LocationManager and a Geocoder, and extracting a country code;
acquiring a country code through SIM card information: telephonymanager. getsimcrotyiiso ();
obtaining a standard country code through a currently set language: locale.
Further, the storage module 20 is configured to store the obtained current country code, and includes: and storing the acquired current standard country code in settings.
Further, the format module is used for performing number formatting by using the stored current standard country code in a number using scene; the method comprises the following steps: in the number usage scenario including call log display, dial input number, and incoming call number, the country code stored in setings. For example, the number of a mobile phone in china is formatted as xxx-xxxx-xxxx.
Preferably, the wearable device is a wrist machine.
The embodiment of the invention provides a wearable device number formatting device based on a paired mobile terminal, which is applied to wearable devices and comprises the following components: the device comprises an acquisition module, a storage module and a format module, wherein: the acquisition module is used for acquiring the current standard country code from the mobile terminal; the storage module is used for storing the acquired current country code; and the format module is used for carrying out number formatting by using the stored current standard country code in a number using scene. By the embodiment of the invention, the number of the wearable device can be formatted into the format in the mobile terminal according to the national information of the current mobile terminal under the condition that the wearable device does not have a GPS and a mobile communication network, so that the visual effect of a user on the formatted number is improved, and the user experience is improved.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
The technical solution of the present invention is further described in detail with reference to the following examples.
Please refer to fig. 8.
In this embodiment, the wearable device is described by taking a wrist machine as an example.
The embodiment of the invention provides a wrist phone number formatting method based on a paired mobile terminal, which is applied to a wrist phone and comprises the following steps:
and S501, the wrist machine is paired with the mobile terminal through Bluetooth.
Step S502, acquiring a current standard country code from the mobile terminal; the method comprises the following steps: after the wrist machine is successfully paired with the mobile terminal, acquiring a current standard country code transmitted by the mobile terminal through Bluetooth; wherein the current standard country code is derived from the following approaches:
(1) acquiring a mobile network telephony manager, getNetworkCountryIso (), which is connected with a current mobile terminal;
(2) the current position information is obtained through LocationManager and Geocoder, and then the country code is extracted.
(3) Acquiring a country code through SIM card information: telephonymanager. getsimconduryiso ().
(4) Obtaining a standard country code through a currently set language: locale.
Step S503, storing the obtained current standard country code in settings.
Step S504, in the number usage scenario including call record display, dial input number, and incoming call number, number formatting is performed using the country code stored in settings. For example, the cellular phone number in china is formatted as xxx-xxxx-xxxx.
The embodiment of the invention provides a wearable device number formatting method based on a paired mobile terminal, which is applied to wearable devices and comprises the following steps: acquiring a current standard country code from a mobile terminal; storing the obtained current country code; and in the number using scene, using the stored current standard country code to carry out number formatting. By the embodiment of the invention, the number of the wearable device can be formatted into the format in the mobile terminal according to the national information of the current mobile terminal under the condition that the wearable device does not have a GPS and a mobile communication network, so that the visual effect of a user on the formatted number is improved, and the user experience is improved.
In addition, an embodiment of the present invention further provides a wearable device, as shown in fig. 9, where the wearable device 800 includes: a memory 802, a processor 801 and one or more computer programs stored in the memory 802 and operable on the processor 801, the memory 802 and the processor 801 being coupled together by a bus system 803, the one or more computer programs when executed by the processor 801 implementing the following steps of a method of wearable device number formatting provided by an embodiment of the present invention:
step S1, obtaining the current standard country code from the mobile terminal;
step S2, storing the acquired current country code;
and step S3, in the number using scene, using the stored current standard country code to format the number.
Further, before the step S1, acquiring the current standard country code from the mobile terminal, the method further includes: the wearable device and the mobile terminal are paired through Bluetooth.
Further, in step S1, the obtaining the current standard country code from the mobile terminal includes: after the wearable device is successfully paired with the mobile terminal, acquiring a current standard country code transmitted by the mobile terminal through Bluetooth; wherein the current standard country code is derived from one of the following approaches:
acquiring a mobile network connected with a current mobile terminal: gelphonymanager. getnetworkcountryiso ();
acquiring the position information of the current mobile terminal through a LocationManager and a Geocoder, and extracting a country code;
acquiring a country code through SIM card information: telephonymanager. getsimcrotyiiso ();
obtaining a standard country code through a currently set language: locale.
Further, in step S2, the storing the obtained current country code includes: and storing the acquired current standard country code in settings.
Further, in the step S3, in the number usage scenario, number formatting is performed by using the stored current standard country code; the method comprises the following steps: in the number usage scenario including call log display, dial input number, and incoming call number, the country code stored in setings. For example, the number of a mobile phone in china is formatted as xxx-xxxx-xxxx.
Preferably, the wearable device is a wrist machine.
The method disclosed in the above embodiments of the present invention may be applied to the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by instructions in the form of hardware, integrated logic circuits, or software in the processor 801. The processor 801 may be a general purpose processor, DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 801 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 802, and the processor 801 reads the information in the memory 802 to complete the steps of the aforementioned methods in conjunction with its hardware.
It is to be understood that the memory 802 of embodiments of the present invention can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a magnetic Random Access Memory (Flash Memory) or other Memory technologies, a Compact disc Read-Only Memory (CD-ROM), a Digital Versatile Disc (DVD), or other optical disc storage, magnetic cartridge, magnetic tape, magnetic Disk storage, or other magnetic storage devices; volatile Memory can be Random Access Memory (RAM), and by way of exemplary and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Double Data Rate Synchronous Random Access Memory (ESDRAM), Synchronous Link Dynamic Random Access Memory (SLDRAM), Direct Memory bus Random Access Memory (DRRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be noted that the wearable device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiment in detail, and technical features in the method embodiment are correspondingly applicable in the wearable device embodiment, which is not described herein again.
In addition, in an exemplary embodiment, the embodiment of the present invention further provides a computer storage medium, specifically a computer readable storage medium, for example, a memory 802 storing a computer program, where the computer storage medium stores one or more programs of the method for wearable device number formatting, and when the one or more programs of the method for wearable device number formatting are executed by the processor 801, the following steps of the method for wearable device number formatting provided by the embodiment of the present invention are implemented:
step S1, obtaining the current standard country code from the mobile terminal;
step S2, storing the acquired current country code;
and step S3, in the number using scene, using the stored current standard country code to format the number.
Further, before the step S1, acquiring the current standard country code from the mobile terminal, the method further includes: the wearable device and the mobile terminal are paired through Bluetooth.
Further, in step S1, the obtaining the current standard country code from the mobile terminal includes: after the wearable device is successfully paired with the mobile terminal, acquiring a current standard country code transmitted by the mobile terminal through Bluetooth; wherein the current standard country code is derived from one of the following approaches:
acquiring a mobile network connected with a current mobile terminal: gelphonymanager. getnetworkcountryiso ();
acquiring the position information of the current mobile terminal through a LocationManager and a Geocoder, and extracting a country code;
acquiring a country code through SIM card information: telephonymanager. getsimcrotyiiso ();
obtaining a standard country code through a currently set language: locale.
Further, in step S2, the storing the obtained current country code includes: and storing the acquired current standard country code in settings.
Further, in the step S3, in the number usage scenario, number formatting is performed by using the stored current standard country code; the method comprises the following steps: in the number usage scenario including call log display, dial input number, and incoming call number, the country code stored in setings. For example, the number of a mobile phone in china is formatted as xxx-xxxx-xxxx.
Preferably, the wearable device is a wrist machine.
It should be noted that, the method program embodiment and the method embodiment for wearable device number formatting on the computer-readable storage medium belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are applicable to the embodiments of the computer-readable storage medium, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A method for formatting a wearable device number is applied to a wearable device, and is characterized in that the method comprises the following steps:
acquiring a current standard country code from a mobile terminal;
storing the acquired current standard country code;
in a number using scene, using the stored current standard country code to carry out number formatting;
wherein, before the obtaining the current standard country code from the mobile terminal, the method further comprises: the wearable device is paired with the mobile terminal through Bluetooth;
wherein, the obtaining the current standard country code from the mobile terminal includes: after the wearable device is successfully paired with the mobile terminal, acquiring a current standard country code transmitted by the mobile terminal through Bluetooth;
wherein the current standard country code is derived from one of the following approaches:
acquiring a country code by acquiring a mobile network connected with a current mobile terminal: gelphonymanager. getnetworkcountryiso ();
acquiring the position information of the current mobile terminal through a LocationManager and a Geocoder, and extracting a country code;
acquiring a country code through SIM card information: telephonymanager. getsimcrotyiiso ();
obtaining a standard country code through a currently set language: locale.
2. The method according to claim 1, wherein the storing the obtained current standard country code comprises: and storing the acquired current standard country code in settings.
3. The method according to claim 2, wherein in the number usage scenario, number formatting is performed using the stored current standard country code; the method comprises the following steps: in the number usage scenario including call log display, dial input number, and incoming call number, the country code stored in setings.
4. The method of claim 1, wherein the wearable device is a wrist machine.
5. An apparatus for formatting a wearable device number, applied to the method for formatting a wearable device number according to any one of claims 1 to 4, the apparatus comprising: the device comprises an acquisition module, a storage module and a format module, wherein:
the acquisition module is used for acquiring the current standard country code from the mobile terminal;
the storage module is used for storing the acquired current standard country code;
the format module is used for carrying out number formatting by using the stored current standard country code in a number using scene;
the device further comprises a pairing module, a matching module and a matching module, wherein the pairing module is used for pairing the wearable equipment and the mobile terminal through Bluetooth;
the acquisition module is used for acquiring a current standard country code transmitted by the mobile terminal through Bluetooth after the wearable device is successfully paired with the mobile terminal;
the acquisition module acquires the current standard country code from one of the following ways:
acquiring a country code by acquiring a mobile network connected with a current mobile terminal: gelphonymanager. getnetworkcountryiso ();
acquiring the position information of the current mobile terminal through a LocationManager and a Geocoder, and extracting a country code;
acquiring a country code through SIM card information: telephonymanager. getsimcrotyiiso ();
obtaining a standard country code through a currently set language: locale.
6. A wearable device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of a method of wearable device number formatting according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program of a method of wearable device number formatting, which program, when executed by a processor, implements a method of wearable device number formatting according to any one of claims 1 to 4.
CN201910326032.3A 2019-04-23 2019-04-23 Wearable device, number formatting method and device thereof, and storage medium Active CN110138965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910326032.3A CN110138965B (en) 2019-04-23 2019-04-23 Wearable device, number formatting method and device thereof, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910326032.3A CN110138965B (en) 2019-04-23 2019-04-23 Wearable device, number formatting method and device thereof, and storage medium

Publications (2)

Publication Number Publication Date
CN110138965A CN110138965A (en) 2019-08-16
CN110138965B true CN110138965B (en) 2021-09-14

Family

ID=67570720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910326032.3A Active CN110138965B (en) 2019-04-23 2019-04-23 Wearable device, number formatting method and device thereof, and storage medium

Country Status (1)

Country Link
CN (1) CN110138965B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230023308A (en) * 2021-08-10 2023-02-17 삼성전자주식회사 Electronic device and method for connecting external device thereof

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100929090B1 (en) * 2003-01-22 2009-11-30 삼성전자주식회사 Wireless-terminal for auto-managing national code and method for storing and searching phone number using the wireless-terminal
US8483716B1 (en) * 2011-04-01 2013-07-09 Google Inc. Network and location based phone number format identification
CN103037058B (en) * 2012-12-14 2016-03-30 中兴通讯股份有限公司 Based on the number display of mobile terminal, device and mobile terminal
US20140323101A1 (en) * 2013-04-29 2014-10-30 Google Inc. Phone Number Format Suggestion
CN105722065B (en) * 2016-02-18 2019-08-27 青岛海信移动通信技术股份有限公司 A kind of communication means, without card wearable device and mobile terminal
CN106210232A (en) * 2016-06-30 2016-12-07 维沃移动通信有限公司 The storage method of the telephone number of a kind of mobile terminal and mobile terminal
CN107135479A (en) * 2017-04-10 2017-09-05 中兴通讯股份有限公司 A kind of location information acquisition method, device and intelligent watch
CN107613082A (en) * 2017-08-28 2018-01-19 广东小天才科技有限公司 A kind of number management method, device, intelligent watch and storage medium
CN108682121A (en) * 2018-04-10 2018-10-19 广东小天才科技有限公司 Danger early warning method, apparatus, equipment and the storage medium of Wearable
CN109600740B (en) * 2018-12-21 2023-01-10 西安良方企业信息咨询有限公司 File downloading method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN110138965A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN109982179B (en) Audio signal output method and device, wearable device and storage medium
CN110299100B (en) Display direction adjustment method, wearable device and computer readable storage medium
CN110350935B (en) Audio signal output control method, wearable device and readable storage medium
CN110098845B (en) Message processing method, wearable device, mobile terminal and readable storage medium
CN110177209B (en) Video parameter regulation and control method, device and computer readable storage medium
CN109976612B (en) Application function implementation method, wearable device, mobile phone and computer-readable storage medium
CN110072295B (en) Dual-channel communication method, device, first terminal and medium
CN109947524B (en) Interface display method, wearable device and computer readable storage medium
CN110139270B (en) Wearable device pairing method, wearable device and computer readable storage medium
CN110071866B (en) Instant messaging application control method, wearable device and storage medium
CN110069200B (en) Wearable device input control method, wearable device and storage medium
CN110086808B (en) Account login control method and device and computer readable storage medium
CN110177208B (en) Video recording association control method, equipment and computer readable storage medium
CN110072071B (en) Video recording interaction control method, equipment and computer readable storage medium
CN110213637B (en) Method for adding watermark to video file, wearable device and readable storage medium
CN109933187B (en) Wearing equipment operation control method, wearing equipment and computer readable storage medium
CN110138965B (en) Wearable device, number formatting method and device thereof, and storage medium
CN110657794A (en) Compass calibration method of wearable device, wearable device and storage medium
CN109976613B (en) Text input implementation method, wearable device and computer-readable storage medium
CN110083205B (en) Page switching method, wearable device and computer-readable storage medium
CN110213441B (en) Voice control method, wearable device and computer-readable storage medium
CN109901812B (en) Volume adjustment method for wearable device, wearable device and readable storage medium
CN112566089A (en) Power consumption saving method, intelligent wearable device and computer readable storage medium
CN110111786B (en) Audio processing method, equipment and computer readable storage medium
CN110187950B (en) Method for adjusting picture display position, wearable device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant