CN104902056A - Method and device for storing phone number, and mobile communication terminal - Google Patents

Method and device for storing phone number, and mobile communication terminal Download PDF

Info

Publication number
CN104902056A
CN104902056A CN201510284055.4A CN201510284055A CN104902056A CN 104902056 A CN104902056 A CN 104902056A CN 201510284055 A CN201510284055 A CN 201510284055A CN 104902056 A CN104902056 A CN 104902056A
Authority
CN
China
Prior art keywords
length
digital information
telephone number
phone number
type
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.)
Granted
Application number
CN201510284055.4A
Other languages
Chinese (zh)
Other versions
CN104902056B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510284055.4A priority Critical patent/CN104902056B/en
Publication of CN104902056A publication Critical patent/CN104902056A/en
Application granted granted Critical
Publication of CN104902056B publication Critical patent/CN104902056B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for storing a phone number, and a mobile communication terminal. The method comprises the following steps of receiving an edit instruction of the phone number, wherein the edit instruction carries digital information; confirming the type of the phone number according to the digital information; determining whether the length of the received digital information is equal to the length matched with the type of the phone number; and outputting prompt information according to a determined result. Through confirming the type of the phone number in a process of receiving the edit instruction of the phone number, determining whether the length of the digital information carried in the edit instruction is correct according to the type of the phone number, and outputting different prompts according to the different judging results, the length and the district of the phone number are guaranteed, and the accuracy in a process of storing the phone number by the user is improved.

Description

