TWI425809B - System and method for arranging short messages of a mobile phone - Google Patents
System and method for arranging short messages of a mobile phone Download PDFInfo
- Publication number
- TWI425809B TWI425809B TW96146740A TW96146740A TWI425809B TW I425809 B TWI425809 B TW I425809B TW 96146740 A TW96146740 A TW 96146740A TW 96146740 A TW96146740 A TW 96146740A TW I425809 B TWI425809 B TW I425809B
- Authority
- TW
- Taiwan
- Prior art keywords
- short message
- time
- record
- mobile phone
- index
- Prior art date
Links
Landscapes
- Telephone Function (AREA)
Description
本發明涉及一種手機簡訊排列處理方法及系統。 The invention relates to a mobile phone short message arrangement processing method and system.
隨著手機的廣泛應用,人們對手機簡訊排列處理的要求也越來越高。目前,手機對簡訊的處理都係由人機界面層的執行標準AT Command來獲取手機中的所有簡訊,並且所獲取的簡訊的排列方式係根據簡訊所對應的索引號碼的排列方式進行排列。但是,在實際應用中,手機最終顯示給用戶的簡訊的排列方式應該按照簡訊的接收時間的順序進行排列,這就導致人機界面在獲取了簡訊後還需要將所有簡訊按照所接收時間的先後順序進行排列,浪費了用戶的時間。 With the wide application of mobile phones, people are increasingly demanding the processing of mobile phone newsletters. At present, the processing of the short message by the mobile phone is obtained by the execution standard AT Command of the human-machine interface layer to obtain all the short messages in the mobile phone, and the arrangement manner of the obtained short messages is arranged according to the arrangement manner of the index numbers corresponding to the short message. However, in practical applications, the arrangement of the short message displayed by the mobile phone to the user should be arranged in the order of the receiving time of the short message, which causes the human machine interface to follow all the short messages according to the received time. Arranged in order, wasting user time.
鑒於以上內容,有必要提出一種手機簡訊排列處理方法,在手機開機時就將該手機中所有簡訊讀取出來,並將所有簡訊按照接收所述簡訊時間的先後順序排列。 In view of the above, it is necessary to propose a method for processing a mobile phone short message, which reads out all the short messages in the mobile phone when the mobile phone is turned on, and arranges all the short messages in the order in which the short message is received.
鑒於以上內容,有必要提出一種手機簡訊排列處理系統,在手機開機時就將該手機中所有簡訊讀取出來,並將所有簡訊按照接收所述簡訊時間的先後順序排列。 In view of the above, it is necessary to propose a mobile phone newsletter arrangement processing system, which reads all the short messages in the mobile phone when the mobile phone is turned on, and arranges all the short messages in the order in which the short message is received.
一種手機簡訊排列處理方法,該方法包括如下步驟:在手機開機時讀取該手機中每條簡訊的接收時間和索引並生成相應的記錄;將所述所有記錄按 照簡訊接收時間的先後順序排列生成簡訊時間排序表格;根據所述簡訊時間排序表格中各個記錄排列的順序依次讀取所述各個記錄的索引;根據所述讀取的索引依次讀取該手機中的所有簡訊;當該手機接收到新簡訊時,讀取該新簡訊的接收時間和所述簡訊時間排序表格中第一條記錄的時間;當所讀取的新簡訊的接收時間晚於所述簡訊時間排序表格中第一條記錄的時間時,將該新簡訊的接收時間和索引生成相應記錄並將該記錄插入到所讀取的記錄之前;及當所讀取的新簡訊的接收時間早於或等於所讀取的記錄的時間時,繼續讀取所述簡訊時間排序表格中下一條記錄的時間,直至所讀取的新簡訊的接收時間晚於所讀取的記錄的時間,然後將該新簡訊的接收時間和索引生成相應記錄並將該記錄插入到所讀取的記錄之前。 A method for processing a mobile phone short message, the method comprising the steps of: reading a receiving time and an index of each short message in the mobile phone when the mobile phone is turned on, and generating a corresponding record; Generating a short message time sorting table according to a sequence of receiving time of the short message; sequentially reading an index of each record according to an order of each record in the short message time sorting table; and sequentially reading the mobile phone according to the read index All the newsletters; when the mobile phone receives the new newsletter, reading the receiving time of the new short message and the time of the first record in the short message time sorting table; when the received new short message is received later than the When the time of the first record in the newsletter time sorting table, the corresponding time record and index of the new newsletter are generated and the record is inserted before the read record; and when the new short message read is received early At or equal to the time of the recorded record, continue to read the time of the next record in the short message time sorting table until the received new short message is received later than the read time, and then The receipt time and index of the new message generate a corresponding record and insert the record before the read record.
一種手機簡訊排列處理系統,該系統包括:生成模組,用於在手機開機時讀取該手機中每條簡訊的接收時間和索引並生成相應的記錄,並將所述所有記錄按照簡訊接收時間的先後順序排列生成簡訊時間排序表格;讀取模組,用於根據該簡訊時間排序表格中各個記錄排列的順序依次讀取所述各個記錄的索引,根據所述讀取的索引依次讀取該手機中的所有簡訊;所述讀取模組還用於當該手機接收到新簡訊時,讀取該新簡訊的接收時間和所述簡訊時間排序表格中第一條記錄的時間,當所讀取的新簡訊的接收時間早於或等於簡訊時間排序表格中第一條記錄的時間時,讀取所述簡訊時間排序表格中下一條記錄的時間;及插入模組,用於當所讀取的新簡訊的接收時間晚於所述簡訊時間排序表格中所讀取的記錄的時間時,將該新簡訊的接收時間和索引生成相應記錄並將該記錄插入到所讀取的記錄之前。 A mobile phone newsletter arrangement processing system, the system comprising: a generating module, configured to read a receiving time and an index of each short message in the mobile phone when the mobile phone is powered on, generate a corresponding record, and record all the records according to the short message receiving time The sequence is arranged to generate a short message time sorting table; the reading module is configured to sequentially read the indexes of the records according to the order of the records in the news time sorting table, and sequentially read the indexes according to the read indexes. All the short messages in the mobile phone; the reading module is further configured to read the receiving time of the new short message and the time of the first record in the short message time sorting table when the mobile phone receives the new short message, when the read Reading the time of the next record in the news time sorting table when the receiving time of the new newsletter is earlier than or equal to the time of the first record in the newsletter time sorting table; and inserting the module for reading When the receiving time of the new short message is later than the time of the record read in the news time sorting table, the receiving time and the index of the new short message are generated correspondingly. Prior to insertion into the recording and the read record.
相較於習知技術,本發明所提供的手機簡訊排列處理方法及系統可在手機開機時就將該手機中所有簡訊讀取出來,並將所有簡訊按照接收所述簡訊時間的先後順序排列,當使用者讀取簡訊時,手機就不需要再浪費時間將 所有簡訊進行排序,節省了使用者的時間,提高了工作效率。 Compared with the prior art, the mobile phone short message arrangement processing method and system provided by the present invention can read all the short messages in the mobile phone when the mobile phone is turned on, and arrange all the short messages in the order of receiving the short message time. When the user reads the newsletter, the phone does not need to waste time. All newsletters are sorted, saving users time and improving work efficiency.
1‧‧‧手機 1‧‧‧Mobile phone
10‧‧‧手機簡訊處理排列系統 10‧‧‧Mobile phone message processing and arranging system
100‧‧‧生成模組 100‧‧‧Generation module
102‧‧‧讀取模組 102‧‧‧Read module
104‧‧‧判斷模組 104‧‧‧Judgement module
106‧‧‧插入模組 106‧‧‧Insert module
108‧‧‧查詢模組 108‧‧‧Query Module
110‧‧‧刪除模組 110‧‧‧Delete module
S10‧‧‧在手機開機時讀取該手機中每條簡訊的接收時間和索引並生成相應的記錄 S10‧‧‧Read the receiving time and index of each SMS in the mobile phone when the mobile phone is turned on and generate corresponding records
S12‧‧‧將所述所有記錄按照簡訊接收時間的先後順序排列生成簡訊時間排序表格 S12‧‧‧Arrange all the records in the order of the receiving time of the newsletter to generate the newsletter time sorting table
S14‧‧‧根據該簡訊時間排序表格中各個記錄排列的先後順序依次讀取所述各個記錄的索引 S14‧‧‧ reads the index of each record in turn according to the order of the records in the time sorting table of the newsletter
S16‧‧‧根據所述讀取的索引依次讀取該手機中的所有簡訊 S16‧‧ ‧ read all the newsletters in the mobile phone according to the read index
S18‧‧‧是否接收到新簡訊 S18‧‧‧Are you receiving a new newsletter?
S20‧‧‧讀取該新簡訊的接收時間和所述簡訊時間排序表格中第一條記錄的時間 S20‧‧‧Read the reception time of the new newsletter and the time of the first record in the newsletter time sorting table
S22‧‧‧該新簡訊的接收時間是否晚於所讀取的記錄的時間 S22‧‧ Whether the reception time of the new newsletter is later than the time of the recorded record
S24‧‧‧讀取所述簡訊時間排序表格中下一條記錄的時間 S24‧‧‧Read the time of the next record in the newsletter time sorting table
S26‧‧‧將該新簡訊的記錄插入該讀取的記錄之前 S26‧‧‧ Insert the record of the new newsletter before the recorded record
S28‧‧‧是否刪除簡訊 S28‧‧‧Delete the newsletter
S30‧‧‧讀取需刪除簡訊的索引 S30‧‧‧Read the index to delete the newsletter
S32‧‧‧在簡訊時間排序表格中依次查詢與需刪除簡訊的索引相同的記錄 S32‧‧‧ In the short message time sorting table, the same records as the index of the newsletter to be deleted are in turn.
S34‧‧‧刪除所查詢到的記錄 S34‧‧‧Delete the records queried
圖1係本發明手機簡訊排列處理系統之功能模組圖。 1 is a functional block diagram of a mobile phone short message alignment processing system of the present invention.
圖2係本發明手機簡訊排列處理方法較佳實施方式之流程圖。 2 is a flow chart of a preferred embodiment of a method for processing a mobile phone short message of the present invention.
如圖1所示,係本發明手機簡訊排列處理系統10之功能模組圖。所述手機簡訊排列處理系統10包括:生成模組100、讀取模組102、判斷模組104、插入模組106、查詢模組108及刪除模組110。 As shown in FIG. 1, it is a functional module diagram of the mobile phone short message arrangement processing system 10 of the present invention. The mobile phone message arrangement processing system 10 includes a generation module 100, a reading module 102, a determination module 104, an insertion module 106, an inquiry module 108, and a deletion module 110.
所述生成模組100用於在手機1開機時讀取該手機1中每條簡訊的接收時間和索引並生成相應的記錄。所述簡訊的索引係指簡訊儲存在手機1中的代碼,所述索引在手機1中為任意排列的方式,透過所述索引可以快速查找到相應的簡訊。 The generating module 100 is configured to read the receiving time and index of each short message in the mobile phone 1 when the mobile phone 1 is powered on, and generate a corresponding record. The index of the short message refers to the code stored in the mobile phone 1 by the short message. The index is arbitrarily arranged in the mobile phone 1, and the corresponding short message can be quickly found through the index.
所述生成模組100還用於將所述所有記錄按照簡訊接收時間的先後順序排列生成簡訊時間排序表格。所述生成的簡訊時間排序表格中的所有記錄按照簡訊接收時間從晚到早的順序排列,第一條記錄為最晚接收(即最新)的簡訊記錄。 The generating module 100 is further configured to generate the short message time sorting table by arranging all the records in the order of the receiving time of the short message. All records in the generated short message time sorting table are arranged in a late to early order according to the short message receiving time, and the first record is the latest received (ie, latest) newsletter record.
所述讀取模組102用於根據所述簡訊時間排序表格中各個記錄排列的順序依次讀取所述各個記錄的索引。所述讀取出的索引按照對應記錄中簡訊的接收時間從晚到早的順序排列。 The reading module 102 is configured to sequentially read the indexes of the respective records according to the order of the respective records in the short message time sorting table. The read index is arranged from late to early according to the receiving time of the short message in the corresponding record.
所述讀取模組102還用於根據所述讀取的索引依次讀取該手機1中的所有簡訊。所述讀取的簡訊根據所接收時間的從晚到早的順序排列。 The reading module 102 is further configured to sequentially read all the short messages in the mobile phone 1 according to the read index. The read short messages are arranged in order from late to early according to the received time.
所述判斷模組104用於判斷該手機1是否接收到新簡訊。 The determining module 104 is configured to determine whether the mobile phone 1 receives a new short message.
所述讀取模組102還用於當該手機1接收到新簡訊時,讀取該新簡訊的接收時間和所述簡訊時間排序表格中第一條記錄的時間。 The reading module 102 is further configured to read the receiving time of the new short message and the time of the first record in the short message time sorting table when the mobile phone 1 receives the new short message.
所述判斷模組104還用於判斷所讀取的新簡訊的接收時間是否晚於所述簡訊時間排序表格中第一條記錄的時間。 The determining module 104 is further configured to determine whether the received time of the read new short message is later than the time of the first record in the short message time sorting table.
所述讀取模組102還用於當所讀取的新簡訊的接收時間早於或等於簡訊時間排序表格中第一條記錄的時間時,讀取所述簡訊時間排序表格中下一條記錄的時間。 The reading module 102 is further configured to read the next record in the short message time sorting table when the received new short message receiving time is earlier than or equal to the time of the first record in the short message time sorting table. time.
所述插入模組106用於當所讀取的新簡訊的接收時間晚於簡訊時間排序表格中所讀取的記錄的時間時,將該新簡訊的接收時間和索引生成相應記錄並將該記錄插入到所讀取的記錄之前。 The inserting module 106 is configured to generate a corresponding record and record the new short message when the received time of the new short message is later than the time of the record read in the short message time sorting table. Insert before the record being read.
所述判斷模組104還用於判斷是否刪除該手機1中的簡訊。 The determining module 104 is further configured to determine whether to delete the short message in the mobile phone 1.
所述讀取模組102用於當需刪除該手機1中的簡訊時,從該手機1中讀取需刪除簡訊的索引。 The reading module 102 is configured to read an index of the short message to be deleted from the mobile phone 1 when the short message in the mobile phone 1 needs to be deleted.
所述查詢模組108用於在所述簡訊時間排序表格中依次查詢與需刪除簡訊的索引相同的記錄。 The query module 108 is configured to sequentially query, in the short message time sorting table, the same record as the index of the short message to be deleted.
所述刪除模組110用於在簡訊時間排序表格中刪除所述查詢到的記錄。 The deleting module 110 is configured to delete the queried record in the short message time sorting table.
如圖2所示,係本發明手機簡訊排列處理方法較佳實施方式之流程圖。首先,步驟S10,但手機1開機時,生成模組100讀取該手機1中每條簡訊的接收時間和索引並生成相應的記錄。 As shown in FIG. 2, it is a flowchart of a preferred embodiment of the method for processing a mobile phone short message of the present invention. First, in step S10, when the mobile phone 1 is powered on, the generating module 100 reads the receiving time and index of each short message in the mobile phone 1 and generates a corresponding record.
步驟S12,生成模組100將所述所有記錄按照簡訊接收時間的先後順序排列生成簡訊時間排序表格。 In step S12, the generating module 100 arranges all the records in the order of the receiving time of the short message to generate a short message time sorting table.
步驟S14,讀取模組102根據所述簡訊時間排序表格中各個記錄排列的順序 依次讀取所述各個記錄的索引。 Step S14, the reading module 102 sorts the order of each record in the table according to the short message time. The indexes of the respective records are sequentially read.
步驟S16,讀取模組102根據所述讀取的索引依次讀取該手機1中的所有簡訊。 In step S16, the reading module 102 sequentially reads all the short messages in the mobile phone 1 according to the read index.
步驟S18,判斷模組104判斷該手機1是否接收到新簡訊。 In step S18, the determining module 104 determines whether the mobile phone 1 receives a new short message.
步驟S20,當該手機1接收到新簡訊時,讀取模組102讀取該新簡訊的接收時間和所述簡訊時間排序表格中第一條記錄的時間。 In step S20, when the mobile phone 1 receives the new short message, the reading module 102 reads the receiving time of the new short message and the time of the first record in the short message time sorting table.
步驟S22,判斷模組104判斷所讀取的新簡訊的接收時間是否晚於所讀取的記錄的時間。 In step S22, the determining module 104 determines whether the received time of the read new short message is later than the time of the recorded record.
步驟S24,當所讀取的新簡訊的接收時間早於或等於所讀取的簡訊時間排序表格中記錄的時間時,讀取模組102讀取所述簡訊時間排序表格中下一條記錄的時間,並返回至步驟S22繼續判斷該新簡訊的接收時間是否晚於所讀取的記錄的時間。 Step S24, when the read time of the read new short message is earlier than or equal to the time recorded in the read short message time sorting table, the reading module 102 reads the time of the next record in the short message time sorting table. And returning to step S22 to continue to determine whether the reception time of the new short message is later than the time of the recorded record.
步驟S26,當所讀取的新簡訊的接收時間晚於所讀取的簡訊時間排序表格中記錄的時間時,插入模組106將該新簡訊的接收時間和索引生成相應記錄並將該記錄插入到所讀取的記錄之前。 Step S26, when the received new short message is received later than the time recorded in the read short message time sorting table, the inserting module 106 generates a corresponding record of the new short message receiving time and index and inserts the record. Before the record being read.
步驟S28,判斷模組104判斷是否刪除該手機1中的簡訊。 In step S28, the determining module 104 determines whether to delete the short message in the mobile phone 1.
步驟S30,當需刪除該手機1中的簡訊時,讀取模組102從該手機1中讀取需刪除簡訊的索引。 In step S30, when the short message in the mobile phone 1 needs to be deleted, the reading module 102 reads the index of the short message to be deleted from the mobile phone 1.
步驟S32,查詢模組108在所述簡訊時間排序表格中依次查詢與需刪除簡訊的索引相同的記錄。 In step S32, the query module 108 sequentially queries the records in the short message time sorting table with the same index as the index to be deleted.
步驟S34,刪除模組110在簡訊時間排序表格中刪除所述查詢到的記錄。 In step S34, the deletion module 110 deletes the queried record in the short message time sorting table.
在步驟S18中,當該手機1沒有接收到新簡訊時,轉至S28判斷是否刪除該手機1中簡訊的步驟。 In step S18, when the mobile phone 1 does not receive the new short message, the process goes to S28 to determine whether to delete the short message in the mobile phone 1.
在步驟S28中,當不刪除該手機1中的簡訊時,結束流程。 In step S28, when the short message in the mobile phone 1 is not deleted, the flow is ended.
S10‧‧‧在手機開機時讀取該手機中每條簡訊的接收時間和索引並生成相應的記錄 S10‧‧‧Read the receiving time and index of each SMS in the mobile phone when the mobile phone is turned on and generate corresponding records
S12‧‧‧將所述所有記錄按照簡訊接收時間的先後順序排列生成簡訊時間排序表格 S12‧‧‧Arrange all the records in the order of the receiving time of the newsletter to generate the newsletter time sorting table
S14‧‧‧根據該簡訊時間排序表格中各個記錄排列的先後順序依次讀取所述各個記錄的索引 S14‧‧‧ reads the index of each record in turn according to the order of the records in the time sorting table of the newsletter
S16‧‧‧根據所述讀取的索引依次讀取該手機中的所有簡訊 S16‧‧ ‧ read all the newsletters in the mobile phone according to the read index
S18‧‧‧是否接收到新簡訊 S18‧‧‧Are you receiving a new newsletter?
S20‧‧‧讀取該新簡訊的接收時間和所述簡訊時間排序表格中第一條記錄的時間 S20‧‧‧Read the reception time of the new newsletter and the time of the first record in the newsletter time sorting table
S22‧‧‧該新簡訊的接收時間是否晚於所讀取的記錄的時間 S22‧‧ Whether the reception time of the new newsletter is later than the time of the recorded record
S24‧‧‧讀取所述簡訊時間排序表格中下一條記錄的時間 S24‧‧‧Read the time of the next record in the newsletter time sorting table
S26‧‧‧將該新簡訊的記錄插入該讀取的記錄之前 S26‧‧‧ Insert the record of the new newsletter before the recorded record
S28‧‧‧是否刪除簡訊 S28‧‧‧Delete the newsletter
S30‧‧‧讀取需刪除簡訊的索引 S30‧‧‧Read the index to delete the newsletter
S32‧‧‧在簡訊時間排序表格中依次查詢與需刪除簡訊的索引相同的記錄 S32‧‧‧ In the short message time sorting table, the same records as the index of the newsletter to be deleted are in turn.
S34‧‧‧刪除所查詢到的記錄 S34‧‧‧Delete the records queried
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW96146740A TWI425809B (en) | 2007-12-07 | 2007-12-07 | System and method for arranging short messages of a mobile phone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW96146740A TWI425809B (en) | 2007-12-07 | 2007-12-07 | System and method for arranging short messages of a mobile phone |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200926736A TW200926736A (en) | 2009-06-16 |
TWI425809B true TWI425809B (en) | 2014-02-01 |
Family
ID=44729781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW96146740A TWI425809B (en) | 2007-12-07 | 2007-12-07 | System and method for arranging short messages of a mobile phone |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI425809B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200630870A (en) * | 2005-02-25 | 2006-09-01 | Inventec Appliances Corp | Method and system capable of automatically merging and viewing messages originating from the same number on a mobile telecommunication device |
TW200721782A (en) * | 2005-11-25 | 2007-06-01 | Inventec Appliances Corp | Prompt system and method for portable communication apparatus |
-
2007
- 2007-12-07 TW TW96146740A patent/TWI425809B/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200630870A (en) * | 2005-02-25 | 2006-09-01 | Inventec Appliances Corp | Method and system capable of automatically merging and viewing messages originating from the same number on a mobile telecommunication device |
TW200721782A (en) * | 2005-11-25 | 2007-06-01 | Inventec Appliances Corp | Prompt system and method for portable communication apparatus |
Also Published As
Publication number | Publication date |
---|---|
TW200926736A (en) | 2009-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101137101B1 (en) | Cross-pollination of multiple sync sources | |
CN106936441B (en) | Data compression method and device | |
CN103200293A (en) | Method of automatically combining tautonomy contacts in process of guiding contacts into contact list | |
CN102421062A (en) | Method and system for pushing application information | |
WO2014117656A1 (en) | Mobile terminal and method for extracting communication contact information | |
CN1885869A (en) | Address list system and its using method | |
CN104636477A (en) | Push list duplicate removal method before information push | |
US20140045467A1 (en) | Method and apparatus for recording information during a call | |
WO2012062079A1 (en) | Method and device for processing information | |
CN112988916A (en) | Full and incremental synchronization method, device and storage medium for Clickhouse | |
CN100574340C (en) | A kind of method of searching SMS | |
CN111159130A (en) | Small file merging method and electronic equipment | |
CN101958954A (en) | Input method and system for searching contacts in address list and mobile terminal | |
CN107220287A (en) | For the index managing method of log query, device, storage medium and equipment | |
CN102346783B (en) | Data retrieval method and device | |
CN101727199A (en) | Input method and input equipment | |
CN102035931A (en) | Mobile phone with rapid message-editing function and method | |
TWI425809B (en) | System and method for arranging short messages of a mobile phone | |
CN102970401A (en) | Method and device for recoding contact information | |
CN101437074B (en) | Method and system for processing mobile phone short message arrangement | |
CN103092988A (en) | Realizing method of directly managing mobile phone media resources on desktop | |
CN1929513A (en) | Short message filtration method | |
CN112685557B (en) | Visual information resource management method and device | |
CN111211966B (en) | Method and system for storing transmission files in chat tool | |
CN101365012A (en) | Abbreviation operating method and hand-hold communication terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |