CN104902056B - A kind of method, apparatus and mobile communication terminal for storing telephone number - Google Patents

A kind of method, apparatus and mobile communication terminal for storing telephone number Download PDF

Info

Publication number
CN104902056B
CN104902056B CN201510284055.4A CN201510284055A CN104902056B CN 104902056 B CN104902056 B CN 104902056B CN 201510284055 A CN201510284055 A CN 201510284055A CN 104902056 B CN104902056 B CN 104902056B
Authority
CN
China
Prior art keywords
telephone number
length
digital information
type
area
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.)
Expired - Fee Related
Application number
CN201510284055.4A
Other languages
Chinese (zh)
Other versions
CN104902056A (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 kind of method, apparatus and mobile communication terminal for storing telephone number.This method, including:The edit instruction of telephone number is received, the edit instruction carries digital information;The type of the telephone number is confirmed according to the digital information;It is determined that whether the length of the digital information received is identical with the length of the type matching of the telephone number;According to determination result output prompt message.By the type that telephone number is confirmed during the edit instruction of telephone number is received, whether the length for the digital information for judging to carry in edit instruction according to the type of telephone number is correct, different promptings is exported according to different judged results, so as to ensure that the length of telephone number and area are accurate, the accuracy during user's storage telephone number is improved.

Description

A kind of method, apparatus and mobile communication terminal for storing telephone number
Technical field
The present invention relates to communication technical field, more particularly to a kind of method, apparatus and mobile communication for storing telephone number Terminal.
Background technology
It is special often because a variety of causes causes to deposit more or deposit less an even long number when phone is preserved When not to be that old man's eyes are bad make, it is easier to there is such case, when dial-out go with rear batallion's prompting number it is invalid after just know Number preserves wrong before road, causes to perplex to user.
The content of the invention
The invention provides a kind of method, apparatus and mobile communication terminal for storing telephone number, and it is by receiving electricity The type of telephone number is confirmed during the edit instruction of words number, judges to carry in edit instruction according to the type of telephone number Digital information length it is whether correct, different promptings is exported according to different judged result, so as to ensure that telephone number Length and area it is accurate, improve user store telephone number during accuracy.
To realize above-mentioned design, the present invention uses following technical scheme:
On the one hand using a kind of method for storing telephone number, including:
The edit instruction of telephone number is received, the edit instruction carries digital information;
The type of the telephone number is confirmed according to the digital information;
It is determined that whether the length of the digital information received is identical with the length of the type matching of the telephone number;
According to determination result output prompt message.
Wherein, the type that the telephone number is extracted from the digital information, including:
First place in the digital information confirms that the telephone number is phone number or base number;
When the telephone number is base number, the telephone number is confirmed according to first 3 of the digital information or 4 The length of base number corresponding to the area at place and this area.
Wherein, before the edit instruction for receiving telephone number, in addition to:
Prestore regional and its corresponding 3 or 4 area codes and base number length information.
Wherein, it is described according to determination result output prompt message, including:When the digital information received length with When the length of the type matching of the telephone number is identical, the digital information is shown with the first color and exports number place Area;When the length difference of the length and the type matching of the telephone number of the digital information received, the number Word information is shown with the second color.
Wherein, in addition to:
When receiving store instruction, if the length of the digital information received and the type of the telephone number confirmed Length differ, output error prompting.
On the other hand using a kind of device for storing telephone number, including:
Telephone number receiving unit, for receiving the edit instruction of telephone number, the edit instruction carries digital information;
Type judging unit, for confirming the type of the telephone number according to the digital information;
Number confirmation unit, for the length and the type of the telephone number of the digital information for determining to receive Whether the length matched somebody with somebody is identical;
Prompt message output unit, for according to determination result output prompt message.
Wherein, the type judging unit, including:
Phone type judge module, confirm that the telephone number is cell-phone number for the first place in the digital information Code or base number;
Regional population judge module, for when the telephone number is base number, according to before the digital information 3 The length of base number corresponding to position or 4 area and this areas confirmed where the telephone number.Wherein, in addition to:
The pre- memory cell in area, area code and base number length information for prestore regional and its corresponding 3 or 4.
Wherein, the prompt message output unit, is specifically used for:When the digital information received length with it is described When the length of the type matching of telephone number is identical, the digital information is shown with the first color and exports the number location Area;When the length difference of the length and the type matching of the telephone number of the digital information received, the numeral Information is shown with the second color.
Wherein, in addition to:
Miscue unit, for when receiving store instruction, if the length of the digital information received with really The length of the type for the telephone number recognized differs, output error prompting.
A kind of mobile communication terminal is finally used, includes the device of the storage telephone number described in foregoing any one.
Beneficial effects of the present invention are:By the class that telephone number is confirmed during the edit instruction of telephone number is received Type, whether the length for the digital information for judging to carry in edit instruction according to the type of telephone number is correct, is sentenced according to different Disconnected result exports different promptings, so as to ensure that the length of telephone number and area are accurate, improves user and stores phone Accuracy in number procedures.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, it can also be implemented according to the present invention The content of example and these accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of side of the first embodiment of the method for the storage telephone number provided in the specific embodiment of the invention Method flow chart.
Fig. 2 is a kind of side of the second embodiment of the method for the storage telephone number provided in the specific embodiment of the invention Method flow chart.
Fig. 3 is a kind of knot of the first embodiment of the device of the storage telephone number provided in the specific embodiment of the invention Structure block diagram.
Fig. 4 is a kind of knot of the second embodiment of the device of the storage telephone number provided in the specific embodiment of the invention Structure block diagram.
Embodiment
For make present invention solves the technical problem that, the technical scheme that uses and the technique effect that reaches it is clearer, below The technical scheme of the embodiment of the present invention will be described in further detail with reference to accompanying drawing, it is clear that described embodiment is only It is part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art exist The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is refer to, it is a kind of implementation of the method for the storage telephone number provided in the specific embodiment of the invention The method flow diagram of example.As illustrated, this method, including:
Step S101:The edit instruction of telephone number is received, the edit instruction carries digital information.
During telephone number editor, digital information can be increased in edit instruction one by one, such as certain number is 13012345678, then during edit instruction, digital information can from 1,13,130 last progressive updatings to 13012345678, in this programme, be ensuring that in telephone number input process, judge number whether have numeral omit or Person inputs telephone number and wants whether the telephone number of input has the mistake of region.
Step S102:The type of the telephone number is confirmed according to the digital information.
In Continental Area, the first place of cell-phone number is 1;If home Tel, with area code, first place is 0, if without area code, it is the first For any one in 2-8.In this programme, cell-phone number and home Tel are not to come area from using the communication tool of the telephone number Point, but distinguished from the structure of telephone number.Specifically, for example, Continental Area cell-phone number refer to it is the first for 1 11 altogether Telephone number, the home Tel of Continental Area include area code and other 7 or 8 bit digitals.Certainly, for the home Tel of this area, Area code is not needed often.
Step S103:It is determined that the length of the length of the digital information received and the type matching of the telephone number It is whether identical.
Step S104:According to determination result output prompt message.
In summary, by confirming the type of telephone number during the edit instruction of telephone number is received, according to electricity The type of words number judges whether the length of the digital information carried in edit instruction is correct, is exported according to different judged results Different promptings, so as to ensure that the length of telephone number and area it is accurate, improve user store telephone number during Accuracy.
Fig. 2 is refer to, it is a kind of implementation of the method for the storage telephone number provided in the specific embodiment of the invention The method flow diagram of example.As illustrated, this method, including:
Step S201:Prestore regional and its corresponding 3 or 4 area codes and base number length information.
In CONTINENTAL AREA OF CHINA, the length of area code be usually 3 (such as Beijing, Shanghai, Wuhan) or 4 (such as Shenzhen, Changsha, Shijiazhuang);The base number length of big city or urban agglomeration is 8, such as Beijing, Chang Zhu Tan urban agglomeration, compared with small city Home Tel be 7, such as the overwhelming majority three line cities.
Step S202:The edit instruction of telephone number is received, the edit instruction carries digital information.
When the length of the digital information received is identical with the length of the type of the telephone number, the numeral Information is shown with the first color;When the length of the digital information received is different from the length of the type of the telephone number When, the digital information is shown with the second color.Represent whether the input of number is correct with different colors, it is different to user Prompting.
Step S203:First place in the digital information confirms that the telephone number is phone number or home Tel Code.
In general, user can only store personal number, that is, previously described cell-phone number or home Tel, for various Service calls and public service phone will not typically preserve, so when being judged, it is only necessary to judge the first place of number. First place is 1, as cell-phone number, and first place is that the Any Digit in 0 or 2-8 is judged as home Tel.
Step S204:When the telephone number is base number, according to first 3 of the digital information or 4 confirmations The length of base number corresponding to area and this area where the telephone number.
Different cities, base number length is different, judges with specific reference to area code.For in digital information without area code , then directly judged according to the home Tel length in the mobile phone location.
Further, if preserving overseas calls number, then international area code is first judged, then judge state's inner region of the state Number.It is specifically identical with the judgement of regional area code, it is not described further herein.
Step S205:It is determined that the length of the length of the digital information received and the type matching of the telephone number It is whether identical.
Step S206:When the length phase of the length and the type matching of the telephone number of the digital information received Meanwhile the digital information is shown with the first color and exports the number location;When the digital information received During the length difference of length and the type matching of the telephone number, the digital information is shown with the second color.
Step S207:When receiving store instruction, if the length of the digital information received and the phone confirmed The length of the type of number differs, output error prompting.
When receiving store instruction, if number is wrong, output error prompting, ignore mistake if further received Prompting, then directly store by mistake.
In summary, by confirming the type of telephone number during the edit instruction of telephone number is received, according to electricity The type of words number judges whether the length of the digital information carried in edit instruction is correct, is exported according to different judged results Different promptings, so as to ensure that the length of telephone number and area it is accurate, improve user store telephone number during Accuracy.Continuous prompting in telephone number storing process also clearly shows telephone number correctness immediately, especially The area of prompt mobile phone number confirms that number location is correct so as to user.
It is below a kind of embodiment for the device for storing telephone number of this programme, stores the embodiment of the device of telephone number The embodiment of method based on storage telephone number is realized, the not most description in the embodiment of device, refer to the reality of method Apply example.
Fig. 3 is refer to, it is the first of the device of a kind of storage telephone number provided in the specific embodiment of the invention The block diagram of embodiment.As illustrated, the device, including:
Telephone number receiving unit 310, for receiving the edit instruction of telephone number, the edit instruction carries numeral letter Breath.
Type judging unit 320, for confirming the type of the telephone number according to the digital information.
Number confirmation unit 330, for the length and the class of the telephone number of the digital information for determining to receive Whether the length of type matching is identical.
Prompt message output unit 340, for according to determination result output prompt message.
In summary, the collaborative work of above-mentioned each unit during the edit instruction of telephone number is received by confirming electricity The type of number is talked about, whether the length for the digital information for judging to carry in edit instruction according to the type of telephone number is correct, root Different promptings is exported according to different judged results, so as to ensure that the length of telephone number and area are accurate, improves use Accuracy during family storage telephone number.
Fig. 4 is refer to, it is the second of the device of a kind of storage telephone number provided in the specific embodiment of the invention The block diagram of embodiment.As illustrated, the device, including:
Telephone number receiving unit 310, for receiving the edit instruction of telephone number, the edit instruction carries numeral letter Breath.
Type judging unit 320, for confirming the type of the telephone number according to the digital information.
Number confirmation unit 330, for when the length and the type of the telephone number of the digital information received Length it is identical when, export the telephone number location.
Prompt message output unit 340, for according to determination result output prompt message.
Wherein, the type judging unit 320, including:
Phone type judge module 321, confirm that the telephone number is hand for the first place in the digital information Machine number or base number;
Regional population judge module 322, for when the telephone number is base number, according to the digital information The length of base number corresponding to first 3 or 4 area and this areas confirmed where the telephone number.
Wherein, in addition to:
The pre- memory cell 300 in area, area code and base number length for prestore regional and its corresponding 3 or 4 are believed Breath.
Wherein, the prompt message output unit, is specifically used for:When the digital information received length with it is described When the length of the type matching of telephone number is identical, the digital information is shown with the first color and exports the number location Area;When the length difference of the length and the type matching of the telephone number of the digital information received, the numeral Information is shown with the second color.
Wherein, in addition to:
Miscue unit 350, for when receiving store instruction, if the length of the digital information received with The length of the type of the telephone number of confirmation differs, output error prompting.
In summary, the collaborative work of above-mentioned each unit, by confirming during the edit instruction of telephone number is received The type of telephone number, whether the length for the digital information for judging to carry in edit instruction according to the type of telephone number is correct, Different promptings is exported according to different judged results, so as to ensure that the length of telephone number and area are accurate, is improved User stores the accuracy during telephone number.Continuous prompting also clearly displaying immediately in telephone number storing process Telephone number correctness, the area of special suggestion telephone number confirm that number location is correct so as to user.
A kind of mobile communication terminal is finally additionally provided in the specific embodiment of the invention, including described in foregoing any one Store the device of telephone number.
The technical principle of the present invention is described above in association with specific embodiment.These descriptions are intended merely to explain the present invention's Principle, and limiting the scope of the invention can not be construed in any way.Based on explanation herein, the technology of this area Personnel would not require any inventive effort the other embodiments that can associate the present invention, and these modes are fallen within Within protection scope of the present invention.

Claims (5)

  1. A kind of 1. method for storing telephone number, it is characterised in that including:
    The edit instruction of telephone number is received, the edit instruction carries digital information;
    During the edit instruction of increase telephone number digits information one by one is received, the first place in the digital information is really It is phone number or base number to recognize the telephone number, when the telephone number is base number, is believed according to the numeral First 3 or 4 of breath confirm the length of base number corresponding to area and this area where the telephone number, so as to confirm State the type of telephone number;Wherein, in the digital information without area code, then directly according to the seat in the mobile phone location Machine length is judged;
    It is determined that whether the length of the digital information received is identical with the length of the type matching of the telephone number;
    When the length of the digital information received is identical with the length of the type matching of the telephone number, the numeral Information is shown with the first color and exports the number location;Length and the phone when the digital information received During the length difference of the type matching of number, the digital information is shown with the second color;
    When receiving store instruction, if the length of the length of the digital information received and the type of the telephone number of confirmation Degree differs, and output error prompting, if further receiving the prompting for ignoring mistake, directly stores.
  2. 2. the method for storage telephone number according to claim 1, it is characterised in that the editor for receiving telephone number Before instruction, in addition to:
    Prestore regional and its corresponding 3 or 4 area codes and base number length information.
  3. A kind of 3. device for storing telephone number, it is characterised in that including:
    Telephone number receiving unit, for receiving the edit instruction of telephone number, the edit instruction carries digital information;
    Type judging unit includes:Phone type judge module, for receiving the volume for increasing telephone number digits information one by one Collect in instruction process, the first place in the digital information confirms that the telephone number is phone number or base number;Ground Area's type judging module, for when the telephone number is base number, according to first 3 of the digital information or 4 really The length of base number corresponding to area and this area recognized where the telephone number;Wherein, in the digital information not With area code, then directly judged according to the home Tel length in the mobile phone location;
    Number confirmation unit, for the length and the type matching of the telephone number of the digital information for determining to receive Whether length is identical;
    Prompt message output unit, for when the length and the type matching of the telephone number of the digital information received Length it is identical when, the digital information is shown with the first color and exports the number location;When the number received During the length difference of the length of word information and the type matching of the telephone number, the digital information is shown with the second color;
    Miscue unit, for when receiving store instruction, if the length of the digital information received is with confirming The length of the type of telephone number differs, and output error prompting, if further receiving the prompting for ignoring mistake, directly deposits Storage.
  4. 4. the device of storage telephone number according to claim 3, it is characterised in that also include:
    The pre- memory cell in area, area code and base number length information for prestore regional and its corresponding 3 or 4.
  5. 5. a kind of mobile communication terminal, it is characterised in that including the storage telephone number as described in claim any one of 3-4 Device.
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 CN104902056A (en) 2015-09-09
CN104902056B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN104902056A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
US20060094353A1 (en) Mobile communication terminal and method therefore
CN104053126B (en) Show wireless communication terminal, the device and method of both call sides position
US20040204117A1 (en) Roamers' friendly phone book - method and device
CN101951432A (en) Method, device and mobile terminal for adding contact information into address book
CN103118206A (en) System and method for displaying menus based on network generated interactive voice response information
US20090298463A1 (en) System and method for searching for most economical call mode
US8243915B1 (en) Network and location based phone number format identification
CN104135556A (en) Call method and call device based on mobile terminal
KR101380450B1 (en) Intelligent telephone number processing
CN104159198A (en) Method of displaying position of contact in call interface, mobile terminal and server
CN104902056B (en) A kind of method, apparatus and mobile communication terminal for storing telephone number
US20130012169A1 (en) Dual Tone Multi-Frequency Signal Transmission Method and Device
CN105007365B (en) A kind of extension number dialing method and device
EP2760185B1 (en) Portable telephone, communication connection control method, and program
TW201528763A (en) Telephone dialing device and method for automatic conversion
CN105407205A (en) Data output method and data output apparatus
CN101674371A (en) Method and device for processing phone numbers in short messages
CN103929836A (en) Tablet personal computer wireless communication method based on Bluetooth protocol
CN103167118A (en) System and method for quickly positioning places in mobile phone calling process
CN103139763B (en) A kind of information processing method and device
CN105744503B (en) Information processing method and electronic equipment
CN101730108A (en) System and method for detecting lost position of communication device
US10187744B2 (en) Simplified method for placing telephone call and simplified method for requesting location-based service
CN104660811A (en) Terminal and system
CN110364160B (en) Method and device for executing voice command for electronic terminal

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