A kind of method of storing phone number, device and mobile communication terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method of storing phone number, device and mobile communication terminal.
Background technology
Often can cause depositing more or deposit less an even long number due to a variety of causes when preservation phone; particularly old man's eyes are bad when making; more easily there is this situation; to by the time transfer to rear batallion prompting number invalid rear just know before number preserve wrong, cause puzzlement to user.
Summary of the invention
The invention provides a kind of method of storing phone number, device and mobile communication terminal, it by confirming the type of telephone number in the edit instruction process of receiving dialed number, judge that according to the type of telephone number whether the length of the digital information of carrying in edit instruction is correct, different promptings is exported according to different judged results, thus ensure that the length of telephone number and area are all accurate, improve the accuracy in user's storing phone number process.
For realizing above-mentioned design, the present invention by the following technical solutions:
Adopt a kind of method of storing phone number on the one hand, comprising:
The edit instruction of receiving dialed number, described edit instruction carries digital information;
The type of described telephone number is confirmed according to described digital information;
Determine that whether the length of the described digital information received is identical with the length of the type matching of described telephone number;
Information is exported according to determination result.
Wherein, the described type extracting described telephone number from described digital information, comprising:
Confirm that described telephone number is phone number or base number according to the first place in described digital information;
When described telephone number is base number, confirm the length of base number corresponding to the area at these telephone number places and this area according to front 3 or 4 of described digital information.
Wherein, before the edit instruction of described receiving dialed number, also comprise:
Area and 3 of correspondence or the area code of 4 of prestoring and home Tel code length information.
Wherein, described according to determination result output information, comprising: when the length of the described digital information received is identical with the length of the type matching of described telephone number, described digital information shows by the first color and exports this number location; When the length of the described digital information received is different from the length of the type matching of described telephone number, described digital information the second color shows.
Wherein, also comprise:
When receiving storage instruction, if the length of described digital information received is not identical with the length of the type of the telephone number of confirmation, output error is pointed out.
Adopt a kind of device of storing phone number on the other hand, comprising:
Telephone number receiving element, for the edit instruction of receiving dialed number, described edit instruction carries digital information;
Type judging unit, for confirming the type of described telephone number according to described digital information;
Number confirmation unit, whether the length for the length with the type matching of described telephone number of determining the described digital information received is identical;
Information output unit, for exporting information according to determination result.
Wherein, described type judging unit, comprising:
Phone type judge module, for confirming that according to the first place in described digital information described telephone number is phone number or base number;
Regional population judge module, for when described telephone number is base number, confirms the length of base number corresponding to the area at these telephone number places and this area according to front 3 or 4 of described digital information.Wherein, also comprise:
Area prestores unit, for 3 of prestore area and correspondence thereof or the area code of 4 and home Tel code length information.
Wherein, described information output unit, specifically for: when the length of the described digital information received is identical with the length of the type matching of described telephone number, described digital information shows by the first color and exports this number location; When the length of the described digital information received is different from the length of the type matching of described telephone number, described digital information the second color shows.
Wherein, also comprise:
Miscue unit, for when receiving storage instruction, if the length of described digital information received is not identical with the length of the type of the telephone number of confirmation, output error is pointed out.
Finally adopt a kind of mobile communication terminal, comprise the device of the storing phone number described in aforementioned any one.
Beneficial effect of the present invention is: by confirming the type of telephone number in the edit instruction process of receiving dialed number, judge that according to the type of telephone number whether the length of the digital information of carrying in edit instruction is correct, different promptings is exported according to different judged results, thus ensure that the length of telephone number and area are all accurate, improve the accuracy in user's storing phone number process.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing the embodiment of the present invention is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the content of the embodiment of the present invention and these accompanying drawings.
Fig. 1 is the method flow diagram of the first embodiment of the method for a kind of storing phone number provided in the specific embodiment of the invention.
Fig. 2 is the method flow diagram of the second embodiment of the method for a kind of storing phone number provided in the specific embodiment of the invention.
Fig. 3 is the block diagram of the first embodiment of the device of a kind of storing phone number provided in the specific embodiment of the invention.
Fig. 4 is the block diagram of the second embodiment of the device of a kind of storing phone number provided in the specific embodiment of the invention.
Embodiment
The technical problem solved for making the present invention, the technical scheme of employing and the technique effect that reaches are clearly, be described in further detail below in conjunction with the technical scheme of accompanying drawing to the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, it is the method flow diagram of the embodiment of the method for a kind of storing phone number provided in the specific embodiment of the invention.As shown in the figure, the method, comprising:
Step S101: the edit instruction of receiving dialed number, described edit instruction carries digital information.
In the process of telephone number editor, digital information can be increased one by one in edit instruction, such as certain number is 13012345678, so in edit instruction process, digital information can from 1,13,130 last progressive updating to 13012345678, in this programme, ensure exactly in telephone number input process, judge whether number has numeral to omit or input telephone number and want the telephone number inputted whether to have the mistake of region.
Step S102: the type confirming described telephone number according to described digital information.
In Continental Area, the first place of cell-phone number is 1; If home Tel band area code, first place is 0, if be not with area code, first place is any one in 2-8.In this programme, cell-phone number and home Tel are not from using the communication tool of this telephone number to distinguish, but distinguish from the structure of telephone number.Specifically, the cell-phone number of such as Continental Area refers to that first place is 1 telephone number of 11 altogether, and the home Tel of Continental Area comprises area code and other 7 or 8 bit digital.Certainly, for the home Tel of this area, be often do not need area code.
Step S103: determine that whether the length of the described digital information received is identical with the length of the type matching of described telephone number.
Step S104: export information according to determination result.
In sum, by confirming the type of telephone number in the edit instruction process of receiving dialed number, judge that according to the type of telephone number whether the length of the digital information of carrying in edit instruction is correct, different promptings is exported according to different judged results, thus ensure that the length of telephone number and area are all accurate, improve the accuracy in user's storing phone number process.
Please refer to Fig. 2, it is the method flow diagram of the embodiment of the method for a kind of storing phone number provided in the specific embodiment of the invention.As shown in the figure, the method, comprising:
Step S201: area and 3 of correspondence or the area code of 4 of prestoring and home Tel code length information.
In CONTINENTAL AREA OF CHINA, the length of area code is generally 3 (such as Beijing, Shanghai, Wuhan) or 4 (such as Shenzhen, Changsha, Shijiazhuang); The home Tel code length of big city or urban agglomeration is 8, such as Beijing, Chang Zhu Tan urban agglomeration, is 7 compared with the home Tel of small city, such as three line cities of the overwhelming majority.
Step S202: the edit instruction of receiving dialed number, described edit instruction carries digital information.
When the length of the described digital information received is identical with the length of the type of described telephone number, described digital information the first color shows; When the length of the described digital information received is different from the length of the type of described telephone number, described digital information the second color shows.Represent that whether the input of number is correct, to the prompting that user is different by different colors.
Step S203: confirm that described telephone number is phone number or base number according to the first place in described digital information.
Generally speaking, user only can store personal number, namely previously described cell-phone number or home Tel, generally can not preserve for various service calls and public service phone, so when judging, only needs the first place judging number.First place is 1, is cell-phone number, first place be 0 or 2-8 in Any Digit be namely judged as home Tel.
Step S204: when described telephone number is base number, confirms the length of base number corresponding to the area at these telephone number places and this area according to front 3 or 4 of described digital information.
Different cities, home Tel code length is different, specifically judges according to area code.For in digital information not with area code, then directly to judge according to the on-site home Tel length of this mobile phone.
Further, if preserve overseas calls number, then first judge international area code, then judge the domestic area code of this state.Concrete identical with the judgement of regional area code, be not described further at this.
Step S205: determine that whether the length of the described digital information received is identical with the length of the type matching of described telephone number.
Step S206: when the length of the described digital information received is identical with the length of the type matching of described telephone number, described digital information shows by the first color and exports this number location; When the length of the described digital information received is different from the length of the type matching of described telephone number, described digital information the second color shows.
Step S207: when receiving storage instruction, if the length of described digital information received is not identical with the length of the type of the telephone number of confirmation, output error is pointed out.
When receiving storage instruction, if number is wrong, then output error prompting, if receive the prompting ignoring mistake further, then directly stores.
In sum, by confirming the type of telephone number in the edit instruction process of receiving dialed number, judge that according to the type of telephone number whether the length of the digital information of carrying in edit instruction is correct, different promptings is exported according to different judged results, thus ensure that the length of telephone number and area are all accurate, improve the accuracy in user's storing phone number process.Continuous prompting in telephone number storing process also clearly shows telephone number correctness immediately, so that user confirms number, location is correct in the area of special suggestion telephone number.
Be below the embodiment of the device of a kind of storing phone number of this programme, the embodiment of the device of storing phone number realizes based on the embodiment of the method for storing phone number, and description not most in the embodiment of device, please refer to the embodiment of method.
Please refer to Fig. 3, it is the block diagram of the first embodiment of the device of a kind of storing phone number provided in the specific embodiment of the invention.As shown in the figure, this device, comprising:
Telephone number receiving element 310, for the edit instruction of receiving dialed number, described edit instruction carries digital information.
Type judging unit 320, for confirming the type of described telephone number according to described digital information.
Number confirmation unit 330, whether the length for the length with the type matching of described telephone number of determining the described digital information received is identical.
Information output unit 340, for exporting information according to determination result.
In sum, the collaborative work of above-mentioned each unit by confirming the type of telephone number in the edit instruction process of receiving dialed number, judge that according to the type of telephone number whether the length of the digital information of carrying in edit instruction is correct, different promptings is exported according to different judged results, thus ensure that the length of telephone number and area are all accurate, improve the accuracy in user's storing phone number process.
Please refer to Fig. 4, it is the block diagram of the second embodiment of the device of a kind of storing phone number provided in the specific embodiment of the invention.As shown in the figure, this device, comprising:
Telephone number receiving element 310, for the edit instruction of receiving dialed number, described edit instruction carries digital information.
Type judging unit 320, for confirming the type of described telephone number according to described digital information.
Number confirmation unit 330, for when the length of the described digital information received is identical with the length of the type of described telephone number, exports this telephone number location.
Information output unit 340, for exporting information according to determination result.
Wherein, described type judging unit 320, comprising:
Phone type judge module 321, for confirming that according to the first place in described digital information described telephone number is phone number or base number;
Regional population judge module 322, for when described telephone number is base number, confirms the length of base number corresponding to the area at these telephone number places and this area according to front 3 or 4 of described digital information.
Wherein, also comprise:
Area prestores unit 300, for 3 of prestore area and correspondence thereof or the area code of 4 and home Tel code length information.
Wherein, described information output unit, specifically for: when the length of the described digital information received is identical with the length of the type matching of described telephone number, described digital information shows by the first color and exports this number location; When the length of the described digital information received is different from the length of the type matching of described telephone number, described digital information the second color shows.
Wherein, also comprise:
Miscue unit 350, for when receiving storage instruction, if the length of described digital information received is not identical with the length of the type of the telephone number of confirmation, output error is pointed out.
In sum, the collaborative work of above-mentioned each unit, by confirming the type of telephone number in the edit instruction process of receiving dialed number, judge that according to the type of telephone number whether the length of the digital information of carrying in edit instruction is correct, different promptings is exported according to different judged results, thus ensure that the length of telephone number and area are all accurate, improve the accuracy in user's storing phone number process.Continuous prompting in telephone number storing process also clearly shows telephone number correctness immediately, so that user confirms number, location is correct in the area of special suggestion telephone number.
Finally additionally provide a kind of mobile communication terminal in the specific embodiment of the invention, comprise the device of the storing phone number described in aforementioned any one.
Below know-why of the present invention is described in conjunction with specific embodiments.These describe just in order to explain principle of the present invention, and can not be interpreted as limiting the scope of the invention by any way.Based on explanation herein, those skilled in the art does not need to pay performing creative labour can associate other embodiment of the present invention, and these modes all will fall within protection scope of the present invention.

