CN105049627A - Card generation method and device - Google Patents
Card generation method and device Download PDFInfo
- Publication number
- CN105049627A CN105049627A CN201510451906.XA CN201510451906A CN105049627A CN 105049627 A CN105049627 A CN 105049627A CN 201510451906 A CN201510451906 A CN 201510451906A CN 105049627 A CN105049627 A CN 105049627A
- Authority
- CN
- China
- Prior art keywords
- card
- short message
- content
- cards
- information
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000012544 monitoring process Methods 0.000 claims abstract description 16
- 238000012545 processing Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及智能终端领域,特别是涉及一种卡片生成方法和装置。The invention relates to the field of intelligent terminals, in particular to a method and device for generating a card.
背景技术Background technique
网络购物以其便捷的特点吸引着越来越多的消费者。当消费者采用网购方式购买如飞机票、火车票或者电影票等这一类商品时,一般会收到来自第三方的提示短信。如当用户购买了一张火车票后,会收到第三方(如12306)所发过来的包括车次、座位、发车时间等信息的提示短信。而随着现在的生活节奏越来越快,用户繁忙,或者接收的短信繁多而将这一类提示信息给淹没等等原因,用户有可能漏掉或忘记、错过这些预定行程的时间。但目前还没有一种技术能自动整理这一信息,以方便用户查阅。Online shopping attracts more and more consumers with its convenient features. When consumers use online shopping to purchase commodities such as air tickets, train tickets or movie tickets, they generally receive a reminder message from a third party. For example, after the user has purchased a train ticket, he or she will receive a prompt message including train number, seat, departure time and other information sent by a third party (such as 12306). And as the pace of life is getting faster and faster now, the user is busy, or the short messages received are numerous and this type of prompt information is overwhelmed, etc., the user may miss or forget, miss the time of these scheduled trips. But there is currently no technology that automatically organizes this information for easy access by users.
发明内容Contents of the invention
基于此,有必要针对上述问题,提供一种能自动生成查阅信息卡片的卡片生成方法。Based on this, it is necessary to provide a method for generating cards that can automatically generate cards for reviewing information in order to address the above problems.
一种卡片生成方法,所述方法包括:监听接收到的未读短信,获取所述未读短信的短信内容;对获取到的所述短信内容进行分析,如果所述短信内容符合预定的规则,则基于所述短信内容提取特定的信息,存入卡包数据库;根据存入卡包数据库的信息生成对应的卡片。A method for generating a card, the method comprising: monitoring received unread short messages, obtaining the short message content of the unread short messages; analyzing the obtained short message content, if the short message content meets predetermined rules, Then extract specific information based on the content of the short message and store it in the card package database; generate corresponding cards according to the information stored in the card package database.
在其中一个实施例中,在所述获取所述未读短信的短信内容的步骤之前,获取未读短信对应的号码。In one of the embodiments, before the step of obtaining the content of the unread short message, the number corresponding to the unread short message is obtained.
在其中一个实施例中,所述对获取到的所述短信内容进行分析,如果所述短信内容符合预定的规则,则基于所述短信内容提取特定的信息,存入卡包数据库的步骤,包括:判断所述短信号码是否与预存储的号码相匹配;若是,则判断所述短信内容是否包含特定的关键字,并判断根据关键字中的信息是否可以构成一个完整的卡片;若是,则按照预定的规则提取出特定的信息,存入所述卡包数据库;如果所述短信号码不与预存储的号码相匹配或者所述短信内容不包含特定的关键字或者不能构成一个完整的卡片,则不对所述未读短信进行处理。In one of the embodiments, the step of analyzing the obtained short message content, if the content of the short message conforms to a predetermined rule, then extracting specific information based on the content of the short message, and storing it in the card package database includes: : Judging whether the SMS number matches the pre-stored number; if so, judging whether the content of the SMS contains a specific keyword, and judging whether a complete card can be formed according to the information in the keyword; if so, then according to Predetermined rules extract specific information and store it in the card package database; if the SMS number does not match the pre-stored number or the content of the SMS does not contain specific keywords or cannot constitute a complete card, then The unread short message is not processed.
在其中一个实施例中,所述方法还包括:侦测显示卡片列表的指令;获取所述卡包数据库中的卡片,通过卡片列表形式显示所述卡片。In one of the embodiments, the method further includes: detecting an instruction to display a card list; acquiring the cards in the card package database, and displaying the cards in the form of a card list.
在其中一个实施例中,所述方法还包括:侦测对所述卡片列表的特定手势操作;根据所述特定手势滚动显示卡包数据库中的卡片。In one of the embodiments, the method further includes: detecting a specific gesture operation on the card list; scrolling and displaying the cards in the card package database according to the specific gesture.
此外,还有必要提供一种能自动生成查阅信息卡片的卡片生成装置。In addition, it is also necessary to provide a card generating device that can automatically generate a review information card.
一种卡片生成装置,其特征在于,所述装置包括:监听模块,用于监听接收到的未读短信,获取所述未读短信的短信内容;处理模块,用于对获取到的所述短信内容进行分析,如果所述短信内容符合预定的规则,则基于所述短信内容提取特定的信息,存入卡包数据库;卡片生成模块,用于根据存入卡包数据库的信息生成对应的卡片。A device for generating a card, characterized in that the device comprises: a monitoring module for monitoring received unread short messages and obtaining the content of the unread short messages; a processing module for processing the obtained short messages The content is analyzed, and if the short message content meets predetermined rules, specific information is extracted based on the short message content and stored in the card package database; the card generation module is used to generate corresponding cards according to the information stored in the card package database.
在其中一个实施例中,所述监听模块还用于在获取所述未读短信的短信内容之前,获取未读短信对应的号码。In one of the embodiments, the monitoring module is further configured to obtain the number corresponding to the unread short message before obtaining the short message content of the unread short message.
在其中一个实施例中,所述处理模块用于判断所述短信号码是否与预存储的号码相匹配;若是,则判断所述短信内容是否包含特定的关键字,并判断根据关键字中的信息是否可以构成一个完整的卡片;若是,则按照预定的规则提取出特定的信息,存入所述卡包数据库;如果所述短信号码不与预存储的号码相匹配或者所述短信内容不包含特定的关键字或者不能构成一个完整的卡片,则不对所述未读短信进行处理。In one of the embodiments, the processing module is used for judging whether the SMS number matches a pre-stored number; if so, judging whether the content of the SMS contains a specific keyword, and judging according to the information in the keyword Whether it can constitute a complete card; if so, extract specific information according to predetermined rules and store it in the card package database; if the SMS number does not match the pre-stored number or the content of the SMS does not contain specific keyword or cannot constitute a complete card, then the unread short message will not be processed.
在其中一个实施例中,所述装置还包括:卡片显示模块,用于侦测显示卡片列表的指令;获取所述卡包数据库中的卡片,通过卡片列表形式显示所述卡片。In one of the embodiments, the device further includes: a card display module, configured to detect an instruction to display a card list; obtain the cards in the card package database, and display the cards in the form of a card list.
在其中一个实施例中,所述卡片显示模块还用于侦测对所述卡片列表的特定手势操作;根据所述特定手势滚动显示卡包数据库中的卡片。In one of the embodiments, the card display module is further configured to detect a specific gesture operation on the card list; scroll and display the cards in the card pack database according to the specific gesture.
上述卡片生成方法和装置,通过监听接收到的未读短信,对获取到的短信内容进行分析,如果该短信内容符合预定的规则,则基于该短信内容提取特定的信息,存入卡包数据库;根据存入卡包数据库的信息生成对应的卡片。由于预定的信息可以通过卡片形式查看,从而能够使用户方便查阅预定的信息。The above card generation method and device analyze the content of the obtained short message by monitoring the received unread short message, and if the content of the short message meets the predetermined rules, then extract specific information based on the content of the short message and store it in the card package database; Generate corresponding cards based on the information stored in the card pack database. Since the predetermined information can be viewed in the form of a card, the user can conveniently consult the predetermined information.
附图说明Description of drawings
图1为一个实施例中卡片生成方法的流程图;Fig. 1 is the flow chart of the card generating method in an embodiment;
图2为一个实施例中卡片信息展示的示意图;Fig. 2 is a schematic diagram of displaying card information in an embodiment;
图3为一个实施例中的对获取到的短信内容进行分析,如果该短信内容符合预定的规则,则基于该短信内容提取特定的信息,存入卡包数据库的步骤的流程图;Fig. 3 analyzes the short message content that obtains in one embodiment, if this short message content meets predetermined rule, then extract specific information based on this short message content, store the flow chart of the step of card package database;
图4为另一个实施例中卡片生成方法的流程图;Fig. 4 is the flowchart of the card generation method in another embodiment;
图5为一个实施例中卡片生成装置的结构示意图;Fig. 5 is a schematic structural diagram of a card generating device in an embodiment;
图6为另一个实施例中卡片生成装置的结构示意图。Fig. 6 is a schematic structural diagram of a card generating device in another embodiment.
具体实施方式Detailed ways
如图1所示,在一个实施例中,提供了一种卡片生成方法,该方法可应用到移动终端中,具体包括以下步骤:As shown in Figure 1, in one embodiment, a method for generating a card is provided, which can be applied to a mobile terminal, and specifically includes the following steps:
步骤110,监听接收到的未读短信,获取未读短信对应的短信内容。Step 110, monitor the received unread short message, and obtain the content of the short message corresponding to the unread short message.
本实施例中,当用户有收到短信后,卡包应用会采取广播监听或者数据库监听的方式,来获取用户所收到的未读短信,以获取未读短信的短信内容。In this embodiment, when the user receives a short message, the card package application will adopt a method of broadcast monitoring or database monitoring to obtain the unread short message received by the user, so as to obtain the content of the unread short message.
在另一个实施例中,在获取未读短信对应的短信内容之前,还获取未读短信对应的号码,包括手机号码、短信端口号码等。In another embodiment, before obtaining the content of the short message corresponding to the unread short message, the number corresponding to the unread short message is also obtained, including a mobile phone number, a short message port number, and the like.
上述卡包为一种具有存储卡片信息的功能的特定格式的数据集,该卡片是一种包括票的类型、时间、地点等信息特定格式的数据。如图2所示,例如,当票的类型是火车票时,则该火车票卡片包括了开车时间、车厢、座位等信息;当票的类型为电影票时,则该电影票卡片包括了电影票的名称、电影的类型、取票码、座位、取票地点、电影院地址、电影票的张数以及电影票的类型(如2D电影)等信息;当票的类型为飞机票时,则该飞机票卡片包括了航班号、登机时间、座位号、舱位、登机口、登机时间等信息。并且,该卡片还可以包括当前位置到目的地所需的时间信息。The above-mentioned card package is a data set in a specific format with the function of storing card information. The card is a data set in a specific format including ticket type, time, place and other information. As shown in Figure 2, for example, when the type of ticket is a train ticket, the train ticket card includes information such as driving time, carriage, seat, etc.; when the type of ticket is a movie ticket, the movie ticket card includes The name of the ticket, the type of movie, the ticket code, the seat, the location of the ticket, the address of the cinema, the number of movie tickets, and the type of movie ticket (such as 2D movie); when the type of ticket is an air ticket, the The airline ticket card includes information such as flight number, boarding time, seat number, cabin class, boarding gate, and boarding time. Moreover, the card may also include time information required from the current location to the destination.
步骤120,对获取到的短信内容进行分析,如果该短信内容符合预定的规则,则基于该短信内容提取特定的信息,存入卡包数据库。Step 120, analyzing the content of the received short message, and if the content of the short message conforms to predetermined rules, extract specific information based on the content of the short message and store it in the card package database.
具体的,对所述获取到的短信内容进行关键字分析或语义分析,经过分析后,如果得到的短信内容符合预定的规则,例如,经过关键字分析或语义分析,确定短信内容包含了航班号、登机时间、座位号、舱位、登机口、登机时间等信息时,则认为该短信中的内容符合预定的规则,包括了一个卡片信息,然后继续短信内容中的上述信息,生成符合卡包类型的信息,存入卡包数据库。Specifically, keyword analysis or semantic analysis is performed on the obtained short message content. After analysis, if the obtained short message content meets predetermined rules, for example, after keyword analysis or semantic analysis, it is determined that the short message content contains the flight number , boarding time, seat number, cabin class, boarding gate, boarding time and other information, it is considered that the content in the text message conforms to the predetermined rules, including a card information, and then continue with the above information in the text message content to generate The information of the card package type is stored in the card package database.
在一个实施方式中,在分析所述短信内容前,还可以先分析获取到的未读短信对应的号码。举例来说,当用户收到了来自12306购票成功的提示短信后,卡包应用可以根据监听得到该信息,并根据短信号码12306,可以初步判断该短信可能包含火车票信息,然后继续分析短信内容,确定短信内容中是否包含开车时间、车厢、座位等信息,若是,则认为该短信中的内容符合预定的规则,并提取上述信息,将其重组为符合卡包格式的数据,存入卡包数据库。In one embodiment, before analyzing the content of the short message, the number corresponding to the acquired unread short message may also be analyzed first. For example, when the user receives a text message from 12306 indicating that the ticket has been purchased successfully, the card package application can obtain the information through monitoring, and according to the text message number 12306, can preliminarily judge that the text message may contain train ticket information, and then continue to analyze the content of the text message , to determine whether the content of the text message contains information such as driving time, compartment, seat, etc., if so, it is considered that the content of the text message conforms to the predetermined rules, and the above information is extracted, reorganized into data that conforms to the card package format, and stored in the card package database.
步骤130,根据存入卡包数据库的信息生成对应的卡片。Step 130, generating corresponding cards according to the information stored in the card package database.
具体的,当将短信的信息存入到卡包数据库后,还可以生成与之对应的卡片。如图2所示,卡片的类型可以包括火车票卡片、电影票卡片、飞机票卡片等不同类型的卡片,每一种卡片中包括了与之相对应的卡片信息。Specifically, after the information of the short message is stored in the card package database, a corresponding card can also be generated. As shown in FIG. 2 , the types of cards may include different types of cards such as train ticket cards, movie ticket cards, and air ticket cards, and each type of card includes corresponding card information.
本实施例中,通过从获取到的符合预定规则的特定未读短信中提取出特定信息,存入卡包数据库,并生成对应信息的卡片,可以所有的卡片集合在一起,方便用户在需要时查阅,无需在众多的短信中查找以前的某一条包含票务信息的短信。In this embodiment, by extracting specific information from the obtained specific unread short messages that meet the predetermined rules, storing them in the card package database, and generating cards with corresponding information, all the cards can be assembled together, which is convenient for users when needed. Check, without looking for a previous text message containing ticket information among numerous text messages.
进一步的,在一个实施例中,如图3所示,对获取到的短信内容进行分析,如果该短信内容符合预定的规则,则基于该短信内容提取特定的信息,存入卡包数据库的步骤,包括:Further, in one embodiment, as shown in Figure 3, the content of the short message obtained is analyzed, if the content of the short message meets the predetermined rules, then based on the content of the short message, specific information is extracted and stored in the card package database. ,include:
步骤122,判断短信号码是否与预存储的号码相匹配。若是,则执行步骤124,否则,执行步骤128。Step 122, judging whether the SMS number matches the pre-stored number. If yes, execute step 124 , otherwise, execute step 128 .
本实施例中,预存储的号码包括所有提供车票、机票和电影票等订购的,并对订购的用户发送订购信息的号码,如铁道部的12306,携程、同程上的一类订票通知号码,美团网、时光网上的电影票订购信息通知的号码等。当获取到未读短信后,还需首先判断未读短信的短信号码是否与预存储的号码相匹配。若不匹配,则执行步骤128;若匹配,则执行步骤124。In this embodiment, the pre-stored numbers include all the numbers that provide orders for train tickets, air tickets and movie tickets, and send order information to the ordering users, such as 12306 of the Ministry of Railways, a class of ticket booking notices on Ctrip and Tongcheng number, the number of the movie ticket order information notification on Meituan.com and Mtime.com, etc. After obtaining the unread short message, it is necessary to firstly determine whether the short message number of the unread short message matches the pre-stored number. If they do not match, go to step 128; if they do match, go to step 124.
举例来说,当监听到的短信为来自12306的短信,卡包应用检测到该号码已存在预存储的号码库中,即该短信号码与预存储的号码相匹配,再继续执行步骤124。若当监听到的短信为来自手机通信录里面的朋友发过来信息,该短信号码不与预存储的号码相匹配,则不对其进行任何处理。For example, when the monitored short message is a short message from 12306, the card package application detects that the number has been stored in the pre-stored number database, that is, the short message number matches the pre-stored number, and then proceeds to step 124 . If the short message that is monitored is sent from a friend in the mobile phone address book, and the short message number does not match the pre-stored number, then it will not be processed in any way.
步骤124,判断短信内容是否包含特定的关键字,并判断根据关键字中的信息是否可以构成一个完整的卡片。若是,执行步骤126,否则,执行步骤128。Step 124, judging whether the content of the short message contains a specific keyword, and judging whether a complete card can be formed according to the information in the keyword. If yes, go to step 126; otherwise, go to step 128.
具体的,解析短信内容,查找短信中是否包含有“已购”、“月”、“日”、“火车”、“订单号”、“时间”、“车厢”、“座位”、“电影票”、“取票码”、“地点”、“地址”、“航班”、“登机”、“舱位”等关键字,若检测到包含上述部分关键字时,则判断该短信内容中包含的所有关键字是否可以构成一个完整的卡片,如果可以,则判断为根据关键字中的信息可以构成一个完整的卡片,并继续执行步骤126,否则,判断为根据关键字中的信息不可以构成一个完整的卡片,执行步骤128。Specifically, analyze the content of the text message to find out whether the text message contains "purchased", "month", "day", "train", "order number", "time", "carriage", "seat", "movie ticket" ", "ticket collection code", "location", "address", "flight", "boarding", "class" and other keywords, if any of the above-mentioned keywords are detected, it will be judged Whether all the keywords can form a complete card, if yes, judge that a complete card can be formed according to the information in the keywords, and proceed to step 126, otherwise, judge that it is not possible to form a card based on the information in the keywords For a complete card, go to step 128.
举例来说,当获取的具体短信内容为“订单号E88888888,张先生您已购05月27日G88次07车04E号北京南07:53开,候车地点:第一候车室。张三请尽快换取纸质车票。【铁路客服】”,则根据该短信,能够检测出其包含的关键字可以构成一个完整的卡片,并进一步执行步骤126。当获取的短信为“8月8日有活动请您参加”,则其中虽然有时间的关键字部分,但根据该关键字内容并不能构成一个完整的卡片,则判断为根据关键字中的信息不可以构成一个完整的卡片,执行步骤128。For example, when the content of the specific text message obtained is "Order number E88888888, Mr. Zhang, you have purchased G88 on May 27, 07 Car No. 04E, Beijing South 07:53, waiting place: the first waiting room. Zhang San, please as soon as possible In exchange for a paper ticket. [Railway Customer Service]", according to the text message, it can be detected that the keywords contained in it can constitute a complete card, and step 126 is further performed. When the text message obtained is "Please participate in an event on August 8th", although there is a keyword part of time, but the content of the keyword cannot form a complete card, it is judged as based on the information in the keyword If a complete card cannot be formed, step 128 is performed.
步骤126,按照预定的规则提取出特定的信息,存入卡包数据库。Step 126, extract specific information according to predetermined rules, and store it in the card package database.
本实施例中,提取出所有关键字及其对应的内容,将提取的短信内容按照预先设定的规则进行数据重组,生成完整卡片的信息的数据,并存入卡包数据库。In this embodiment, all keywords and their corresponding contents are extracted, and the extracted short message content is restructured according to the preset rules to generate complete card information data and store it in the card package database.
具体的,提取出短信内容中包含的所有关键字及其对应的内容,根据提取出的信息来判断其为何种类型的卡片,再对提取出的信息进行重组,生成对应类型的卡片所需的完整信息的数据,存入有对应标识的卡包数据库。Specifically, extract all the keywords contained in the SMS content and their corresponding content, judge what type of card it is based on the extracted information, and then reorganize the extracted information to generate the required information for the corresponding type of card. The data of complete information is stored in the card package database with corresponding identification.
例如,当监听获取了12306的短信后,则此短信号码与预存储的号码相匹配,且可以初步判断出该卡片的类型为火车票卡片,并可以根据火车票卡片对应的格式,将提取的信息对应存储到火车票类的卡包数据库中。如果监听获取的短信号码虽然与预存储的号码相匹配,但还不能判断出卡片的类型,则继续检测提取出的关键字,根据关键字来判断对应的卡片类型,例如收到了来自携程发过来的短信,则并不能根据此短信号码判断出该对应的卡片类型是火车票还是飞机票还是酒店订购的信息,则需要进一步解析该短信内容,根据从提取的关键字中来判断,如若关键字中包含“航班号”或者“登机时间”等关键字,则可以判断该信息属于飞机票卡片,类似的,若关键字中包含“动车”或者“硬座”等关键字,则可以判断该信息属于火车票卡片。For example, when the short message of 12306 is obtained by monitoring, the short message number matches the pre-stored number, and it can be preliminarily judged that the type of the card is a train ticket card, and according to the format corresponding to the train ticket card, the extracted The information is correspondingly stored in the card package database of train tickets. If the SMS number obtained by monitoring matches the pre-stored number, but the type of the card cannot be judged, continue to detect the extracted keywords, and judge the corresponding card type according to the keywords, for example, if you receive a card from Ctrip SMS, it is not possible to determine whether the corresponding card type is a train ticket, an air ticket, or a hotel order information based on the SMS number. It is necessary to further analyze the content of the SMS and judge it based on the extracted keywords. If the keyword If the keyword contains keywords such as "flight number" or "boarding time", it can be judged that the information belongs to the ticket card. Similarly, if the keyword contains keywords such as "train" or "hard seat", the information can be judged It belongs to the train ticket card.
本实施例中,通过判断卡片的类型,使得数据库存入的信息分类清晰,对应生成的卡片也分类清晰,进一步方便用户查阅。In this embodiment, by judging the type of the card, the information stored in the database is classified clearly, and the correspondingly generated cards are also classified clearly, which is further convenient for users to refer to.
步骤128,不对未读短信进行处理。Step 128, do not process unread short messages.
如果短信号码不与预存储的号码相匹配或者短信内容不包含特定的关键字或者不能构成一个完整的卡片,则不对短信做任何处理,以减少对内存的占用,节约资源。If the SMS number does not match the pre-stored number or the content of the SMS does not contain specific keywords or cannot form a complete card, then no processing will be performed on the SMS to reduce memory usage and save resources.
在一个实施例中,如图4所示,卡片生成方法还包括:In one embodiment, as shown in Figure 4, the card generation method also includes:
步骤140,侦测显示卡片列表的指令。Step 140, detecting the command to display the card list.
本实施例中,在卡片生成后,可以将该卡片数据存储到移动终端中,并生成卡包控件,通过侦测特定的指令,来调用卡包数据,例如,侦测终端中嵌入到特定应用的卡包对应的控件的点击事件、侦测用户的手指在触摸显示屏上的特定手势等。In this embodiment, after the card is generated, the card data can be stored in the mobile terminal, and the card package control can be generated, and the card package data can be called by detecting specific instructions, for example, the detection terminal is embedded in a specific application The click event of the control corresponding to the card package, the detection of the specific gesture of the user's finger on the touch screen, etc.
步骤150,获取卡包数据库中的卡片,通过卡片列表形式显示该卡片。Step 150, acquiring the cards in the card package database, and displaying the cards in the form of a card list.
举例来说,可以将卡包控件集成到时钟应用当中,当点击移动终端上的时钟图标后,终端除了对应显示“闹钟”、“时钟”、“计时”等选项卡(tab)外,还显示“卡包”选项卡,当继续点击该选项卡后,则可以对应显示所有卡片信息的列表,如图2所示,在本实施方式中,列表中的卡片可以按照时间顺序或者依据类型等方式来排列。For example, the card package control can be integrated into the clock application. When the clock icon on the mobile terminal is clicked, in addition to the corresponding tabs such as "alarm clock", "clock" and "timing", the terminal also displays "Card package" tab, when you continue to click on this tab, you can display a list of all card information, as shown in Figure 2, in this embodiment, the cards in the list can be in chronological order or by type, etc. to arrange.
步骤160,侦测对卡片列表的特定手势操作,例如单指向上滑动/单指向下滑动。Step 160, detecting specific gesture operations on the card list, such as one-finger sliding up/one-finger sliding down.
步骤170,根据该特定的手势滚动显示卡包数据库中的卡片。Step 170, scrolling and displaying the cards in the card package database according to the specific gesture.
本实施例中,当打开卡包应用后,可以通过滑动移动终端的屏幕,来对应滚动显示卡包数据库中的卡片,方便用户查阅。In this embodiment, after the card package application is opened, the cards in the card package database can be scrolled and displayed by sliding the screen of the mobile terminal, which is convenient for the user to check.
如图5所示,在一个实施例中,提供了一种卡片生成装置,该装置包括:As shown in Figure 5, in one embodiment, a card generating device is provided, which includes:
监听模块210,用于监听接收到的未读短信,获取所述未读短信的短信内容。The monitoring module 210 is configured to monitor received unread short messages, and obtain the content of the unread short messages.
处理模块220,用于对获取到的所述短信内容进行分析,如果所述短信内容符合预定的规则,则基于所述短信内容提取特定的信息,存入卡包数据库。The processing module 220 is configured to analyze the acquired content of the short message, and if the content of the short message conforms to predetermined rules, then extract specific information based on the content of the short message and store it in the card package database.
卡片生成模块230,用于根据存入卡包数据库的信息生成对应的卡片。The card generating module 230 is configured to generate corresponding cards according to the information stored in the card package database.
在一个实施例中,监听模块210还用于在获取所述未读短信的短信内容之前,获取未读短信对应的号码。In one embodiment, the monitoring module 210 is further configured to obtain the number corresponding to the unread short message before obtaining the short message content of the unread short message.
进一步的,处理模块220用于判断所述短信号码是否与预存储的号码相匹配;若是,则判断所述短信内容是否包含特定的关键字,并判断根据关键字中的信息是否可以构成一个完整的卡片;若是,则按照预定的规则提取出特定的信息,存入所述卡包数据库;如果所述短信号码不与预存储的号码相匹配或者所述短信内容不包含特定的关键字或者不能构成一个完整的卡片,则不对所述未读短信进行处理。Further, the processing module 220 is used to judge whether the number of the short message matches the pre-stored number; if so, judge whether the content of the short message contains a specific keyword, and judge whether a complete If so, extract specific information according to predetermined rules and store it in the card package database; if the SMS number does not match the pre-stored number or the content of the SMS does not contain specific keywords or cannot If a complete card is formed, the unread short message will not be processed.
在一个实施例中,如图6所示,该装置还包括:In one embodiment, as shown in Figure 6, the device also includes:
卡片显示模块240,用于侦测显示卡片列表的指令;获取所述卡包数据库中的卡片,通过卡片列表形式显示所述卡片。The card display module 240 is configured to detect an instruction to display a card list; obtain the cards in the card package database, and display the cards in the form of a card list.
进一步的,卡片显示模块240还用于侦测对所述卡片列表的特定手势操作;根据所述特定手势滚动显示卡包数据库中的卡片。Further, the card display module 240 is also used to detect a specific gesture operation on the card list; scroll and display the cards in the card package database according to the specific gesture.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, should be considered as within the scope of this specification.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but should not be construed as limiting the patent scope of the invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510451906.XA CN105049627A (en) | 2015-07-28 | 2015-07-28 | Card generation method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510451906.XA CN105049627A (en) | 2015-07-28 | 2015-07-28 | Card generation method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105049627A true CN105049627A (en) | 2015-11-11 |
Family
ID=54455818
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510451906.XA Pending CN105049627A (en) | 2015-07-28 | 2015-07-28 | Card generation method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105049627A (en) |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105872224A (en) * | 2016-03-30 | 2016-08-17 | 北京小米移动软件有限公司 | Card style short message generation method and apparatus |
| CN105894361A (en) * | 2016-03-31 | 2016-08-24 | 深圳市万普拉斯科技有限公司 | Method and device for realizing card information synchronization |
| CN106712960A (en) * | 2016-12-20 | 2017-05-24 | 北京小米移动软件有限公司 | Verification code information processing method and apparatus |
| CN107370670A (en) * | 2017-09-06 | 2017-11-21 | 叶进蓉 | Unread message extracts methods of exhibiting and device |
| CN107436901A (en) * | 2016-05-29 | 2017-12-05 | 腾讯科技(深圳)有限公司 | Visualize the generation method and device of electronic card |
| CN108664303A (en) * | 2018-04-28 | 2018-10-16 | 北京小米移动软件有限公司 | The display methods and device of web page contents |
| CN110069752A (en) * | 2018-01-23 | 2019-07-30 | 中国移动通信集团终端有限公司 | Method, apparatus, equipment and the medium that message automatic adaptation is shown |
| CN110852717A (en) * | 2019-11-11 | 2020-02-28 | 青岛海信移动通信技术股份有限公司 | Travel updating method and intelligent communication terminal |
| CN111782125A (en) * | 2020-06-18 | 2020-10-16 | Oppo广东移动通信有限公司 | Information display method, terminal and storage medium |
| CN111970406A (en) * | 2020-10-22 | 2020-11-20 | 北京泰迪熊移动科技有限公司 | Short message display method and device |
| CN111966806A (en) * | 2020-08-17 | 2020-11-20 | 深圳市活力天汇科技股份有限公司 | Information extraction and repair method for hotel reservation short message |
| CN116033064A (en) * | 2022-05-30 | 2023-04-28 | 荣耀终端有限公司 | Card display method, electronic device and readable storage medium |
| CN116056019A (en) * | 2022-05-30 | 2023-05-02 | 荣耀终端有限公司 | A short message analysis method and electronic equipment for card recommendation |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070133875A1 (en) * | 2005-12-12 | 2007-06-14 | Nokia Corporation | Pictorial identification of a communication event |
| CN104038627A (en) * | 2014-05-09 | 2014-09-10 | 北京奇虎科技有限公司 | Method and device for prompting terminal information and terminal |
-
2015
- 2015-07-28 CN CN201510451906.XA patent/CN105049627A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070133875A1 (en) * | 2005-12-12 | 2007-06-14 | Nokia Corporation | Pictorial identification of a communication event |
| CN104038627A (en) * | 2014-05-09 | 2014-09-10 | 北京奇虎科技有限公司 | Method and device for prompting terminal information and terminal |
Cited By (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105872224A (en) * | 2016-03-30 | 2016-08-17 | 北京小米移动软件有限公司 | Card style short message generation method and apparatus |
| CN105894361A (en) * | 2016-03-31 | 2016-08-24 | 深圳市万普拉斯科技有限公司 | Method and device for realizing card information synchronization |
| CN107436901B (en) * | 2016-05-29 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Visual electronic card generation method and device |
| CN107436901A (en) * | 2016-05-29 | 2017-12-05 | 腾讯科技(深圳)有限公司 | Visualize the generation method and device of electronic card |
| CN106712960B (en) * | 2016-12-20 | 2021-04-13 | 北京小米支付技术有限公司 | Processing method and device of verification code information |
| CN106712960A (en) * | 2016-12-20 | 2017-05-24 | 北京小米移动软件有限公司 | Verification code information processing method and apparatus |
| CN107370670A (en) * | 2017-09-06 | 2017-11-21 | 叶进蓉 | Unread message extracts methods of exhibiting and device |
| CN110069752A (en) * | 2018-01-23 | 2019-07-30 | 中国移动通信集团终端有限公司 | Method, apparatus, equipment and the medium that message automatic adaptation is shown |
| CN108664303A (en) * | 2018-04-28 | 2018-10-16 | 北京小米移动软件有限公司 | The display methods and device of web page contents |
| CN110852717A (en) * | 2019-11-11 | 2020-02-28 | 青岛海信移动通信技术股份有限公司 | Travel updating method and intelligent communication terminal |
| CN111782125A (en) * | 2020-06-18 | 2020-10-16 | Oppo广东移动通信有限公司 | Information display method, terminal and storage medium |
| WO2021253988A1 (en) * | 2020-06-18 | 2021-12-23 | Oppo广东移动通信有限公司 | Information display method, terminal, and storage medium |
| CN111966806A (en) * | 2020-08-17 | 2020-11-20 | 深圳市活力天汇科技股份有限公司 | Information extraction and repair method for hotel reservation short message |
| CN111966806B (en) * | 2020-08-17 | 2023-10-27 | 深圳市活力天汇科技股份有限公司 | Information extraction and repair method for hotel reservation short message |
| CN111970406A (en) * | 2020-10-22 | 2020-11-20 | 北京泰迪熊移动科技有限公司 | Short message display method and device |
| CN116033064A (en) * | 2022-05-30 | 2023-04-28 | 荣耀终端有限公司 | Card display method, electronic device and readable storage medium |
| CN116056019A (en) * | 2022-05-30 | 2023-05-02 | 荣耀终端有限公司 | A short message analysis method and electronic equipment for card recommendation |
| CN116056019B (en) * | 2022-05-30 | 2023-10-20 | 荣耀终端有限公司 | A short message parsing method and electronic device for card recommendation |
| CN116033064B (en) * | 2022-05-30 | 2023-10-20 | 荣耀终端有限公司 | Card display method, electronic device and readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105049627A (en) | Card generation method and device | |
| US11909906B2 (en) | Method and apparatus for pushing notification, mobile terminal, and graphical user interface | |
| CN104038627B (en) | Method and device for prompting terminal information and terminal | |
| JP6397859B2 (en) | Method, system, and recording medium for message reception notification | |
| US9667700B2 (en) | Rendering a redeemable document | |
| US20250181223A1 (en) | Systems, devices and methods for electronic determination and communication of location information | |
| US20170286912A1 (en) | Intelligent reminder methods, systems and apparatuses | |
| CN106327142A (en) | Information display method and apparatus | |
| JP5930217B2 (en) | Method for detecting expressions that can be dangerous expressions depending on a specific theme, electronic device for detecting the expressions, and program for the electronic device | |
| CN105138630A (en) | Schedule prompt method and terminal | |
| CN108604152A (en) | Unread message prompt method and terminal | |
| CN106713116A (en) | Information processing method, apparatus and system | |
| KR20160027419A (en) | Method for Providing Additional Functions based on information | |
| CN108021397A (en) | A kind of schedule processing method, device and mobile terminal | |
| CN114726947A (en) | Message display method and device, user terminal and readable storage medium | |
| CN107257358B (en) | Information pushing method, terminal and server | |
| CN105894361A (en) | Method and device for realizing card information synchronization | |
| CN114637435A (en) | Information prompting method, device, device and storage medium in a vehicle | |
| CN111782125A (en) | Information display method, terminal and storage medium | |
| KR102223577B1 (en) | Method, apparatus and computer-readable medium for unified management of service reservation information | |
| CN117793719A (en) | Content interception methods, devices, electronic devices and computer-readable media | |
| CN118138675A (en) | Multi-application linkage method, device and equipment of vehicle-mounted system | |
| CN104142963A (en) | Micro-blog orientation method and system as well as client | |
| CN106941571A (en) | A kind of method and mobile terminal for generating prompting message | |
| KR20130049188A (en) | Method for managing mobile terminated service |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151111 |
|
| RJ01 | Rejection of invention patent application after publication |