CN103024122A - Mobile terminal and method for storing cellphone numbers by mobile terminal - Google Patents
Mobile terminal and method for storing cellphone numbers by mobile terminal Download PDFInfo
- Publication number
- CN103024122A CN103024122A CN2012105691435A CN201210569143A CN103024122A CN 103024122 A CN103024122 A CN 103024122A CN 2012105691435 A CN2012105691435 A CN 2012105691435A CN 201210569143 A CN201210569143 A CN 201210569143A CN 103024122 A CN103024122 A CN 103024122A
- Authority
- CN
- China
- Prior art keywords
- phone number
- portable terminal
- mobile terminal
- conditioned
- module
- 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
Links
- 238000000034 method Methods 0.000 title abstract description 4
- 230000001143 conditioned effect Effects 0.000 claims description 37
- 238000006243 chemical reaction Methods 0.000 claims description 9
- 238000001914 filtration Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000005039 memory span Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a mobile terminal and a method for storing cellphone numbers by the mobile terminal. The method for storing the cellphone numbers includes steps that S1, the mobile terminal acquires cellphone numbers inputted by a user and judges whether the cellphone numbers meet preset conditions or not, and if yes, the step S2 can be controlled to start; S2, a coding module of the mobile terminal receives the cellphone numbers meeting the preset conditions and converts the same into numbers; S3, a storage module of the mobile terminal receives the cellphone numbers converted into numbers and stores the same. Storage space for the cellphone numbers in the mobile terminal can be greatly reduced and utilization rate of the storage module is increased.
Description
Technical field
The present invention relates to the telephone number storage of portable terminal, in particular a kind of storage means and portable terminal by the mobile terminal stores phone number.
Background technology
Existing phone number is to be stored in the memory of portable terminal by character, for example phone number 13515886290 is that character ' 1 ', ' 3 ', ' 5 ', ' 1 ', ' 5 ', ' 8 ', ' 8 ', ' 6 ', ' 2 ', ' 9 ', ' 0 ' is stored in the memory, between each numeral of phone number without any relation, a character needs 8 to be stored, and therefore a phone number 13515886290 needs 88 i.e. memory spaces of 11 bytes.Adopt this kind storage means to be unfavorable for the utilance of memory, cause the waste of certain memory space.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the defects of prior art, provides a kind of storage means and portable terminal by the mobile terminal stores phone number.Storage means of the present invention is that the mode of phone number with numeral is stored in the memory module of portable terminal, will greatly reduce phone number shared memory space in portable terminal, improves the utilance of memory module.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of storage means by the mobile terminal stores phone number wherein, comprises step:
The phone number of S1, acquisition for mobile terminal user input, and it is pre-conditioned to judge whether phone number satisfies, control enters step S2 when being;
The coding module of S2, portable terminal receives and satisfies pre-conditioned phone number, and will satisfy pre-conditioned phone number and carry out code conversion for digital;
The memory module of S3, portable terminal receives phone number and the storage that is converted to numeral.
Pre-conditioned among the described step S1 specifically comprises;
Each character of described phone number is 0 to 90 any one numeral in the numeral;
And the first character non-zero of described phone number.
Described step S1 also comprises;
The memory module of portable terminal will not satisfy pre-conditioned phone number and store in the mode of memory module acquiescence.
Described step S2 also comprises; The coding module of described portable terminal according to the first formula with phone number C1C2 C3 ... C11 is converted to numeral;
Described the first formula is:
Wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number.
Also comprise after the described step S3;
S31, when need show the phone number of described storage, the memory module of portable terminal is obtained the target number D that need to read, and this target number D is passed to the decoder module of portable terminal;
S32, described decoder module are with described target number D changed;
The display screen of S33, portable terminal shows the phone number that is converted to character.
Described step S32 also comprises; Described portable terminal decoder module according to the second formula with target number D changed C1C2 C3 ... C11;
Wherein, described the second formula is:
A kind of portable terminal that adopts the above-mentioned storage means of passing through the mobile terminal stores phone number, wherein, described portable terminal comprises;
Memory module is used for obtaining the phone number of user's input, and this phone number is sent to the filtration judge module, and it also is used for not satisfying pre-conditioned phone number and is converted to digital phone number storing;
Filter judge module, it is pre-conditioned to be used for judging whether described phone number satisfies, if do not satisfy pre-conditionedly, then will not satisfy pre-conditioned phone number and pass to memory module; If satisfy pre-conditionedly, then will satisfy pre-conditioned phone number and send to coding module;
Coding module is used for describedly satisfying pre-conditioned phone number and carries out code conversion and be numeral, and will be converted to digital phone number and send to described memory module.
Described coding module according to the first formula with phone number C1C2 C3 ... C11 is converted to numeral;
Described the first formula is:
Wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number.
Described portable terminal also comprises;
Decoder module is used for obtaining the target number D that need to read from the memory module of portable terminal, and with described target number D changed.
Described decoder module according to the second formula with target number D changed C1C2 C3 ... C11;
Wherein, described the second formula is;
。
A kind of storage means and portable terminal by the mobile terminal stores phone number provided by the present invention, pass to coding module owing to adopted memory module will satisfy pre-conditioned phone number, described coding module is converted to numeral with phone number, memory module will be converted to the phone number of numeral and store, use storage means of the present invention, the memory space of phone number in portable terminal will be reduced greatly, improve the utilance of memory, so that the present invention is in some low costs, has larger value in the less portable terminal of memory span.
Description of drawings
Fig. 1 is a kind of preferred embodiment flow chart of steps of passing through the storage means of mobile terminal stores phone number provided by the present invention.
Fig. 2 is the preferred embodiment flow chart of steps that reads phone number by storage means provided by the present invention.
Fig. 3 is the preferred embodiment functional schematic block diagram of a kind of portable terminal provided by the present invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
See also Fig. 1, Fig. 1 is a kind of preferred embodiment flow chart of steps of passing through the storage means of mobile terminal stores phone number provided by the present invention.
At first enter the phone number of step 101, acquisition for mobile terminal user input;
It is pre-conditioned that step 102, portable terminal judge whether described phone number satisfies;
Wherein, the phone number that satisfies simultaneously two conditions just can be judged as satisfy pre-conditioned, as long as there is a condition not satisfy, then phone number will be judged as do not satisfy pre-conditioned;
These two conditions are respectively;
1, each character of described phone number is 0 to 90 any one numeral in the numeral;
2, the first character non-zero of described phone number.
When not satisfying when pre-conditioned, the memory module that then enters step 103, portable terminal will not satisfy pre-conditioned phone number and store in the mode of memory module acquiescence;
When satisfying when pre-conditioned, the coding module that then enters step 104, portable terminal receives and satisfies pre-conditioned phone number;
When coding module receive satisfy pre-conditioned phone number after, the coding module that enters step 105, portable terminal carries out code conversion with phone number and is numeral;
For example the phone number that receives of described coding module is C1C2 C3 ... C11, wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number;
Described coding module according to the first formula with phone number C1C2 C3 ... C11 is converted to numeral;
Wherein, described the first formula is;
Namely according to described the first formula, so that described coding module is converted to numeral with phone number;
The memory module of step 106, portable terminal receives described phone number and the storage that is converted to numeral;
Further, in step 102, it is as follows to judge whether phone number satisfies pre-conditioned false code:
String MobileNum; The phone number that //MobileNum need to preserve for the user, it is character string
Char?*p?=?MobileNum;
For (i=0; I<11; I++) // judge whether each character of filtercondition (1) is 0 to 9 numeral
{
if(‘0’≤?*(p+i)?≤‘9’)
continue;
else
Return; If // do not satisfy filtercondition (1) then withdraw from
}
If (* p==0) // judge whether filtercondition (2) first character is the numeral of non-zero
Return; If // do not satisfy filtercondition (2) then withdraw from
else
Goto encoder; // satisfy filtercondition (1) and (2) then import coding module into
The described storage means of this preferred embodiment, mostly be the characteristics of combination of numbers in conjunction with phone number, store by its numerical value satisfying pre-conditioned phone number, for example, for example phone number 13515886290 is converted to digital 0x3259C0ED2 according to described the first formula, and described memory module is stored digital 0x3259C0ED2; By this storage means, so that 34 of 13515886290 needs of phone number are the memory space of 8 bytes.
And in actual applications, the memory space that the existing phone number of storage means storage that provides by this preferred embodiment needs at most is the phone number 18999999999 of storage China Telecom, this phone number is stored as 0x 46C7CFDFF, only needs 35 i.e. memory spaces of 8 bytes.Therefore, use storage means of the present invention can greatly reduce the memory space of phone number in portable terminal, improve the utilance of memory.
Below in conjunction with Fig. 2, how the user is read the phone number of storing with the form of numeral elaborate, wherein, Fig. 2 is the preferred embodiment flow chart of steps that reads phone number by storage means provided by the present invention.
When the user need to read mode with numeral and is stored in phone number in the mobile terminal stores module, at first enter step 201, when need show the phone number of described storage, the memory module of portable terminal is obtained the target number D that need to read, and this target number D is passed to the decoder module of portable terminal;
Step 202, described decoder module are with described target number D changed;
Wherein, described decoder module according to the second formula with target number D changed C1C2 C3 ... C11;
Wherein, described the second formula is;
That is, by described decoder module so that the digital D that stores in the memory module is converted to phone number C1C2 C3 ... after the C11, enter step 203;
The display screen of step 203, portable terminal shows the phone number that is converted to character;
Namely by the described method of this preferred embodiment, so that the user can read the phone number of storing in the mobile terminal stores module, and be character with the digital translation in the memory module, and the phone number that the display screen by portable terminal will be converted to character shows, so that the user can read the phone number of storing in the mode of numeral easily.
According to described storage means, the present invention also provides a kind of portable terminal, and wherein, described portable terminal can comprise mobile phone, panel computer etc.;
Below in conjunction with Fig. 3 portable terminal provided by the present invention is elaborated, wherein, Fig. 3 is the preferred embodiment functional schematic block diagram of a kind of portable terminal provided by the present invention.
Described portable terminal 300 comprises;
Memory module 301 is used for obtaining the phone number of user's input, and this phone number is sent to filtration judge module 302, and it also is used for not satisfying pre-conditioned phone number and is converted to digital phone number storing;
Wherein, pre-conditioned if phone number does not satisfy, then described memory module 301 is stored in the mode of its acquiescence;
Filter judge module 302, it is pre-conditioned to be used for judging whether described phone number satisfies, if do not satisfy pre-conditionedly, then will not satisfy pre-conditioned phone number and pass to memory module 301; If satisfy pre-conditionedly, then will satisfy pre-conditioned phone number and send to coding module 303;
Wherein, describedly pre-conditionedly be;
Each character of described phone number is 0 to 90 any one numeral in the numeral;
And the first character non-zero of described phone number.
Namely must satisfy simultaneously the phone number of above-mentioned condition, just can be judged as meet pre-conditioned;
Coding module 303 is used for describedly satisfying pre-conditioned phone number and carries out code conversion and be numeral, and will be converted to digital phone number and send to described memory module 301;
Wherein, described coding module 303 according to the first formula with phone number C1C2 C3 ... C11 is converted to numeral;
Described the first formula is;
Wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number.
By described the first formula, be numeral with phone number by character conversion, will greatly reduce the memory space of memory module, improve the utilance of memory module.
Further, described portable terminal 300 also comprises decoder module 304, be used for obtaining the target number D that need to read from the memory module 301 of portable terminal, and with described target number D changed.
Be described decoder module 304 according to the second formula with target number D changed C1C2 C3 ... C11;
Wherein, described the second formula is;
Namely by described decoder module 304, with phone number from digital D changed C1C2 C3 ... C11, thereby so that the display screen of portable terminal with described character C1C2 C3 ... C11 shows that the user just can obtain phone number.
In sum, the invention provides a kind of storage means and portable terminal by the mobile terminal stores phone number, by described storage means and portable terminal, so that the coding module of portable terminal is converted to numeral with phone number, the memory module of portable terminal will be converted to the phone number of numeral and store.Adopt this kind storage means, will greatly reduce phone number shared memory space in portable terminal, improve the utilance of memory module, so that the present invention is in some low costs, have larger value in the less portable terminal of memory span.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.
Claims (10)
1. the storage means by the mobile terminal stores phone number is characterized in that, comprises step:
The phone number of S1, acquisition for mobile terminal user input, and it is pre-conditioned to judge whether phone number satisfies, control enters step S2 when being;
The coding module of S2, portable terminal receives and satisfies pre-conditioned phone number, and will satisfy pre-conditioned phone number and carry out code conversion for digital;
The memory module of S3, portable terminal receives phone number and the storage that is converted to numeral.
2. the storage means by the mobile terminal stores phone number according to claim 1 is characterized in that, pre-conditioned among the described step S1 specifically comprises;
Each character of described phone number is 0 to 90 any one numeral in the numeral;
And the first character non-zero of described phone number.
3. the storage means by the mobile terminal stores phone number according to claim 1 is characterized in that described step S1 also comprises;
The memory module of portable terminal will not satisfy pre-conditioned phone number and store in the mode of memory module acquiescence.
4. the storage means by the mobile terminal stores phone number according to claim 1 is characterized in that described step S2 also comprises; The coding module of described portable terminal according to the first formula with phone number C1C2 C3 ... C11 is converted to numeral;
Described the first formula is:
5. the storage means by the mobile terminal stores phone number according to claim 1 is characterized in that, also comprises after the described step S3;
S31, when need show the phone number of described storage, the memory module of portable terminal is obtained the target number D that need to read, and this target number D is passed to the decoder module of portable terminal;
S32, described decoder module are with described target number D changed;
The display screen of S33, portable terminal shows the phone number that is converted to character.
6. the storage means by the mobile terminal stores phone number according to claim 5 is characterized in that described step S32 also comprises; Described portable terminal decoder module according to the second formula with target number D changed C1C2 C3 ... C11;
Wherein, described the second formula is;
7. one kind is adopted the described portable terminal that passes through the storage means of mobile terminal stores phone number of claim 1 to 6 any one, it is characterized in that described portable terminal comprises;
Memory module is used for obtaining the phone number of user's input, and this phone number is sent to the filtration judge module, and it also is used for not satisfying pre-conditioned phone number and is converted to digital phone number storing;
Filter judge module, it is pre-conditioned to be used for judging whether described phone number satisfies, if do not satisfy pre-conditionedly, then will not satisfy pre-conditioned phone number and pass to memory module; If satisfy pre-conditionedly, then will satisfy pre-conditioned phone number and send to coding module;
Coding module is used for describedly satisfying pre-conditioned phone number and carries out code conversion and be numeral, and will be converted to digital phone number and send to described memory module.
8. portable terminal according to claim 7 is characterized in that, described coding module according to the first formula with phone number C1C2 C3 ... C11 is converted to numeral;
Described the first formula is:
9. portable terminal according to claim 7 is characterized in that, described portable terminal also comprises;
Decoder module is used for obtaining the target number D that need to read from the memory module of portable terminal, and with described target number D changed.
10. portable terminal according to claim 9 is characterized in that, described decoder module according to the second formula with target number D changed C1C2 C3 ... C11;
Wherein, described the second formula is:
。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210569143.5A CN103024122B (en) | 2012-12-25 | 2012-12-25 | A kind of storage means by mobile terminal memory mobile phone number and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210569143.5A CN103024122B (en) | 2012-12-25 | 2012-12-25 | A kind of storage means by mobile terminal memory mobile phone number and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103024122A true CN103024122A (en) | 2013-04-03 |
CN103024122B CN103024122B (en) | 2016-02-10 |
Family
ID=47972241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210569143.5A Expired - Fee Related CN103024122B (en) | 2012-12-25 | 2012-12-25 | A kind of storage means by mobile terminal memory mobile phone number and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103024122B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105141734A (en) * | 2015-08-14 | 2015-12-09 | 广东欧珀移动通信有限公司 | Method and device for intelligently storing extension number of telephone number and intelligent terminal |
CN105791527A (en) * | 2014-12-26 | 2016-07-20 | 北京奇虎科技有限公司 | Method and device for transmitting contacts of mobile terminal |
CN110856151A (en) * | 2019-09-29 | 2020-02-28 | 惠州Tcl移动通信有限公司 | Storage method and reading method of Bluetooth pairing name, storage medium and terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1418034A (en) * | 2002-11-13 | 2003-05-14 | 大唐微电子技术有限公司 | Expanding method of telephone directory in subscriber identifying module |
CN101483844A (en) * | 2009-02-12 | 2009-07-15 | 北京阳光加信科技有限公司 | Method and system for indexing mobile telephone number |
EP2472996A1 (en) * | 2009-09-18 | 2012-07-04 | ZTE Corporation | Method and device for operating telephone directory |
-
2012
- 2012-12-25 CN CN201210569143.5A patent/CN103024122B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1418034A (en) * | 2002-11-13 | 2003-05-14 | 大唐微电子技术有限公司 | Expanding method of telephone directory in subscriber identifying module |
CN101483844A (en) * | 2009-02-12 | 2009-07-15 | 北京阳光加信科技有限公司 | Method and system for indexing mobile telephone number |
EP2472996A1 (en) * | 2009-09-18 | 2012-07-04 | ZTE Corporation | Method and device for operating telephone directory |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791527A (en) * | 2014-12-26 | 2016-07-20 | 北京奇虎科技有限公司 | Method and device for transmitting contacts of mobile terminal |
CN105141734A (en) * | 2015-08-14 | 2015-12-09 | 广东欧珀移动通信有限公司 | Method and device for intelligently storing extension number of telephone number and intelligent terminal |
CN110856151A (en) * | 2019-09-29 | 2020-02-28 | 惠州Tcl移动通信有限公司 | Storage method and reading method of Bluetooth pairing name, storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103024122B (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103067558A (en) | Method and device associating pictures of contact person in address book | |
CN103024122A (en) | Mobile terminal and method for storing cellphone numbers by mobile terminal | |
CN102801866B (en) | Group-texting method of mobile terminal | |
CN103812999B (en) | Mobile terminal and message registration treating method and apparatus thereof | |
CN102857636A (en) | Operation method and operation system for address book at mobile terminal | |
CN105553930A (en) | Conversation method and system and intelligent terminal | |
US20210105234A1 (en) | Message processing method and electronic device supporting the same | |
CN101980514A (en) | System for extracting short message contents of code division multiple access (CDMA) mobile phone and operating method thereof | |
CN105100893A (en) | Video sharing method and device | |
CN103327178B (en) | Automatically method and the device of extension telephone in the page is dialed | |
CN102833386A (en) | Method and system for storing operating record and mobile terminal | |
CN102270194B (en) | Character processing method and device | |
CN104113425A (en) | Charge mode setting and detecting method, MiFi equipment and mobile terminal | |
CN102843468A (en) | Digital character string display method and mobile intelligent terminal | |
CN103220389A (en) | Intelligent interaction method and intelligent interaction system of communication application and contact list | |
US20170139667A1 (en) | Audio play method and device | |
CN104618875A (en) | Message sending method and electronic device | |
KR101538491B1 (en) | Method and apparatus for using image as a means of storing and moving supplementary data | |
CN102929541A (en) | Touch-screen-based handwriting processing method and device | |
CN102014188A (en) | Mobile phone and method for limiting dialing regions of same | |
CN103631716B (en) | The conversion method and equipment of a kind of debug command | |
CN202662146U (en) | Mobile terminal device | |
KR200440127Y1 (en) | Wall-pad system | |
CN101621577A (en) | Short message processing method and short message processing terminal | |
KR102165150B1 (en) | Operating Method For Text Message and Electronic Device supporting the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C41 | Transfer of patent application or patent right or utility model | ||
TR01 | Transfer of patent right |
Effective date of registration: 20161111 Address after: 315100 Zhejiang city of Ningbo province high tech Zone to 999 Lane Road No. 5 10 floor Patentee after: TCL mobile communication technology (Ningbo) Co.,Ltd. Address before: 315100 6th Floor, No. 5, Lane 999, Yangfan Road, High-tech Zone, Ningbo City, Zhejiang Province Patentee before: TCL COMMUNICATION (NINGBO) Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160210 |