Claims (11)

1. a method for storing phone number, is characterized in that, comprising:
The edit instruction of receiving dialed number, described edit instruction carries digital information;
The type of described telephone number is confirmed according to described digital information;
Determine that whether the length of the described digital information received is identical with the length of the type matching of described telephone number;
Information is exported according to determination result.
2. the method for storing phone number according to claim 1, is characterized in that, the described type extracting described telephone number from described digital information, comprising:
Confirm that described telephone number is phone number or base number according to the first place in described digital information;
When described telephone number is base number, confirm the length of base number corresponding to the area at these telephone number places and this area according to front 3 or 4 of described digital information.
3. the method for storing phone number according to claim 2, is characterized in that, before the edit instruction of described receiving dialed number, also comprises:
Area and 3 of correspondence or the area code of 4 of prestoring and home Tel code length information.
4. the method for storing phone number according to claim 1, it is characterized in that, described according to determination result output information, comprise: when the length of the described digital information received is identical with the length of the type matching of described telephone number, described digital information shows by the first color and exports this number location; When the length of the described digital information received is different from the length of the type matching of described telephone number, described digital information the second color shows.
5. the method for storing phone number according to claim 1, is characterized in that, also comprises:
When receiving storage instruction, if the length of described digital information received is not identical with the length of the type of the telephone number of confirmation, output error is pointed out.
6. a device for storing phone number, is characterized in that, comprising:
Telephone number receiving element, for the edit instruction of receiving dialed number, described edit instruction carries digital information;
Type judging unit, for confirming the type of described telephone number according to described digital information;
Number confirmation unit, whether the length for the length with the type matching of described telephone number of determining the described digital information received is identical;
Information output unit, for exporting information according to determination result.
7. the device of storing phone number according to claim 6, is characterized in that, described type judging unit, comprising:
Phone type judge module, for confirming that according to the first place in described digital information described telephone number is phone number or base number;
Regional population judge module, for when described telephone number is base number, confirms the length of base number corresponding to the area at these telephone number places and this area according to front 3 or 4 of described digital information.
8. the device of storing phone number according to claim 7, is characterized in that, also comprises:
Area prestores unit, for 3 of prestore area and correspondence thereof or the area code of 4 and home Tel code length information.
9. the device of storing phone number according to claim 6, it is characterized in that, described information output unit, specifically for: when the length of the described digital information received is identical with the length of the type matching of described telephone number, described digital information shows by the first color and exports this number location; When the length of the described digital information received is different from the length of the type matching of described telephone number, described digital information the second color shows.
10. the device of storing phone number according to claim 6, is characterized in that, also comprises:
Miscue unit, for when receiving storage instruction, if the length of described digital information received is not identical with the length of the type of the telephone number of confirmation, output error is pointed out.
11. 1 kinds of mobile communication terminals, is characterized in that, comprise the device of the storing phone number as described in any one of claim 6-10.
CN201510284055.4A 2015-05-28 2015-05-28 A kind of method, apparatus and mobile communication terminal for storing telephone number Expired - Fee Related CN104902056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510284055.4A CN104902056B (en) 2015-05-28 2015-05-28 A kind of method, apparatus and mobile communication terminal for storing telephone number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510284055.4A CN104902056B (en) 2015-05-28 2015-05-28 A kind of method, apparatus and mobile communication terminal for storing telephone number

Publications (2)

Publication Number Publication Date
CN104902056A true CN104902056A (en) 2015-09-09
CN104902056B CN104902056B (en) 2018-01-19

Family

ID=54034450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510284055.4A Expired - Fee Related CN104902056B (en) 2015-05-28 2015-05-28 A kind of method, apparatus and mobile communication terminal for storing telephone number

Country Status (1)

Country Link
CN (1) CN104902056B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933461A (en) * 2017-03-09 2017-07-07 携程旅游信息技术(上海)有限公司 Phone number input method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986672A (en) * 2010-11-08 2011-03-16 中兴通讯股份有限公司 Message processing method and device
CN104836896A (en) * 2015-03-31 2015-08-12 北京奇虎科技有限公司 Method and device for carrying out error correction prompt to telephone number

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986672A (en) * 2010-11-08 2011-03-16 中兴通讯股份有限公司 Message processing method and device
CN104836896A (en) * 2015-03-31 2015-08-12 北京奇虎科技有限公司 Method and device for carrying out error correction prompt to telephone number

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933461A (en) * 2017-03-09 2017-07-07 携程旅游信息技术(上海)有限公司 Phone number input method and system

Also Published As

Publication number Publication date
CN104902056B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN1848878B (en) Method for realizing one card multi-number business in mobile communication system
CN104053126B (en) Show wireless communication terminal, the device and method of both call sides position
CN101640727A (en) Method and terminal for intelligent dialing
WO2006048709A3 (en) Completion of an international calling number in a mobile communication terminal
CN101321394B (en) Call subscriber number authentication method and system
CN106171019A (en) Determine the method for terminal roaming status, device, terminal and server
CN103152459B (en) A kind of method that user operation is pointed out and terminal
US20130012169A1 (en) Dual Tone Multi-Frequency Signal Transmission Method and Device
CN103118358A (en) Unique identification mobile phone user registration method
CN104902056A (en) Method and device for storing phone number, and mobile communication terminal
CN100479545C (en) Charging-information notifying method
CN106162812A (en) The automatic processing method of self-assisted voice business, device and mobile terminal
CN101309456A (en) Enquiry method for prepaid mobile terminal card balance and enquiry result feedback method
CN1984178A (en) Method for automatically displaying and quering home and mobile terminal
CN101150869A (en) A method and device for realizing intelligent communication of mobile terminal
CN104660811A (en) Terminal and system
CN105744503B (en) Information processing method and electronic equipment
CN104469720A (en) Method and system for calling back incoming call number
CN100579268C (en) A '+' code dialing method and system for the mobile console
CN110364160B (en) Method and device for executing voice command for electronic terminal
US7796745B2 (en) Systems and methods for automatic call completion
CN106899764A (en) A kind of method and device of incoming call prompting
CN101662522A (en) Method for dialing fixed telephone number in short message and terminal thereof
CN104461250A (en) Dialing keyboard information prompting method and system
CN102014186A (en) Method for automatically adding IP (Internet Protocol) number when mobile phone dials

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180119

CF01 Termination of patent right due to non-payment of annual fee