[go: up one dir, main page]

CN106657641A - Method and device for optimizing sharing mode and mobile terminal - Google Patents

Method and device for optimizing sharing mode and mobile terminal Download PDF

Info

Publication number
CN106657641A
CN106657641A CN201611220487.XA CN201611220487A CN106657641A CN 106657641 A CN106657641 A CN 106657641A CN 201611220487 A CN201611220487 A CN 201611220487A CN 106657641 A CN106657641 A CN 106657641A
Authority
CN
China
Prior art keywords
sharing
content
interface
picture
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611220487.XA
Other languages
Chinese (zh)
Other versions
CN106657641B (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611220487.XA priority Critical patent/CN106657641B/en
Publication of CN106657641A publication Critical patent/CN106657641A/en
Application granted granted Critical
Publication of CN106657641B publication Critical patent/CN106657641B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method and a device for optimizing a sharing mode and a mobile terminal. The method comprises the steps of confirming a target sharing application for one recorded object of a notebook; selecting the most matched sharing interface from the sharing interfaces of the target sharing application based on the attribute of the recorded content in the recorded object; enabling the recorded content to adapt to the attribute defined by the sharing interface, calling the sharing interface and sharing the sharing interface to the target sharing application. The method for optimizing the sharing mode solves the problem that a user shares the recorded content through complex steps.

Description

一种优化分享方式的方法和装置及移动终端Method and device for optimizing sharing mode and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,特别是涉及一种优化分享方式的方法和装置及移动终端。The invention relates to the technical field of mobile terminals, in particular to a method and device for optimizing a sharing mode and a mobile terminal.

背景技术Background technique

随着终端设备技术的迅速发展,用户可以很方便的使用终端设备完成日常中从工作、消费到娱乐,都有对应各终端适用的系统而开发的应用,其中,记事本更是每个终端设备必不可少的应用之一。With the rapid development of terminal equipment technology, users can easily use terminal equipment to complete their daily work, consumption and entertainment. There are applications developed corresponding to the systems applicable to each terminal. One of the must-have apps.

目前,使用记事本记事后,可以点击记事本显示界面上的分享按钮将记事本内容分享到移动终端一些应用中,当用户确定待分享应用后,可以进一步的选择该应用支持的分享方式对记事内容进行分享。At present, after using the notepad to record things, you can click the share button on the notepad display interface to share the content of the notepad to some applications on the mobile terminal. After the user confirms the application to be shared, he can further select the sharing method supported by the application content to share.

但是,在实际应用中,如果用户要通过复杂的步骤分享记事内容,往往会降低用户的使用体验。However, in practical applications, if the user wants to share the note content through complicated steps, the user experience will often be reduced.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供解决上述问题或者至少部分地解决上述问题的一种优化分享方式的方法和装置及移动终端。In view of the above problems, the present invention is proposed to provide a method, an apparatus and a mobile terminal for an optimized sharing manner that solve the above problems or at least partially solve the above problems.

根据本发明的一个方面,提供了一种优化分享方式的方法,包括:确认对记事本一条记事对象的目标分享应用;根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口;将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用。具有通过简单的步骤分享记事本内容的有益效果。According to one aspect of the present invention, a method for optimizing a sharing method is provided, including: confirming a target sharing application for a memo object in the notepad; Select the most matching sharing interface among the sharing interfaces; adapt the content of the note to the attributes specified by the sharing interface, and call the sharing interface to share to the target sharing application. It has the beneficial effect of sharing the content of the notepad through simple steps.

结合第一方面,本发明在第一方面的第一种实现方式中,根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口的步骤,包括:获取所述记事对象中的记事内容的文件格式和内容数量;将所述文件格式和内容数量与预置的对应所述分享目标应用的分享接口选择规则匹配,从所述分享目标应用的接口中选择最匹配的分享接口。具有根据记事内容自动匹配分享接口的有益效果。In combination with the first aspect, in the first implementation manner of the first aspect of the present invention, according to the attributes of the note content in the note object, the step of selecting the most matching sharing interface from the sharing interfaces of the sharing target application , including: acquiring the file format and content quantity of the note content in the note object; matching the file format and content quantity with the preset sharing interface selection rule corresponding to the sharing target application, and selecting from the sharing target application Select the most matching sharing interface from the interfaces. It has the beneficial effect of automatically matching the sharing interface according to the note content.

结合第一方面的第一种实现方式,本发明在第一方面的第二种实现方式中,所述根据预置的对应所述分享目标应用的分享接口选择规则,从所述分享目标应用的接口中选择最匹配的分享接口的步骤,包括:若所述记事内容的文件格式为文本格式、所述内容数量为字符个数,则判断目标分享应用的文本分享接口的字符个数限制是否大于所述字符个数;如果大于,则选择所述文本分享接口;如果不大于,则选择图片分享接口。具有根据目标分享应用的分享接口选择规则,选择分享文件格式及对应分享接口的有益效果。With reference to the first implementation of the first aspect, in the second implementation of the first aspect of the present invention, according to the preset sharing interface selection rule corresponding to the sharing target application, the The step of selecting the most matching sharing interface in the interface includes: if the file format of the note content is a text format, and the number of the content is the number of characters, then judging whether the character limit of the text sharing interface of the target sharing application is greater than The number of characters; if greater, select the text sharing interface; if not greater, select the picture sharing interface. It has the beneficial effect of selecting the sharing file format and the corresponding sharing interface according to the sharing interface selection rules of the target sharing application.

结合第一方面的第一种实现方式,本发明在第一方面的第三种实现方式中,所述所述根据预置的对应所述分享目标应用的分享接口选择规则,从所述分享目标应用的接口中选择最匹配的分享接口的步骤,包括:当所述记事内容的文件格式包括文本格式和图片格式,则选择图片分享接口;或者当所述记事内容的文件格式包括图片格式、所述内容数量对应的图片个数大于图片分享接口的规定,则选择图片分享接口。具有根据记事内容的容量自动匹配分享接口的有益效果。In combination with the first implementation of the first aspect, in the third implementation of the first aspect of the present invention, the sharing interface selection rule corresponding to the sharing target application preset, from the sharing target The step of selecting the most matching sharing interface in the interface of the application includes: when the file format of the note content includes a text format and a picture format, then selecting a picture sharing interface; or when the file format of the note content includes a picture format, all If the number of pictures corresponding to the quantity of content mentioned above is greater than the stipulations of the picture sharing interface, then the picture sharing interface is selected. It has the beneficial effect of automatically matching the sharing interface according to the capacity of the note content.

结合第一方面的第一种至第三种实现方式,本发明在第一方面的第四种实现方式中,将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用的步骤,包括:当所述文件格式和内容数量符合选择的分享接口规定的属性,则直接调用所述分享接口分享至目标分享应用;当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用。具有根据分享接口的属性转换记事内容,进行的分享的有益效果。In combination with the first to third implementations of the first aspect, in the fourth implementation of the first aspect of the present invention, the content of the note is adapted to the attributes specified by the sharing interface, and the sharing The step of sharing the interface to the target sharing application includes: when the file format and the amount of content meet the attributes specified by the selected sharing interface, directly calling the sharing interface to share to the target sharing application; when the file format and the amount of content do not If the selected sharing interface is met, the content of the note is converted into the content of the attribute specified by the sharing interface, and then the sharing interface is called to share to the target sharing application. It has the beneficial effect of converting note content according to the attribute of the sharing interface for sharing.

结合第一方面的第四种实现方式,本发明在第一方面的第五种实现方式中,所述当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用的步骤,包括:当所述记事内容的文件格式为文本格式、所述内容数量为字符个数时,且选择了图片分享接口时,则将整个记事内容转换为一张图片;调用所述图片分享接口将所述图片分享至目标分享应用。具有将记事内容中的图片和文字转换为一张图片进行分享的有益效果。In combination with the fourth implementation of the first aspect, in the fifth implementation of the first aspect of the present invention, when the file format and content quantity do not conform to the selected sharing interface, the note content is converted into After the content of the attribute specified by the sharing interface, the step of invoking the sharing interface to share to the target sharing application includes: when the file format of the note content is in text format and the number of the content is the number of characters, and select When the picture sharing interface is opened, the entire note content is converted into a picture; the picture sharing interface is called to share the picture to the target sharing application. The invention has the beneficial effect of converting the picture and text in the note content into a picture for sharing.

结合第一方面的第四种实现方式,本发明在第一方面的第六种实现方式中,所述当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用的步骤,包括:当所述记事内容的文件格式包括文本格式和图片格式,或者当所述记事内容的文件格式包括图片格式、且所述内容数量对应的图片个数大于图片分享接口的规定,且选择了图片分享接口时,则将整个记事内容转换为一张图片;调用所述图片分享接口将所述图片分享至目标分享应用。具有将多个图片转换为一张图片进行分享的有益效果。In combination with the fourth implementation of the first aspect, in the sixth implementation of the first aspect of the present invention, when the file format and content quantity do not conform to the selected sharing interface, the note content is converted into After the content of the attribute specified by the sharing interface, the step of calling the sharing interface to share to the target sharing application includes: when the file format of the note content includes text format and picture format, or when the file format of the note content Including the picture format, and the number of pictures corresponding to the content quantity is greater than the stipulations of the picture sharing interface, and when the picture sharing interface is selected, the entire note content is converted into a picture; the picture sharing interface is called to convert the picture Share to the target sharing app. It has the beneficial effect of converting multiple pictures into one picture for sharing.

结合第一方面的第一种实现方式,本发明在第一方面的第七种实现方式中,所述根据所述记事对象中的记事内容的属性,从所述目标分享应用的各分享接口中选择最匹配的分享接口的步骤,包括:当所述记事内容的文件格式包括文本格式和图片格式、所述内容数量为对应文本格式的字符个数和对应图片格式的图片个数时,且所述字符个数不大于目标分享应用的文本分享接口规定的字数,则选择文本分享接口和图片分享接口。具有选择文本分享接口和图片分享接口分别分享对应文本格式和对应图片格式的记事内容的有益效果。In combination with the first implementation of the first aspect, in the seventh implementation of the first aspect of the present invention, according to the attribute of the note content in the note object, from each sharing interface of the target sharing application The step of selecting the most matching sharing interface includes: when the file format of the note content includes a text format and a picture format, and the quantity of the content is the number of characters corresponding to the text format and the number of pictures corresponding to the picture format, and the If the number of characters in the description is not greater than the number of characters specified by the text sharing interface of the target sharing application, select the text sharing interface and the picture sharing interface. It has the beneficial effect of selecting the text sharing interface and the picture sharing interface to share the memorandum content corresponding to the text format and the corresponding picture format respectively.

结合第一方面,本发明在第一方面的第八种实现方式中,所述将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用的步骤,包括:从所述记事内容中提取文本内容,并调用文本分享接口分享至目标分享应用;从所述记事内容中提取图片,并分别针对每张图片调用图片分享接口分享至目标分享应用。具有将记事内容和图像内容分别进行分享的有益效果。In combination with the first aspect, in the eighth implementation manner of the first aspect of the present invention, the step of adapting the note content to the attributes specified by the sharing interface and calling the sharing interface to the target sharing application , including: extracting text content from the note content, and calling a text sharing interface to share to a target sharing application; extracting pictures from the note content, and calling a picture sharing interface for each picture to share to a target sharing application. It has the beneficial effect of separately sharing the memorandum content and the image content.

结合第一方面,本发明在第一方面的第九种实现方式中,在将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用的步骤之前,还包括:提示用户是否以对应所述分享接口的文件格式对所述记事内容进行分享。具有提示用户确定分享内容的文件格式的有益效果。In combination with the first aspect, in the ninth implementation manner of the first aspect of the present invention, before the step of adapting the note content to the attributes specified by the sharing interface and calling the sharing interface to the target sharing application , further comprising: prompting the user whether to share the memo content in a file format corresponding to the sharing interface. It has the beneficial effect of prompting the user to determine the file format of the shared content.

结合第一方面,本发明在第一方面的第十种实现方式中,所述确认对记事本一条记事对象的目标分享应用的步骤,包括:当接收对记事本的一条记事对象的分享触发操作后,触发分享菜单栏;接收在所述分享菜单栏选择操作,以确认目标分享应用。具有确认目标分享应用的有益效果。In combination with the first aspect, in the tenth implementation manner of the first aspect of the present invention, the step of confirming the target sharing application of a note object in the notepad includes: when receiving a sharing trigger operation for a note object in the notepad After that, the sharing menu bar is triggered; a selection operation in the sharing menu bar is received to confirm the target sharing application. It has the beneficial effect of confirming the target sharing application.

根据本发明的另一方面,提供了一种优化分享方式的装置,包括:目标分享应用确认模块,用于确认对记事本一条记事对象的目标分享应用;分享接口选择模块,用于根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口;分享模块,用于将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用。具有通过简单的步骤分享记事本内容的有益效果。According to another aspect of the present invention, a device for optimizing a sharing method is provided, including: a target sharing application confirmation module for confirming a target sharing application for a memo object in a notepad; a sharing interface selection module for For the attribute of the note content in the note object, select the most matching sharing interface from the sharing interfaces of the sharing target application; the sharing module is used to adapt the note content to the attribute specified by the sharing interface, and call The sharing interface is shared to a target sharing application. It has the beneficial effect of sharing the content of the notepad through simple steps.

结合第二方面,本发明在第二方面的第一种实现方式中,所述分享接口选择模块,包括:记事内容属性获取子模块,用于获取所述记事对象中的记事内容的文件格式和内容数量;分享接口匹配子模块,用于将所述文件格式和内容数量与预置的对应该分享目标应用的分享接口选择规则匹配,从所述分享目标应用的接口中选择最匹配的分享接口。具有根据记事内容自动匹配分享接口的有益效果。With reference to the second aspect, in the first implementation manner of the second aspect of the present invention, the sharing interface selection module includes: a memorandum content attribute acquisition submodule, which is used to acquire the file format and Content quantity; sharing interface matching sub-module, used to match the file format and content quantity with the preset sharing interface selection rules corresponding to the sharing target application, and select the most matching sharing interface from the interfaces of the sharing target application . It has the beneficial effect of automatically matching the sharing interface according to the note content.

结合第二方面,本发明在第二方面的第二种实现方式中,所述分享接口匹配子模块,包括:判断单元,用于若所述记事内容的文件格式为文本格式、所述内容数量为字符个数,则判断目标应用的文本分享接口的字符个数限制是否大于所述字符个数;文本分享接口选择单元,用于如果大于,则选择所述文本分享接口;图片分享接口选择单元,用于如果不大于,则选择图片分享接口。具有根据目标分享应用的分享接口选择规则,选择分享文件格式及对应分享接口的有益效果。In combination with the second aspect, in the second implementation manner of the second aspect of the present invention, the sharing interface matching submodule includes: a judging unit configured to, if the file format of the memorandum content is a text format, the content quantity is the number of characters, then judge whether the character number limit of the text sharing interface of the target application is greater than the number of characters; the text sharing interface selection unit is used to select the text sharing interface if it is larger; the picture sharing interface selection unit , used to select the picture sharing interface if not greater than. It has the beneficial effect of selecting the sharing file format and the corresponding sharing interface according to the sharing interface selection rules of the target sharing application.

结合第二方面的第一种实现方式,本发明在第二方面的第三种实现方式中,所述分享接口匹配子模块,包括:格式判断单元,用于当所述记事内容的文件格式包括文本格式和图片格式,则选择图片分享接口;确定图片分享接口单元,用于或者当所述记事内容的文件格式包括图片格式、所述内容数量对应的图片个数大于图片分享接口的规定,则选择图片分享接口。具有根据记事内容的容量自动匹配分享接口的有益效果。In combination with the first implementation of the second aspect, in the third implementation of the second aspect of the present invention, the sharing interface matching submodule includes: a format judging unit, configured to be used when the file format of the note content includes text format and picture format, then select the picture sharing interface; determine the picture sharing interface unit, for or when the file format of the note content includes the picture format, and the number of pictures corresponding to the content quantity is greater than the stipulation of the picture sharing interface, then Select the picture sharing interface. It has the beneficial effect of automatically matching the sharing interface according to the capacity of the note content.

结合第二方面的第一种至第三种实现方式,本发明在第二方面的第四种实现方式中,所述分享模块,包括:符合调用子模块,用于当所述文件格式和内容数量符合选择的分享接口规定的属性,则直接调用所述分享接口分享至目标分享应用;不符合调用子模块,用于当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用。具有根据分享接口的属性转换记事内容,进行的分享的有益效果。In combination with the first to third implementations of the second aspect, in the fourth implementation of the second aspect of the present invention, the sharing module includes: a conforming call sub-module for when the file format and content If the number conforms to the attributes specified by the selected sharing interface, then directly call the sharing interface to share to the target sharing application; if it does not meet the calling sub-module, it is used when the file format and content quantity do not meet the selected sharing interface, then the described After the memorandum content is converted into the content of the attributes specified by the sharing interface, the sharing interface is called to share to the target sharing application. It has the beneficial effect of converting note content according to the attribute of the sharing interface for sharing.

结合第二方面的第四种实现方式,本发明在第二方面的第五种实现方式中,所述不符合调用子模块,包括:图片转换单元,用于当所述记事内容的文件格式为文本格式、所述内容数量为字符个数时,且选择了图片分享接口时,则将整个记事内容转换为一张图片;分享单元,用于调用所述图片分享接口将所述图片分享至目标分享应用。具有将记事内容中的图片和文字转换为一张图片进行分享的有益效果。In combination with the fourth implementation of the second aspect, in the fifth implementation of the second aspect of the present invention, the non-compliant calling submodule includes: an image conversion unit, configured to use when the file format of the memorandum content is When the text format, the number of the content is the number of characters, and the picture sharing interface is selected, the entire note content is converted into a picture; the sharing unit is used to call the picture sharing interface to share the picture to the target Share the app. The invention has the beneficial effect of converting the picture and text in the note content into a picture for sharing.

结合第二方面的第四种实现方式,本发明在第二方面的第六种实现方式中,所述不符合调用子模块,包括:格式转换单元,用于当所述记事内容的文件格式包括文本格式和图片格式,或者当所述记事内容的文件格式包括图片格式、且所述内容数量对应的图片个数大于图片分享接口的规定,且选择了图片分享接口时,则将整个记事内容转换为一张图片;图片分享单元,用于调用所述图片分享接口将所述图片分享至目标分享应用。具有将多个图片转换为一张图片进行分享的有益效果。In combination with the fourth implementation manner of the second aspect, in the sixth implementation manner of the second aspect of the present invention, the non-compliant calling submodule includes: a format conversion unit, configured to be used when the file format of the note content includes Text format and picture format, or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the provisions of the picture sharing interface, and the picture sharing interface is selected, the entire note content is converted is a picture; a picture sharing unit, configured to call the picture sharing interface to share the picture to a target sharing application. It has the beneficial effect of converting multiple pictures into one picture for sharing.

结合第二方面的第二种实现方式,本发明在第二方面的第七种实现方式中,所述分享接口匹配子模块,包括:文本分享接口和图片分享接口选择单元,用于当所述记事内容的文件格式包括文本格式和图片格式、所述内容数量为对应文本格式的字符个数和对应图片格式的图片个数时,且所述字符个数不大于目标分享应用的文本分享接口规定的字数,则选择文本分享接口和图片分享接口。具有选择文本分享接口和图片分享接口分别分享对应文本格式和对应图片格式的记事内容的有益效果。In combination with the second implementation of the second aspect, in the seventh implementation of the second aspect of the present invention, the sharing interface matching submodule includes: a text sharing interface and a picture sharing interface selection unit, used when the When the file format of the note content includes text format and picture format, and the number of the content is the number of characters corresponding to the text format and the number of pictures corresponding to the picture format, and the number of characters is not greater than the text sharing interface specification of the target sharing application word count, select the text sharing interface and picture sharing interface. It has the beneficial effect of selecting the text sharing interface and the picture sharing interface to share the memorandum content corresponding to the text format and the corresponding picture format respectively.

结合第二方面,本发明在第二方面的第八种实现方式中,所述分享模块,包括:分享子模块,用于从所述记事内容中提取文本内容,并调用文本分享接口分享至目标分享应用;图片分享接口调用子模块,用于从所述记事内容中提取图片,并分别针对每张图片调用图片分享接口分享至目标分享应用。具有将记事内容和图像内容分别进行分享的有益效果。In combination with the second aspect, in the eighth implementation manner of the second aspect of the present invention, the sharing module includes: a sharing submodule, configured to extract text content from the note content, and call the text sharing interface to share to the target Sharing application; the picture sharing interface calls a sub-module, which is used to extract pictures from the note content, and call the picture sharing interface for each picture to share to the target sharing application. It has the beneficial effect of separately sharing the memorandum content and the image content.

结合第二方面,本发明在第二方面的第九种实现方式中,还包括:提示模块,用于提示用户是否以对应所述分享接口的文件格式对所述记事内容进行分享。具有提示用户确定分享内容的文件格式的有益效果。With reference to the second aspect, in the ninth implementation manner of the second aspect, the present invention further includes: a prompt module, configured to prompt the user whether to share the note content in a file format corresponding to the sharing interface. It has the beneficial effect of prompting the user to determine the file format of the shared content.

结合第二方面,本发明在第二方面的第十种实现方式中,所述目标分享应用确认模块,包括:分享菜单栏触发子模块,用于当接收对记事本的一条记事对象的分享触发操作后,触发分享菜单栏;接收在所述分享菜单栏选择操作,以确认目标分享应用。具有确认目标分享应用的有益效果。In combination with the second aspect, in the tenth implementation manner of the second aspect of the present invention, the target sharing application confirmation module includes: a sharing menu bar triggering submodule, which is used to After the operation, the sharing menu bar is triggered; receiving a selection operation in the sharing menu bar to confirm the target sharing application. It has the beneficial effect of confirming the target sharing application.

根据本发明的第三方面,还公开了一种移动终端,包括处理器和存储器,According to the third aspect of the present invention, a mobile terminal is also disclosed, including a processor and a memory,

所述存储器用于存储执行上述的一种优化分享方式方法的程序;The memory is used to store a program for executing the above-mentioned optimized sharing method;

所述处理器被配置为用于执行所述存储器中存储的程序。The processor is configured to execute programs stored in the memory.

根据本发明的第四方面,还公开了一种计算机存储介质,用于储存为上述一种优化分享方式的装置所用的计算机软件指令,其包含用于执行上述方面为一种优化分享方式的装置所设计的程序。According to the fourth aspect of the present invention, a computer storage medium is also disclosed, which is used to store computer software instructions for the above-mentioned device for optimizing the sharing method, which includes the device for executing the above-mentioned aspect as an optimized sharing method The designed program.

本发明的一种优化分享方式的方法和装置及移动终端,通过在记事本的一记事事件的分享操作时,在分享菜单栏上选择分享目标应用,在根据确认的分享目标应用和分享内容的属性,自动选择分享目标应用的各分享接口中最匹配的接口,将分享内容进行分享,解决了用户要通过复杂的步骤分享记事内容的问题,具有确认分享内容的属性后,自动确定分享接口的进行分享的有益效果。A method and device for optimizing a sharing method and a mobile terminal of the present invention, by selecting a sharing target application on the sharing menu bar during the sharing operation of a memo event in the notepad, according to the confirmed sharing target application and sharing content Attributes, automatically select the most matching interface among the sharing interfaces of the sharing target application, and share the shared content, which solves the problem that users have to share the content of notes through complicated steps. After confirming the attributes of the shared content, the shared interface is automatically determined Benefits of sharing.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明的一种优化分享方式的方法一种实施例的步骤流程图;FIG. 1 shows a flow chart of steps in an embodiment of a method for optimizing a sharing method according to the present invention;

图2示出了根据本发明的一种优化分享方式的方法另一种实施例的步骤流程图;FIG. 2 shows a flow chart of steps in another embodiment of a method for optimizing a sharing method according to the present invention;

图3示出了根据本发明的一种优化分享方式的装置实施例的结构框图;以及,FIG. 3 shows a structural block diagram of an embodiment of a device for optimizing a sharing method according to the present invention; and,

图4示出了与本发明实施例提供的移动终端相关的手机的部分结构的框图。Fig. 4 shows a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

参照图1,示出了根据本发明的一种优化分享方式的方法一种实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of an embodiment of a method for optimizing a sharing method according to the present invention, which may specifically include the following steps:

步骤101、确认对记事本一条记事对象的目标分享应用。Step 101, confirming the target sharing application of a memo object in the memo pad.

本发明实施例中,在用户使用移动终端上的记事本应用时,当用户完成对一记事事件的编辑操作后,在记事事件的编辑界面上,或者在记事本应用的多条记事事件展示界面中,选择一条记事事件进行分享,当长按一条记事事件时,会弹出对该记事事件的操作子菜单,子菜单上可以包括对该条记事事件的分享按钮,当点击该分享按钮可以对该条记事事件进行分享,并且在记事事件的操作子菜单上点击分享按钮后,会弹出对待分享记事事件要分享的目标分享应用的列表,用户可以通过点击一分享目标应用的名称确认一分享目标应用。当然,在实际应用时,也可以通过在记事本应用中生成一操作菜单按钮,通过点击操作按钮上的分享按键,可以对该记事事件的分享目标应用进行选择,本发明实施例对此不加以限制。In the embodiment of the present invention, when the user uses the notepad application on the mobile terminal, after the user completes the editing operation of a note event, on the edit interface of the note event, or on the multiple note event display interface of the notepad application , select a memo event to share. When you press and hold a memo event, an operation submenu for the memo event will pop up. The submenu can include a share button for the memo event. When you click the share button, you can After sharing a note event, and click the share button on the operation submenu of the note event, a list of target sharing applications to be shared with the shared note event will pop up, and the user can confirm a sharing target application by clicking the name of a sharing target application . Certainly, in actual application, it is also possible to generate an operation menu button in the notepad application, and click the share button on the operation button to select the sharing target application of the note event, which is not included in the embodiment of the present invention. limit.

步骤102、根据所述记事对象中的记事内容的属性,从所述目标分享应用的各分享接口中选择最匹配的分享接口。Step 102. According to the attribute of the note content in the note object, select the most matching sharing interface from the sharing interfaces of the target sharing application.

本发明实施例中,根据步骤102的描述,当用户在记事本的操作子菜单中选择了对一记事事件的分享操作,并选择了分享目标应用后,根据待分享记事事件内容的属性,确定分享目标应用中对应该属性的分享接口,选择接口的时候,会根据当前分享目标应用中提供的接口中,选择与分享内容适用该分享目标应用的最匹配的接口。例如,如果记事事件中的内容是以文字编辑的,而目标分享应用是一社交应用,该应用要求分享的文字内容不能超过32个字,若记事事件的内容中超过了32个字,那么就要将记事事件中的文字内容转换成该应用接收的图片格式,并在发送分享内容时调用该应用对应上述图片格式的分享接口,将待分享的图片格式的文件分享到目标分享应用。In the embodiment of the present invention, according to the description of step 102, when the user selects a share operation for a note event in the operation submenu of the notepad, and selects the sharing target application, according to the attribute of the content of the note event to be shared, determine When selecting the sharing interface corresponding to the attribute in the sharing target application, the interface that best matches the sharing content applicable to the sharing target application will be selected according to the interfaces provided by the current sharing target application. For example, if the content in the note event is edited in text, and the target sharing application is a social application, the application requires that the shared text content cannot exceed 32 characters. If the content of the note event exceeds 32 characters, then the It is necessary to convert the text content in the note event into the image format received by the application, and call the sharing interface of the application corresponding to the above image format when sending the shared content, and share the file in the image format to be shared to the target sharing application.

步骤103、将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用。Step 103 : Adapt the content of the note to the attribute specified by the sharing interface, and call the sharing interface to share to the target sharing application.

本发明实施例中,根据步骤102的描述,当在记事本应用中完成对一记事事件的编辑操作时,用户选择了对该记事事件进行分享时,会根据分享菜单中弹出的子菜单确定一目标分享应用,确定目标分享应用后读取目标分享应用的分享规则,其中包括目标分享应用可以接收的文件格式、文件大小等针对待分享文件的限制规则,从中获取对于待分享文件的限制规则后,根据当前记事事件中记事内容的格式和大小等性质,与限制规则进行匹配,选择针对最匹配的格式和大小后,对当前的待分享的记事本内容进行匹配性转换,并调用匹配的分享接口将转换后的待分享文件进行分享。例如,用户在使用记事本应用记录的内容时,使用文字和图片混合编辑的模式,而针对这种混合编辑的内容,目标分享应用A并不能接收文字和图片分别分享的方式,所以读取目标分享应用A的待分享文件的限制规则中,目标分享应用A只接收.jpg格式的图片文件的分享,所以将该记事事件的记事内容中文字和图片转换为一张.jpg格式的图片,并调用目标分享应用A的图片分享接口将转换后的图片文件进行分享。In the embodiment of the present invention, according to the description of step 102, when the editing operation of a note event is completed in the notepad application, when the user chooses to share the note event, a submenu will pop up in the share menu to determine a Target sharing application, after determining the target sharing application, read the sharing rules of the target sharing application, including the file format and file size that the target sharing application can receive , according to the format and size of the note content in the current note event, match with the restriction rules, select the most matching format and size, perform matching conversion on the current notepad content to be shared, and call the matching share The interface will share the converted file to be shared. For example, when users use the content recorded by the Notepad application, they use the mixed editing mode of text and pictures. For this kind of mixed edited content, the target sharing app A cannot accept the way of sharing text and pictures separately, so read the target In the restriction rules of the files to be shared by sharing application A, the target sharing application A only accepts the sharing of picture files in .jpg format, so the text and pictures in the content of the note event are converted into a picture in .jpg format, and The image sharing interface of the target sharing application A is called to share the converted image file.

在本发明实施例中,当用户使用记事本应用编辑完成一记事事件后,若选择对该记事事件进行分享,确定目标分享应用后,系统会根据目标分享应用对应的对于分享接口所规定的属性后,根据分享接口对应的要求将待分享文件转换为匹配最优分享接口对应的文件格式进行分享,解决了用户要通过复杂的步骤分享记事内容的问题,实现了用户只用选择分享内容和分享目标应用就能自动对分享内容匹配一分享接口,将分享内容进行分享的有益效果。In the embodiment of the present invention, after the user uses the Notepad application to edit a memo event, if he chooses to share the memo event, after determining the target sharing application, the system will use the attributes specified for the sharing interface corresponding to the target sharing application Finally, according to the corresponding requirements of the sharing interface, the file to be shared is converted into a file format corresponding to the optimal sharing interface for sharing, which solves the problem that the user needs to share the note content through complicated steps, and realizes that the user only needs to select the shared content and share The target application can automatically match the sharing content with a sharing interface, and share the beneficial effect of the sharing content.

参照图2,示出了根据本发明的一种优化分享方式的方法另一种实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of steps in another embodiment of a method for optimizing a sharing method according to the present invention, which may specifically include the following steps:

步骤201、当接收对记事本的一条记事对象的分享触发操作后,触发分享菜单栏。Step 201 , after receiving a sharing trigger operation on a memo object in the notepad, trigger the sharing menu bar.

本发明实施例中,当用户点击一记事事件显示界面上的操作菜单中的分享操作时,触发对该记事事件的分享操作,通常记事事件的操作菜单包括在记事本应用中的文件功能中,或者也可以由用户长按一记事事件的名称触发对该记事事件的操作菜单,并且通常在操作菜单中会包含对该记事事件的更多操作,例如,另存为、分享、删除等功能,用户根据需要触控需要的功能选项,则可完成相应的操作。其中,当用户选择了分享操作后,会触发分享菜单栏,分享菜单栏中会包括所有待选择的目标分享应用的名称列表,以便用户选择一目标分享应用。In the embodiment of the present invention, when the user clicks the sharing operation in the operation menu on the display interface of a memo event, the sharing operation of the memo event is triggered. Usually, the operation menu of the memo event is included in the file function of the memo pad application, Or the user can long press the name of a memo event to trigger the operation menu of the memo event, and usually more operations on the memo event will be included in the operation menu, for example, save as, share, delete and other functions, the user Touch the required function option according to the need, and then the corresponding operation can be completed. Wherein, when the user selects a sharing operation, a sharing menu bar will be triggered, and the sharing menu bar will include a name list of all target sharing applications to be selected, so that the user can select a target sharing application.

在实际应用中,当点击一记事事件的分享操作后,则会触发分享按键下的子菜单,子菜单可以是一悬浮列表菜单,列出所有目标分享应用的名称,也可以弹出一新的窗口显示界面,上面展示目标分享应用的图标供用户点击选择,本发明实施例对此不加以限制。In practical applications, when the sharing operation of a note event is clicked, the submenu under the sharing button will be triggered. The submenu can be a floating list menu, listing the names of all target sharing applications, or a new window can pop up The display interface displays the icon of the target sharing application for the user to click and select, which is not limited in this embodiment of the present invention.

步骤202、接收在所述分享菜单栏选择操作,以确认目标分享应用。Step 202, receiving a selection operation in the sharing menu bar to confirm the target sharing application.

本发明实施例中,根据步骤202的描述,当用户在点击分享操作后,弹出的子菜单中点击一应用的名称或者图标,以确定一目标分享应用。In the embodiment of the present invention, according to the description of step 202, after the user clicks the sharing operation, clicks on the name or icon of an application in the pop-up submenu to determine a target sharing application.

在实际应用中,还可以通过记事本应用的分享功能批量分享多于两个的记事事件,这时也是通过点击记事本应用上的分享功能,在弹出的目标分享应用名称列表或者图标列表中选择一目标分享应用,本发明实施例对此不加以限制。In practical applications, you can also share more than two note events in batches through the sharing function of the Notepad application. At this time, you can also click the share function on the Notepad application and select from the pop-up target sharing application name list or icon list A target sharing application, which is not limited in this embodiment of the present invention.

当然,在确定目标分享应用的时候,获取所有在当前移动终端上安装应用所提供的分享接口,可以进一步的获取每个应用接收待分享文件的格式大小,也即分享接口对于待接收文件的限制。Of course, when determining the target sharing application, obtain all the sharing interfaces provided by the applications installed on the current mobile terminal, and further obtain the format and size of the files to be shared received by each application, that is, the limit of the sharing interface on the files to be received .

步骤203、获取所述记事对象中的记事内容的文件格式和内容数量。Step 203, acquiring the file format and content quantity of the memo content in the memo object.

本发明实施例中,当确定一记事事件的目标分享应用后,系统还要进一步的获取当前待分享的记事事件中的记事内容的属性,即记事内容的文件格式和内容大小,例如,如果记事内容为纯文本记事,大小为102Kb,如果记事内容为文字和图片混合形式,则记事内容的大小为3Mb,获取记事内容的属性后,便于与对应的目标分享应用的分享接口进行匹配,确定最优匹配方式进行分享。In the embodiment of the present invention, after determining the target sharing application of a memo event, the system will further acquire the attributes of the memo content in the memo event to be shared, that is, the file format and content size of the memo content, for example, if the memo The content is a plain text note with a size of 102Kb. If the note content is a mixture of text and pictures, the size of the note content is 3Mb. After obtaining the attributes of the note content, it is convenient to match with the sharing interface of the corresponding target sharing application to determine the most The optimal matching method is used for sharing.

步骤204、将所述文件格式和内容数量与预置的对应该目标分享应用的选择规则匹配,从所述目标分享应用的接口中选择最匹配的分享接口。Step 204: Match the file format and content quantity with the preset selection rules corresponding to the target sharing application, and select the most matching sharing interface from the interfaces of the target sharing application.

本发明实施例中,根据步骤203的描述,当获取待分享记事内容的文件格式和内容数量后,将获取的信息与目标分享应用的选择规则进行匹配,例如,目标分享应用为社交应用A,提供的分享接口有两个,一个是图片分享接口,限制的图片格式大小不能超过5Mb,另一个分享接口是网页分享接口,而当前的文件内容为纯文本格式,所以为了匹配当前目标分享应用提供的分享接口,要将当前的文件内容转换为图片格式,再进行分享,并且转换后的图片大小不能超过5Mb。In the embodiment of the present invention, according to the description of step 203, after obtaining the file format and content quantity of the note content to be shared, match the obtained information with the selection rules of the target sharing application, for example, the target sharing application is a social application A, There are two sharing interfaces provided, one is a picture sharing interface, and the size of the limited image format cannot exceed 5Mb, and the other sharing interface is a web page sharing interface, and the current file content is in plain text format, so in order to match the current target sharing application provide The sharing interface needs to convert the current file content into an image format before sharing, and the size of the converted image cannot exceed 5Mb.

步骤204具体包括:子步骤2041-子步骤2045;Step 204 specifically includes: sub-step 2041-sub-step 2045;

子步骤2041、若所述记事内容的文件格式为文本格式、所述内容数量为字符个数,则判断目标分享应用的文本分享接口的字符个数限制是否大于所述字符个数。Sub-step 2041, if the file format of the note content is in text format and the content quantity is the number of characters, then determine whether the character limit of the text sharing interface of the target sharing application is greater than the number of characters.

本发明实施例中,首先读取文件内容的文件格式、以及对应的文件的大小,其中可以通过计算文件内容的字节数获取文件内容的大小,其次根据已确定的目标分享应用提供的分享接口判断该文件内容是否符合分享接口限定的条件,如果一目标分享应用提供的文字分享接口只允许不超过18kb的文字内容进行分享,并且当前分享内容的大小超过了18kb,则就要选择该目标分享应用的另一分享接口,或者将当前的分享内容进行格式转换,以匹配该目标分享应用提供的分享接口。In the embodiment of the present invention, first read the file format of the file content and the size of the corresponding file, wherein the size of the file content can be obtained by calculating the number of bytes of the file content, and secondly according to the sharing interface provided by the determined target sharing application Determine whether the content of the file meets the conditions limited by the sharing interface. If the text sharing interface provided by a target sharing application only allows text content of no more than 18kb to be shared, and the size of the current shared content exceeds 18kb, then you must choose this target to share Another sharing interface of the application, or convert the format of the current shared content to match the sharing interface provided by the target sharing application.

子步骤2042、如果大于,则选择所述文本分享接口。Sub-step 2042, if greater than, select the text sharing interface.

本发明实施例中,根据步骤2041的描述,如果当前分享内容的格式符合目标分享应用提供的接口限定的格式,并且目标分享应用提供的接口限定的大小大于当前待分享文件内容的大小,则选择该匹配的文本分享接口。In the embodiment of the present invention, according to the description of step 2041, if the format of the current shared content conforms to the format defined by the interface provided by the target sharing application, and the size defined by the interface provided by the target sharing application is greater than the size of the current file content to be shared, select The matching text sharing interface.

子步骤2043、如果不大于,则选择图片分享接口。Sub-step 2043, if not greater than, select the picture sharing interface.

本发明实施例中,根据步骤2041的描述,如果当前分享内容的格式符合目标分享应用提供的接口限定的格式,但是目标分享应用提供的接口限定的大小小于当前待分享文件内容的大小,那么则选择目标分享应用提供的另一个图片分享接口,并且将当前的文件内容转换为图片格式进行分享,其中,将文本转换为图片可以通过截屏实现,也可以调用当前移动终端上安装的文件格式转换应用实现,本发明实施例对此不加以限制。In the embodiment of the present invention, according to the description of step 2041, if the format of the current shared content conforms to the format defined by the interface provided by the target sharing application, but the size defined by the interface provided by the target sharing application is smaller than the size of the current file content to be shared, then Select another picture sharing interface provided by the target sharing application, and convert the current file content into a picture format for sharing. Among them, converting text into pictures can be realized by taking a screenshot, or calling the file format conversion application installed on the current mobile terminal implementation, which is not limited by the embodiments of the present invention.

子步骤2044、当所述记事内容的文件格式包括文本格式和图片格式,则选择图片分享接口。Sub-step 2044, when the file format of the note content includes text format and picture format, then select the picture sharing interface.

本发明实施例中,在编辑记事本内容时,常见的形式是文本记事和图片插入混合编辑,在这种情况下,若选择的目标分享应用提供的接口时文本分享接口和图片分享接口,那么就将混合编辑的记事本内容转换为图片格式,并选择图片分享接口进行分享,当然,如果在实际应用中,文本转换为图片格式后的大小不符合图片分享接口的要求,还可以通过调整图片的像素等属性调整图片的大小,本发明实施例对此不加以限制。In the embodiment of the present invention, when editing the content of the notepad, the common form is the mixed editing of text note and picture insertion. In this case, if the interface provided by the selected target sharing application is a text sharing interface and a picture sharing interface, then Just convert the content of the mixed edited notepad into a picture format, and choose the picture sharing interface to share. Of course, if in actual applications, the size of the text converted into a picture format does not meet the requirements of the picture sharing interface, you can also adjust the picture The size of the picture is adjusted according to attributes such as pixels, which is not limited in this embodiment of the present invention.

子步骤2045、或者当所述记事内容的文件格式包括图片格式、所述内容数量对应的图片个数大于图片分享接口的规定,则选择图片分享接口。Sub-step 2045, or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the picture sharing interface, select the picture sharing interface.

本发明实施例中,在编辑记事本内容时,使用手写输入的方式输入字符,那么存储在记事本该记事事件的内容会全部为图片格式,此时要判断用户手写输入的字符个数,即可得知当前文件内容中的图片数目,如果图片数目大于图片分享接口的规定,则选择图片分享接口对文件内容进行分享,但是在分享前可以多个字符图片合并为一张包括所有单字图片的完整图片,合并时可以利用截图的方式,也可以在后台调用其他图片处理格式进行合并,当然,还可以将文件内容拆分成两部分进行分享,以确保每部分的分享内容的图片数目符合图片分享接口的限制,本发明实施例对此不加以限制。In the embodiment of the present invention, when editing the content of the notepad, use the handwriting input mode to input characters, then the content of the note event stored in the notepad will all be in the image format, and at this time, it is necessary to judge the number of characters input by the user's handwriting, that is You can know the number of pictures in the current file content. If the number of pictures is greater than the stipulations of the picture sharing interface, then choose the picture sharing interface to share the file content, but before sharing, multiple character pictures can be combined into one including all single character pictures. Complete pictures, you can use screenshots when merging, or call other image processing formats in the background to merge. Of course, you can also split the file content into two parts for sharing, so as to ensure that the number of pictures in each part of the shared content conforms to the picture The limitation of the sharing interface is not limited in this embodiment of the present invention.

优选的,在本发明的另一实施例中,步骤204具体包括:子步骤2046;Preferably, in another embodiment of the present invention, step 204 specifically includes: sub-step 2046;

子步骤2046、当所述记事内容的文件格式包括文本格式和图片格式、所述内容数量为对应文本格式的字符个数和对应图片格式的图片个数时,且所述字符个数不大于目标分享应用的文本分享接口规定的字数,则选择文本分享接口和图片分享接口。Sub-step 2046, when the file format of the note content includes text format and picture format, and the number of content is the number of characters corresponding to the text format and the number of pictures corresponding to the picture format, and the number of characters is not greater than the target To share the number of words specified by the text sharing interface of the application, select the text sharing interface and the picture sharing interface.

本发明实施例中,当选择一目标分享应用后,进一步的获取记事内容的文件格式,其中文件格式包括文本格式和图片格式,文件内容数量为对应文本格式的字符个数和对应图片格式的图片个数,此时要判断文件格式和文件内容是否符合目标分享应用提供的文件分享接口的限制条件,其中,如果目标分享应用提供的文件分享接口的限制条件对分享文件规定了具体的字数,而实际的待分享文件内容的字符超出了该字数限制的范围,那么则选择图片分享接口对该文件内容进行分享。In the embodiment of the present invention, when a target sharing application is selected, the file format of the note content is further obtained, wherein the file format includes a text format and a picture format, and the number of file contents is the number of characters corresponding to the text format and the picture corresponding to the picture format At this time, it is necessary to judge whether the file format and content of the file meet the restriction conditions of the file sharing interface provided by the target sharing application. Among them, if the restriction condition of the file sharing interface provided by the target sharing application specifies a specific word count for the shared file, and If the characters of the actual content of the file to be shared exceed the character limit, then choose the picture sharing interface to share the content of the file.

当然,在分享前要将当前的文件内容转换为图片格式进行分享,其中,将文本转换为图片可以通过截屏实现,也可以调用当前移动终端上安装的文件格式转换应用实现,本发明实施例对此不加以限制。Of course, before sharing, the current file content must be converted into a picture format for sharing. Among them, the conversion of text into pictures can be realized by taking a screenshot, or by calling the file format conversion application installed on the current mobile terminal. This is not limited.

步骤205、提示用户是否以对应所述分享接口的文件格式对所述记事内容进行分享。Step 205, prompting the user whether to share the memo content in the file format corresponding to the sharing interface.

本发明实施例中,通常情况下,当用户完成一记事事件的编辑操作,并进行保存时,会接收到记事本应用对用户的提示操作,提示操作中会包括提示用户是否将当前记事事件进行分享的步骤,其中,当用户确认对当前记事事件进行分享后,则进入步骤203,如果用户并不确定该分享操作,则只将当前记事事件进行保存。In the embodiment of the present invention, under normal circumstances, when the user completes the editing operation of a note event and saves it, he will receive a prompt operation from the notepad application to the user, and the prompt operation will include prompting the user whether to edit the current note event The step of sharing, wherein, after the user confirms to share the current memo event, it will enter step 203, if the user is not sure about the sharing operation, only the current memo event will be saved.

当然,在实际应用中,该提示功能针对于经常使用分享功能的用户较为实用,对于其他用户,为了提高用户使用记事本的效率,可以在记事本应用的设置中取消该提示功能,本发明实施例对此不加以限制。Of course, in practical applications, the prompt function is more practical for users who often use the sharing function. For other users, in order to improve the efficiency of using the notepad, the prompt function can be canceled in the settings of the notepad application. The implementation of the present invention The example does not limit this.

优选的,在本发明的另一实施例中,还包括步骤206-步骤208;Preferably, in another embodiment of the present invention, step 206-step 208 are also included;

步骤206、从所述记事内容中提取文本内容,并调用文本分享接口分享至目标分享应用。Step 206, extract text content from the note content, and call a text sharing interface to share to a target sharing application.

本发明实施例中,当选择一目标分享应用后,进一步的获取记事内容的文件格式,若记事内容的文件格式为文本格式,那么就提取记事内容中的文本内容,并且选择文本分享接口对该文件内容进行分享。In the embodiment of the present invention, when a target sharing application is selected, the file format of the note content is further obtained, if the file format of the note content is a text format, then the text content in the note content is extracted, and the text sharing interface is selected for the file content to share.

步骤207、从所述记事内容中提取图片,并分别针对每张图片调用图片分享接口分享至目标分享应用。Step 207, extract pictures from the note content, and call a picture sharing interface for each picture to share to a target sharing application.

本发明实施例中,当选择一目标分享应用后,进一步的获取记事内容的文件格式,若记事内容的文件格式为图片格式,并且为多张图片,则就提取记事内容中的图片内容,并且选择拖分享接口对图片内容逐一进行分享。In the embodiment of the present invention, when a target sharing application is selected, the file format of the note content is further obtained, if the file format of the note content is a picture format, and there are multiple pictures, then the picture content in the note content is extracted, and Select the drag and share interface to share the picture content one by one.

步骤208、当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用。具体包括:子步骤2081-子步骤2083;Step 208: When the file format and content quantity do not conform to the selected sharing interface, convert the memorandum content into content with attributes specified by the sharing interface, and call the sharing interface to share to the target sharing application. Specifically include: sub-step 2081-sub-step 2083;

本发明实施例中,在编辑记事本内容时,如果编辑内容为文本记事和图片插入混合编辑,在这种情况下,若选择的目标分享应用提供的接口时文本分享接口和图片分享接口,那么就获取混合编辑的记事本内容中文本内容的字符个数,以及图片的个数,并分别判断其是否分别符合文本分享接口的限制以及图片分享接口的限制,如果文本内容的字符个数,以及图片的个数都不超过文本分享接口的限制以及图片分享接口的限制,那么就分别调用文本分享接口和图片分享接口对上述文本内容和图片内容进行分享。In the embodiment of the present invention, when editing the content of the notepad, if the editing content is a mixed edit of text memo and picture insertion, in this case, if the interface provided by the selected target sharing application is a text sharing interface and a picture sharing interface, then Get the number of characters in the text content and the number of pictures in the mixed-edited notepad content, and judge whether they meet the restrictions of the text sharing interface and the picture sharing interface respectively. If the number of characters in the text content, and The number of pictures does not exceed the limit of the text sharing interface and the limit of the picture sharing interface, then call the text sharing interface and the picture sharing interface to share the above text content and picture content.

当然,在实际应用中,分享接口的限制条件不仅仅是对分享文件的内容和分享文件文本字数、图片个数的限制,可以针对分享接口的限制条件,调整或转换待分享文件的内容,选择匹配的分享接口进行分享。Of course, in practical applications, the restrictions on the sharing interface are not limited to the content of the shared file, the number of words in the text of the shared file, and the number of pictures. You can adjust or convert the content of the file to be shared according to the restrictions on the sharing interface. Matching sharing interface to share.

子步骤2081、当所述记事内容的文件格式为文本格式、所述内容数量为字符个数时,且选择了图片分享接口时,则将整个记事内容转换为一张图片;Sub-step 2081, when the file format of the note content is text format, the number of content is the number of characters, and the picture sharing interface is selected, convert the entire note content into a picture;

本发明实施例中,如果编辑内容为文本记事,若选择的目标分享应用提供的接口只有图片分享接口,在这种情况下,首先将当前的文件内容转换为图片格式,其次调用图片分享接口对转换后的图片文件进行分享,其中,将文本转换为图片可以通过截屏实现,也可以调用当前移动终端上安装的文件格式转换应用实现,本发明实施例对此不加以限制。In the embodiment of the present invention, if the editing content is a text note, if the interface provided by the selected target sharing application is only a picture sharing interface, in this case, first convert the current file content into a picture format, and then call the picture sharing interface to The converted picture file is shared. The conversion of the text into a picture can be realized by taking a screenshot, or by calling a file format conversion application installed on the current mobile terminal, which is not limited in the embodiment of the present invention.

子步骤2082、调用所述图片分享接口将所述图片分享至目标分享应用。Sub-step 2082, calling the picture sharing interface to share the picture to the target sharing application.

本发明实施例中,根据步骤2082的描述,将当前的文件内容转换为图片格式后,判断转换后的图片文件是否符合当前图片分享接口的限制条件,如果符合,则调用图片分享接口对转换后的图片文件进行分享,如果不符合,则进一步的根据限制条件在转换过程中或者转换后,对该图片文件做进一步的调整,本发明实施例对此不加以限制。In the embodiment of the present invention, according to the description of step 2082, after the current file content is converted into a picture format, it is judged whether the converted picture file meets the restriction conditions of the current picture sharing interface. If the image file does not meet the requirements, the image file will be further adjusted during or after the conversion according to the restriction, which is not limited in the embodiment of the present invention.

子步骤2083、当所述记事内容的文件格式包括文本格式和图片格式,或者当所述记事内容的文件格式包括图片格式、且所述内容数量对应的图片个数大于图片分享接口的规定,且选择了图片分享接口时,则将整个记事内容转换为一张图片;Sub-step 2083, when the file format of the note content includes a text format and a picture format, or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the stipulation of the picture sharing interface, and When the picture sharing interface is selected, the entire note content will be converted into a picture;

本发明实施例中,在编辑记事本内容时,如果编辑内容为文本记事和图片插入混合编辑,此时要判断当前文件内容中的图片数目,如果图片数目大于图片分享接口的规定,则选择图片分享接口对文件内容进行分享时,将多个字符图片合并为一张包括所有文字内容和单个图片的完整图片,合并时可以利用截图的方式,也可以在后台调用其他图片处理格式进行合并,当然,还可以将文件内容拆分成两部分进行分享,以确保每部分的分享内容的图片数目符合图片分享接口的限制,本发明实施例对此不加以限制。In the embodiment of the present invention, when editing the content of the notepad, if the editing content is a mixed edit of text memo and picture insertion, at this time, it is necessary to judge the number of pictures in the current file content, and if the number of pictures is greater than the stipulation of the picture sharing interface, then select the picture When the sharing interface shares the file content, multiple character pictures are merged into a complete picture including all text content and a single picture. When merging, you can use screenshots, or call other picture processing formats in the background to merge, of course , the content of the file can also be divided into two parts for sharing, so as to ensure that the number of pictures in each part of the shared content complies with the limit of the picture sharing interface, which is not limited in the embodiment of the present invention.

子步骤2084、调用所述图片分享接口将所述图片分享至目标分享应用。Sub-step 2084, calling the picture sharing interface to share the picture to the target sharing application.

本发明实施例中,根据步骤2083的描述,在将要分享文件的内容转换为符合图片分享接口的限制条件的完整图片后,则调用该图片分享接口将转换后的完整图片进行分享。In the embodiment of the present invention, according to the description of step 2083, after the content of the file to be shared is converted into a complete picture meeting the constraints of the picture sharing interface, the picture sharing interface is called to share the converted complete picture.

在本发明实施例中,当用户使用记事本应用编辑完成一记事事件后,若选择对该记事事件进行分享,确定目标分享应用后,系统会根据目标分享应用对应的对于分享接口所规定的限制条件,将待分享文件不论是文本格式、图片格式还是混合编辑的内容,都可以转换为匹配分享接口提出的限制条件,并调用该分享接口进行分享,解决了用户要通过复杂的步骤分享记事内容的问题,实现了用户只用选择分享内容和分享目标应用就能自动对分享内容匹配一分享接口,将分享内容进行分享的有益效果。In the embodiment of the present invention, after the user uses the Notepad application to edit a memo event, if he chooses to share the memo event, after determining the target sharing application, the system will follow the restrictions specified for the sharing interface corresponding to the target sharing application. Conditions, whether the file to be shared is in text format, image format or mixed edited content, can be converted to match the restriction conditions proposed by the sharing interface, and the sharing interface is called to share, which solves the problem that users need to share note content through complicated steps The problem is realized, and the user only needs to select the sharing content and the sharing target application to automatically match the sharing content with a sharing interface, and realize the beneficial effect of sharing the sharing content.

对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

参照图3,示出了根据本发明的一种优化分享方式的装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 3 , it shows a structural block diagram of an embodiment of a device for optimizing a sharing method according to the present invention, which may specifically include the following modules:

目标分享应用确认模块301,用于确认对记事本一条记事对象的目标分享应用;具体包括:分享菜单栏触发子模块3011,用于当接收对记事本的一条记事对象的分享触发操作后,触发分享菜单栏;The target sharing application confirmation module 301 is used to confirm the target sharing application for a memo object in the notepad; specifically includes: the sharing menu bar trigger sub-module 3011 is used for triggering after receiving a sharing trigger operation for a memo object in the memo pad Share menu bar;

分享接口选择模块302,用于根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口;具体包括:记事内容属性获取子模块3021,用于获取所述记事对象中的记事内容的文件格式和内容数量;分享接口匹配子模块3022,用于将所述文件格式和内容数量与预置的对应该分享目标应用的选择规则匹配,从所述分享目标应用的接口中选择最匹配的分享接口;具体包括:判断单元,用于若所述记事内容的文件格式为文本格式、所述内容数量为字符个数,则判断目标分享应用的文本分享接口的字符个数限制是否大于所述字符个数;文本分享接口选择单元,用于如果大于,则选择所述文本分享接口;图片分享接口选择单元,用于如果不大于,则选择图片分享接口。The sharing interface selection module 302 is used to select the most matching sharing interface from each sharing interface of the sharing target application according to the attribute of the note content in the note object; specifically includes: the note content attribute acquisition submodule 3021, using To obtain the file format and content quantity of the note content in the note object; the sharing interface matching submodule 3022 is used to match the file format and content quantity with the preset selection rules corresponding to the sharing target application, from the Select the most matching sharing interface among the interfaces of the sharing target application; specifically include: a judging unit, used to judge the text of the target sharing application if the file format of the content of the note is a text format and the quantity of the content is the number of characters Whether the character number limit of the sharing interface is greater than the number of characters; the text sharing interface selection unit is used to select the text sharing interface if it is larger; the picture sharing interface selection unit is used to select the picture sharing if it is not larger interface.

优选的,在本发明另一实施例中,分享接口匹配子模块3022,包括:文本分享接口和图片分享接口选择单元,用于格式判断单元,用于当所述记事内容的文件格式包括文本格式和图片格式,则选择图片分享接口;确定图片分享接口单元,用于或者当所述记事内容的文件格式包括图片格式、所述内容数量对应的图片个数大于图片分享接口的规定,则选择图片分享接口。Preferably, in another embodiment of the present invention, the sharing interface matching submodule 3022 includes: a text sharing interface and a picture sharing interface selection unit, used for a format judging unit, used when the file format of the note content includes a text format and picture format, then select the picture sharing interface; determine the picture sharing interface unit, for or when the file format of the note content includes the picture format, and the number of pictures corresponding to the content quantity is greater than the stipulations of the picture sharing interface, then select the picture share interface.

优选的,在本发明另一实施例中,分享接口匹配子模块3022,包括:文本分享接口和图片分享接口选择单元,用于当所述记事内容的文件格式包括文本格式和图片格式、所述内容数量为对应文本格式的字符个数和对应图片格式的图片个数时,且所述字符个数不大于目标分享应用的文本分享接口规定的字数,则选择文本分享接口和图片分享接口。Preferably, in another embodiment of the present invention, the sharing interface matching submodule 3022 includes: a text sharing interface and a picture sharing interface selection unit, used for when the file format of the note content includes a text format and a picture format, the When the number of content is the number of characters corresponding to the text format and the number of pictures corresponding to the picture format, and the number of characters is not greater than the number of words specified by the text sharing interface of the target sharing application, then select the text sharing interface and the picture sharing interface.

分享模块303,用于将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用。具体包括:符合调用子模块3031,用于当所述文件格式和内容数量符合选择的分享接口规定的属性,则直接调用所述分享接口分享至目标分享应用;不符合调用子模块3032,用于当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用。具体包括:图片转换单元,用于当所述记事内容的文件格式为文本格式、所述内容数量为字符个数时,且选择了图片分享接口时,则将整个记事内容转换为一张图片;分享单元,用于调用所述图片分享接口将所述图片分享至目标分享应用。The sharing module 303 is configured to adapt the note content to the attribute specified by the sharing interface, and call the sharing interface to share to a target sharing application. Concretely include: conforming calling sub-module 3031, used to directly call the sharing interface to share to the target sharing application when the file format and content quantity conform to the attributes specified by the selected sharing interface; non-compliant calling sub-module 3032, used When the format of the file and the amount of content do not conform to the selected sharing interface, the note content is converted into the content of the attribute specified by the sharing interface, and then the sharing interface is called to share to the target sharing application. It specifically includes: a picture conversion unit, which is used to convert the entire note content into a picture when the file format of the note content is a text format, the number of the content is the number of characters, and the picture sharing interface is selected; A sharing unit, configured to call the picture sharing interface to share the picture to a target sharing application.

优选的,在本发明另一实施例中,不符合调用子模块3032,包括:Preferably, in another embodiment of the present invention, submodule 3032 does not conform to calling, including:

格式转换单元,用于当所述记事内容的文件格式包括文本格式和图片格式,或者当所述记事内容的文件格式包括图片格式、且所述内容数量对应的图片个数大于图片分享接口的规定,且选择了图片分享接口时,则将整个记事内容转换为一张图片;图片分享单元,用于调用所述图片分享接口将所述图片分享至目标分享应用。A format conversion unit, used when the file format of the note content includes a text format and a picture format, or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the stipulation of the picture sharing interface , and when the picture sharing interface is selected, the entire note content is converted into a picture; the picture sharing unit is used to call the picture sharing interface to share the picture to the target sharing application.

优选的,在本发明另一实施例中,分享模块303,包括:Preferably, in another embodiment of the present invention, the sharing module 303 includes:

分享子模块,用于从所述记事内容中提取文本内容,并调用文本分享接口分享至目标分享应用;The sharing sub-module is used to extract text content from the note content, and call the text sharing interface to share to the target sharing application;

图片分享接口调用子模块,用于从所述记事内容中提取图片,并分别针对每张图片调用图片分享接口分享至目标分享应用。The picture sharing interface calling sub-module is used for extracting pictures from the note content, and calling the picture sharing interface for each picture to share to the target sharing application.

提示模块304,用于提示用户是否以对应所述分享接口的文件格式对所述记事内容进行分享。The prompt module 304 is configured to prompt the user whether to share the memo content in the file format corresponding to the sharing interface.

在本发明实施例中,当用户使用记事本应用编辑完成一记事事件后,若选择对该记事事件进行分享,确定目标分享应用后,系统会根据目标分享应用对应的对于分享接口所规定的限制条件,将待分享文件不论是文本格式、图片格式还是混合编辑的内容,都可以转换为匹配分享接口提出的限制条件,并调用该分享接口进行分享,解决了用户要通过复杂的步骤分享记事内容的问题,实现了用户只用选择分享内容和分享目标应用就能自动对分享内容匹配一分享接口,将分享内容进行分享的有益效果。In the embodiment of the present invention, after the user uses the Notepad application to edit a memo event, if he chooses to share the memo event, after determining the target sharing application, the system will follow the restrictions specified for the sharing interface corresponding to the target sharing application. Conditions, whether the file to be shared is in text format, image format or mixed edited content, can be converted to match the restriction conditions proposed by the sharing interface, and the sharing interface is called to share, which solves the problem that users need to share note content through complicated steps The problem is realized, and the user only needs to select the sharing content and the sharing target application to automatically match the sharing content with a sharing interface, and realize the beneficial effect of sharing the sharing content.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

本发明实施例还提供了一种移动终端,如图4所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Pointof Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:The embodiment of the present invention also provides a mobile terminal, as shown in FIG. 4 , for the convenience of description, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. . The terminal can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the terminal as a mobile phone as an example:

图4示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图4,手机包括:射频(Radio Frequency,RF)电路410、存储器420、输入单元430、显示单元440、传感器450、音频电路460、无线保真(wireless fidelity,WiFi)模块470、处理器480、以及电源490等部件。本领域技术人员可以理解,图4中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 4 shows a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present invention. Referring to FIG. 4 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (wireless fidelity, WiFi) module 470, and a processor 480 , and power supply 490 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 4 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图4对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 4:

RF电路410可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器480处理;另外,将设计上行的数据发送给基站。通常,RF电路410包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路410还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 410 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information from the base station, it is processed by the processor 480; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 410 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 410 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.

存储器420可用于存储软件程序以及模块,处理器480通过运行存储在存储器420的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 420 can be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 420 . The memory 420 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元430可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元430可包括触控面板431以及其他输入设备432。触控面板431,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板431上或在触控面板431附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器480,并能接收处理器480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板431。除了触控面板431,输入单元430还可以包括其他输入设备432。具体地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 430 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432 . The touch panel 431, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 431 or near the touch panel 431). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 431 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 480, and can receive and execute commands sent by the processor 480. In addition, the touch panel 431 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 431 , the input unit 430 may also include other input devices 432 . Specifically, other input devices 432 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元440可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元440可包括显示面板441,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板441。进一步的,触控面板431可覆盖显示面板441,当触控面板431检测到在其上或附近的触摸操作后,传送给处理器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图4中,触控面板431与显示面板441是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板431与显示面板441集成而实现手机的输入和输出功能。The display unit 440 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 440 may include a display panel 441. Optionally, the display panel 441 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode (Organic Light-Emitting Diode, OLED). Further, the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation on or near it, it transmits to the processor 480 to determine the type of the touch event, and then the processor 480 determines the type of the touch event according to the The type provides a corresponding visual output on the display panel 441 . Although in FIG. 4 , the touch panel 431 and the display panel 441 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 431 and the display panel 441 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在手机移动到耳边时,关闭显示面板441和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 450, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 441 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.

音频电路460、扬声器461,传声器462可提供用户与手机之间的音频接口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处理器480处理后,经RF电路410以发送给比如另一手机,或者将音频数据输出至存储器420以便进一步处理。The audio circuit 460, the speaker 461, and the microphone 462 can provide an audio interface between the user and the mobile phone. The audio circuit 460 can transmit the electrical signal converted from the received audio data to the loudspeaker 461, and the loudspeaker 461 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 480, and then sent to another mobile phone through the RF circuit 410, or the audio data is output to the memory 420 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块470,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 470, which provides users with wireless broadband Internet access. Although Fig. 4 shows the WiFi module 470, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.

处理器480是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器480可包括一个或多个处理单元;优选的,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。The processor 480 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 420, and calling data stored in the memory 420, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 480 may include one or more processing units; preferably, the processor 480 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 480 .

手机还包括给各个部件供电的电源490(比如电池),优选的,电源可以通过电源管理系统与处理器480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 490 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 480 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.

在本发明实施例中,该终端所包括的处理器480还具有以下功能:确认对记事本一条记事对象的目标分享应用;根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口;将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用。In the embodiment of the present invention, the processor 480 included in the terminal also has the following functions: confirm the target sharing application for a memo object in the notepad; Select the most matching sharing interface among the sharing interfaces; adapt the content of the note to the attributes specified by the sharing interface, and call the sharing interface to share to the target sharing application.

可选地,处理器480还具有以下功能:获取所述记事对象中的记事内容的文件格式和内容数量;将所述文件格式和内容数量与预置的对应所述分享目标应用的分享接口选择规则匹配,从所述分享目标应用的接口中选择最匹配的分享接口。Optionally, the processor 480 also has the following functions: obtain the file format and content quantity of the note content in the note object; select the file format and content quantity with the preset sharing interface corresponding to the sharing target application Rule matching, selecting the most matching sharing interface from the interfaces of the sharing target application.

可选地,处理器480还具有以下功能:若所述记事内容的文件格式为文本格式、所述内容数量为字符个数,则判断目标分享应用的文本分享接口的字符个数限制是否大于所述字符个数;如果大于,则选择所述文本分享接口;如果不大于,则选择图片分享接口。Optionally, the processor 480 also has the following function: if the file format of the note content is a text format and the quantity of the content is the number of characters, then determine whether the character limit of the text sharing interface of the target sharing application is greater than the specified number of characters. the number of characters; if it is larger, then select the text sharing interface; if it is not larger, then select the picture sharing interface.

可选地,处理器480还具有以下功能:当所述记事内容的文件格式包括文本格式和图片格式,则选择图片分享接口;或者当所述记事内容的文件格式包括图片格式、所述内容数量对应的图片个数大于图片分享接口的规定,则选择图片分享接口。Optionally, the processor 480 also has the following functions: when the file format of the note content includes a text format and a picture format, then select a picture sharing interface; or when the file format of the note content includes a picture format, the content quantity If the number of corresponding pictures is greater than the stipulation of the picture sharing interface, the picture sharing interface is selected.

可选地,处理器480还具有以下功能:当所述文件格式和内容数量符合选择的分享接口规定的属性,则直接调用所述分享接口分享至目标分享应用;当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用。Optionally, the processor 480 also has the following functions: when the file format and the amount of content conform to the attributes specified by the selected sharing interface, directly call the sharing interface to share to the target sharing application; when the file format and the amount of content If the selected sharing interface is not met, the content of the note is converted into the content of the attribute specified by the sharing interface, and then the sharing interface is called to share to the target sharing application.

可选地,处理器480还具有以下功能:当所述记事内容的文件格式为文本格式、所述内容数量为字符个数时,且选择了图片分享接口时,则将整个记事内容转换为一张图片;调用所述图片分享接口将所述图片分享至目标分享应用。Optionally, the processor 480 also has the following function: when the file format of the note content is a text format, the number of the content is the number of characters, and the picture sharing interface is selected, the entire note content is converted into a picture; call the picture sharing interface to share the picture to the target sharing application.

可选地,处理器480还具有以下功能:当所述记事内容的文件格式包括文本格式和图片格式、所述内容数量为对应文本格式的字符个数和对应图片格式的图片个数时,且所述字符个数不大于目标分享应用的文本分享接口规定的字数,则选择文本分享接口和图片分享接口。Optionally, the processor 480 also has the following function: when the file format of the note content includes a text format and a picture format, and the quantity of the content is the number of characters corresponding to the text format and the number of pictures corresponding to the picture format, and If the number of characters is not greater than the number of characters specified by the text sharing interface of the target sharing application, then the text sharing interface and the picture sharing interface are selected.

可选地,处理器480还具有以下功能:从所述记事内容中提取文本内容,并调用文本分享接口分享至目标分享应用;从所述记事内容中提取图片,并分别针对每张图片调用图片分享接口分享至目标分享应用。Optionally, the processor 480 also has the following functions: extract text content from the note content, and call the text sharing interface to share to the target sharing application; extract pictures from the note content, and call the picture for each picture respectively Sharing interface to share to the target sharing application.

可选地,处理器480还具有以下功能:提示用户是否以对应所述分享接口的文件格式对所述记事内容进行分享。Optionally, the processor 480 also has the following function: prompting the user whether to share the note content in a file format corresponding to the sharing interface.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage The medium can be read-only memory, magnetic or optical disk, etc.

以上对本发明所提供的一种优化分享方式的方法和装置及移动终端进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method and device for optimizing the sharing mode provided by the present invention and the mobile terminal have been introduced in detail above. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be specific implementation methods and application scopes. Changes, in summary, the contents of this specification should not be construed as limiting the present invention.

本发明公开了A1、一种优化分享方式的方法,包括:The invention discloses A1, a method for optimizing the sharing mode, including:

确认对记事本一条记事对象的目标分享应用;Confirm the target sharing application of a note object in Notepad;

根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口;Select the most matching sharing interface from the sharing interfaces of the sharing target application according to the attribute of the note content in the note object;

将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用。The content of the note is adapted to the attributes specified by the sharing interface, and the sharing interface is called to share to the target sharing application.

A2、如A1所述的方法,根据所述记事对象中的记事内容的属性,从所述分享目标分享应用的各分享接口中选择最匹配的分享接口的步骤,包括:A2, the method as described in A1, according to the attribute of the note content in the note object, the step of selecting the most matching sharing interface from the sharing interfaces of the sharing target sharing application, including:

获取所述记事对象中的记事内容的文件格式和内容数量;Obtain the file format and content quantity of the memo content in the memo object;

将所述文件格式和内容数量与预置的对应所述分享目标分享应用的分享接口选择规则匹配,从所述分享目标分享应用的接口中选择最匹配的分享接口。Match the file format and content quantity with the preset sharing interface selection rules corresponding to the sharing target sharing application, and select the most matching sharing interface from the interfaces of the sharing target sharing application.

A3、如A2所述的方法,所述根据预置的对应所述分享目标分享应用的分享接口选择规则,选择一分享接口的步骤,包括:A3. The method described in A2, the step of selecting a sharing interface according to the preset sharing interface selection rules corresponding to the sharing target sharing application includes:

若所述记事内容的文件格式为文本格式、所述内容数量为字符个数,则判断目标分享应用的文本分享接口的字符个数限制是否大于所述字符个数;If the file format of the memorandum content is a text format and the quantity of the content is the number of characters, it is judged whether the character number limit of the text sharing interface of the target sharing application is greater than the number of characters;

如果大于,则选择所述文本分享接口;If greater than, then select the text sharing interface;

如果不大于,则选择图片分享接口。If not greater than, select the picture sharing interface.

A4、如A2所述的方法,所述根据预置的对应该分享目标分享应用的分享接口选择规则,选择一分享接口的步骤,包括:A4. The method described in A2, the step of selecting a sharing interface according to the preset sharing interface selection rules corresponding to the sharing target sharing application includes:

当所述记事内容的文件格式包括文本格式和图片格式,则选择图片分享接口;When the file format of the note content includes a text format and a picture format, then select the picture sharing interface;

或者当所述记事内容的文件格式包括图片格式、所述内容数量对应的图片个数大于图片分享接口的规定,则选择图片分享接口。Or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the picture sharing interface, then the picture sharing interface is selected.

A5、如A2-A4所述的方法,将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用的步骤,包括:A5. In the method described in A2-A4, the step of adapting the note content to the attributes specified in the sharing interface, calling the sharing interface and sharing it to the target sharing application, including:

当所述文件格式和内容数量符合选择的分享接口规定的属性,则直接调用所述分享接口分享至目标分享应用;When the file format and content quantity conform to the attributes specified by the selected sharing interface, directly call the sharing interface to share to the target sharing application;

当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用。When the format of the file and the amount of content do not conform to the selected sharing interface, the note content is converted into the content of the attribute specified by the sharing interface, and then the sharing interface is called to share to the target sharing application.

A6、如A5所述的方法,所述当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用的步骤,包括:A6. The method as described in A5, when the file format and content quantity do not conform to the selected sharing interface, the content of the note is converted into the content of the attribute specified by the sharing interface, and then the sharing interface is called Steps to share to the target sharing app, including:

当所述记事内容的文件格式为文本格式、所述内容数量为字符个数时,且选择了图片分享接口时,则将整个记事内容转换为一张图片;When the file format of the note content is text format, the number of the content is the number of characters, and the picture sharing interface is selected, the entire note content is converted into a picture;

调用所述图片分享接口将所述图片分享至目标分享应用。calling the picture sharing interface to share the picture to a target sharing application.

A7、如A5所述的方法,所述当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用的步骤,包括:A7. The method as described in A5, when the file format and content quantity do not conform to the selected sharing interface, the content of the note is converted into the content of the attribute specified by the sharing interface, and then the sharing interface is called Steps to share to the target sharing app, including:

当所述记事内容的文件格式包括文本格式和图片格式,或者当所述记事内容的文件格式包括图片格式、且所述内容数量对应的图片个数大于图片分享接口的规定,且选择了图片分享接口时,则将整个记事内容转换为一张图片;When the file format of the note content includes a text format and a picture format, or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the stipulation of the picture sharing interface, and the picture sharing is selected interface, convert the entire note content into a picture;

调用所述图片分享接口将所述图片分享至目标分享应用。calling the picture sharing interface to share the picture to a target sharing application.

A8、如A2所述的方法,所述根据所述记事对象中的记事内容的属性,从所述目标分享应用的各分享接口中选择最匹配的分享接口的步骤,包括:A8. The method as described in A2, the step of selecting the most matching sharing interface from the sharing interfaces of the target sharing application according to the attribute of the note content in the note object, including:

当所述记事内容的文件格式包括文本格式和图片格式、所述内容数量为对应文本格式的字符个数和对应图片格式的图片个数时,且所述字符个数不大于目标分享应用的文本分享接口规定的字数,则选择文本分享接口和图片分享接口。When the file format of the note content includes a text format and a picture format, and the number of the content is the number of characters corresponding to the text format and the number of pictures corresponding to the picture format, and the number of characters is not greater than the text of the target sharing application To share the number of words specified by the interface, select the text sharing interface and picture sharing interface.

A9、如A1所述的方法,,所述将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用的步骤,包括:A9. The method as described in A1, the step of adapting the content of the note to the attribute specified by the sharing interface, calling the sharing interface to share to the target sharing application, including:

从所述记事内容中提取文本内容,并调用文本分享接口分享至目标分享应用;从所述记事内容中提取图片,并分别针对每张图片调用图片分享接口分享至目标分享应用。Extract text content from the note content, and call a text sharing interface to share to a target sharing application; extract pictures from the note content, and call a picture sharing interface for each picture to share to a target sharing application.

A10、如A1所述的方法,在将所述记事内容以适配所述分享接口所规定的属性,分享至目标应用的步骤之前,还包括:A10. The method described in A1, before the step of sharing the memorandum content to the target application in accordance with the attributes specified by the sharing interface, further includes:

提示用户是否以对应所述分享接口的文件格式对所述记事内容进行分享。Prompting the user whether to share the note content in the file format corresponding to the sharing interface.

A11、如A1所述的方法,所述确认对记事本一条记事对象的目标分享应用的步骤,包括:A11, the method as described in A1, the step of confirming the target sharing application of a note object in the notepad, including:

当接收对记事本的一条记事对象的分享触发操作后,触发分享菜单栏;After receiving a share trigger operation on a note object in the notepad, the share menu bar is triggered;

接收在所述分享菜单栏选择操作,以确认目标分享应用。Receive a selection operation in the sharing menu bar to confirm the target sharing application.

本发明还公开了B12、一种优化分享方式的装置,包括:The invention also discloses B12, a device for optimizing the sharing method, including:

分享触发模块,用于当接收对记事本的一条记事对象的分享触发操作后,触发分享菜单栏;The sharing trigger module is used to trigger the sharing menu bar after receiving a sharing trigger operation on a memo object in the notepad;

确认分享目标应用模块,用于接收在所述分享菜单栏选择操作,以确认分享目标应用;A confirmation sharing target application module is used to receive a selection operation in the sharing menu bar to confirm the sharing target application;

分享接口选择模块,用于根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口;A sharing interface selection module, configured to select the most matching sharing interface from the sharing interfaces of the sharing target application according to the attributes of the note content in the note object;

分享模块,用于将所述记事内容以适配所述分享接口所规定的属性,分享至目标应用。The sharing module is used to share the content of the memo to the target application according to the attribute specified by the sharing interface.

B13、如B12所述的装置,所述分享接口选择模块,包括:B13. The device as described in B12, the sharing interface selection module includes:

记事内容属性获取子模块,用于获取所述记事对象中的记事内容的文件格式和内容数量;The note content attribute acquisition submodule is used to acquire the file format and content quantity of the note content in the note object;

分享接口匹配子模块,用于将所述文件格式和内容数量与预置的对应该分享目标应用的选择规则匹配,从所述分享目标应用的接口中选择最匹配的分享接口。The sharing interface matching sub-module is used to match the file format and content quantity with the preset selection rules corresponding to the sharing target application, and select the most matching sharing interface from the interfaces of the sharing target application.

B14、如B12所述的装置,所述分享接口匹配子模块,包括:B14, the device as described in B12, described sharing interface matching submodule, comprising:

判断单元,用于若所述记事内容的文件格式为文本格式、所述内容数量为字符个数,则判断目标应用的文本分享接口的字符个数限制是否大于所述字符个数;A judging unit, configured to judge whether the limit on the number of characters of the text sharing interface of the target application is greater than the number of characters if the file format of the note content is in text format and the number of the content is the number of characters;

文本分享接口选择单元,用于如果大于,则选择所述文本分享接口;A text sharing interface selection unit, used to select the text sharing interface if it is greater than ;

图片分享接口选择单元,用于如果不大于,则选择图片分享接口。The picture sharing interface selection unit is used to select the picture sharing interface if it is not larger than the picture sharing interface.

B15、如B13所述的装置,所述分享接口匹配子模块,包括:B15, the device as described in B13, described sharing interface matching submodule, comprising:

格式判断单元,用于当所述记事内容的文件格式包括文本格式和图片格式,则选择图片分享接口;A format judging unit, used to select a picture sharing interface when the file format of the note content includes a text format and a picture format;

确定图片分享接口单元,用于或者当所述记事内容的文件格式包括图片格式、所述内容数量对应的图片个数大于图片分享接口的规定,则选择图片分享接口。Determine the picture sharing interface unit, for or when the file format of the memorandum content includes the picture format, and the number of pictures corresponding to the content quantity is greater than the stipulation of the picture sharing interface, then select the picture sharing interface.

B16、如B12-B14所述的装置,所述分享模块,包括:B16. The device as described in B12-B14, the sharing module includes:

符合调用子模块,用于当所述文件格式和内容数量符合选择的分享接口规定的属性,则直接调用所述分享接口分享至目标应用;The conforming call sub-module is used to directly call the sharing interface to share to the target application when the file format and content quantity meet the attributes specified by the selected sharing interface;

不符合调用子模块,用于当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标应用。Inconsistent calling sub-module, used to convert the content of the note into the content of the attributes specified by the sharing interface when the file format and content quantity do not meet the selected sharing interface, and then call the sharing interface to share to the target application.

B17、如B16所述的装置,所述不符合调用子模块,包括:B17. The device as described in B16, the inconsistency of calling submodules, including:

图片转换单元,用于当所述记事内容的文件格式为文本格式、所述内容数量为字符个数时,且选择了图片分享接口时,则将整个记事内容转换为一张图片;The picture conversion unit is used to convert the entire note content into a picture when the file format of the note content is a text format, the number of the content is the number of characters, and the picture sharing interface is selected;

分享单元,用于调用所述图片分享接口将所述图片分享至目标应用。A sharing unit, configured to call the picture sharing interface to share the picture to a target application.

B18、如B16所述的装置,所述不符合调用子模块,包括:B18. The device as described in B16, the inconsistency of calling submodules, including:

格式转换单元,用于当所述记事内容的文件格式包括文本格式和图片格式,或者当所述记事内容的文件格式包括图片格式、且所述内容数量对应的图片个数大于图片分享接口的规定,且选择了图片分享接口时,则将整个记事内容转换为一张图片;A format conversion unit, used when the file format of the note content includes a text format and a picture format, or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the stipulation of the picture sharing interface , and the picture sharing interface is selected, the entire note content will be converted into a picture;

图片分享单元,用于调用所述图片分享接口将所述图片分享至目标应用。A picture sharing unit, configured to call the picture sharing interface to share the picture to the target application.

B19、如B13所述的装置,所述分享接口匹配子模块,包括:B19, the device as described in B13, said sharing interface matching submodule, comprising:

文本分享接口和图片分享接口选择单元,用于当所述记事内容的文件格式包括文本格式和图片格式、所述内容数量为对应文本格式的字符个数和对应图片格式的图片个数时,且所述字符个数不大于目标分享应用的文本分享接口规定的字数,则选择文本分享接口和图片分享接口。The text sharing interface and the picture sharing interface selection unit are used for when the file format of the note content includes a text format and a picture format, and the number of the content is the number of characters corresponding to the text format and the number of pictures corresponding to the picture format, and If the number of characters is not greater than the number of characters specified by the text sharing interface of the target sharing application, then the text sharing interface and the picture sharing interface are selected.

B20、如B12所述的装置,所述分享模块,包括:B20, the device as described in B12, the sharing module includes:

分享子模块,用于从所述记事内容中提取文本内容,并调用文本分享接口分享至目标分享应用;The sharing sub-module is used to extract text content from the note content, and call the text sharing interface to share to the target sharing application;

图片分享接口调用子模块,用于从所述记事内容中提取图片,并分别针对每张图片调用图片分享接口分享至目标分享应用。The picture sharing interface calling sub-module is used for extracting pictures from the note content, and calling the picture sharing interface for each picture to share to the target sharing application.

B21、如B12所述的装置,还包括:B21. The device as described in B12, further comprising:

提示模块,用于提示用户是否以对应所述分享接口的文件格式对所述记事内容进行分享。The prompting module is used to prompt the user whether to share the note content in the file format corresponding to the sharing interface.

B22、如B12所述的装置,所述目标分享应用确认模块,包括:B22. The device as described in B12, the target sharing application confirmation module includes:

分享菜单栏触发子模块,用于当接收对记事本的一条记事对象的分享触发操作后,触发分享菜单栏;The sharing menu bar triggering sub-module is used to trigger the sharing menu bar after receiving a sharing trigger operation on a memo object in the notepad;

确认目标分享应用子模块,用于接收在所述分享菜单栏选择操作,以确认目标分享应用。The sub-module for confirming the target sharing application is used for receiving a selection operation in the sharing menu bar to confirm the target sharing application.

本发明还公开了C23、一种移动终端,包括处理器和存储器,The invention also discloses C23, a mobile terminal, including a processor and a memory,

所述存储器用于存储执行A1至A11中所述的一种优化分享方式的方法的程序;The memory is used to store a program for executing a method for optimizing the sharing mode described in A1 to A11;

所述处理器被配置为用于执行所述存储器中存储的程序。The processor is configured to execute programs stored in the memory.

Claims (10)

1.一种优化分享方式的方法,其特征在于,包括:1. A method for optimizing a sharing method, comprising: 确认对记事本一条记事对象的目标分享应用;Confirm the target sharing application of a note object in Notepad; 根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口;Select the most matching sharing interface from the sharing interfaces of the sharing target application according to the attribute of the note content in the note object; 将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用。The content of the note is adapted to the attributes specified by the sharing interface, and the sharing interface is called to share to the target sharing application. 2.根据权利要求1所述的方法,其特征在于,根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口的步骤,包括:2. The method according to claim 1, wherein the step of selecting the most matching sharing interface from the sharing interfaces of the sharing target application according to the attribute of the note content in the note object comprises: 获取所述记事对象中的记事内容的文件格式和内容数量;Obtain the file format and content quantity of the memo content in the memo object; 将所述文件格式和内容数量与预置的对应所述分享目标应用的分享接口选择规则匹配,从所述分享目标应用的接口中选择最匹配的分享接口。Match the file format and content quantity with the preset sharing interface selection rules corresponding to the sharing target application, and select the most matching sharing interface from the interfaces of the sharing target application. 3.根据权利要求2所述的方法,其特征在于,所述根据预置的对应所述分享目标应用的分享接口选择规则,从所述分享目标应用的接口中选择最匹配的分享接口的步骤,包括:3. The method according to claim 2, characterized in that, the step of selecting the most matching sharing interface from the interfaces of the sharing target application according to the preset sharing interface selection rules corresponding to the sharing target application ,include: 若所述记事内容的文件格式为文本格式、所述内容数量为字符个数,则判断目标分享应用的文本分享接口的字符个数限制是否大于所述字符个数;If the file format of the memorandum content is a text format and the quantity of the content is the number of characters, it is judged whether the character number limit of the text sharing interface of the target sharing application is greater than the number of characters; 如果大于,则选择所述文本分享接口;If greater than, then select the text sharing interface; 如果不大于,则选择图片分享接口。If it is not greater than, select the picture sharing interface. 4.根据权利要求2所述的方法,其特征在于,所述根据预置的对应所述分享目标应用的分享接口选择规则,从所述分享目标应用的接口中选择最匹配的分享接口的步骤,包括:4. The method according to claim 2, characterized in that, the step of selecting the most matching sharing interface from the interfaces of the sharing target application according to the preset sharing interface selection rules corresponding to the sharing target application ,include: 当所述记事内容的文件格式包括文本格式和图片格式,则选择图片分享接口;When the file format of the note content includes a text format and a picture format, then select the picture sharing interface; 或者当所述记事内容的文件格式包括图片格式、所述内容数量对应的图片个数大于图片分享接口的规定,则选择图片分享接口。Or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the picture sharing interface, then the picture sharing interface is selected. 5.根据权利要求2-4所述的方法,其特征在于,将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用的步骤,包括:5. The method according to claim 2-4, wherein the step of adapting the content of the note to the attributes specified by the sharing interface, and calling the sharing interface to share to the target sharing application includes: 当所述文件格式和内容数量符合选择的分享接口规定的属性,则直接调用所述分享接口分享至目标分享应用;When the file format and content quantity conform to the attributes specified by the selected sharing interface, directly call the sharing interface to share to the target sharing application; 当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用。When the format of the file and the amount of content do not conform to the selected sharing interface, the note content is converted into the content of the attribute specified by the sharing interface, and then the sharing interface is called to share to the target sharing application. 6.根据权利要求5所述的方法,其特征在于,所述当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用的步骤,包括:6. The method according to claim 5, characterized in that, when the file format and content quantity do not conform to the selected sharing interface, the note content is converted into the content of the attribute specified by the sharing interface , the step of calling the sharing interface to share to the target sharing application, including: 当所述记事内容的文件格式为文本格式、所述内容数量为字符个数时,且选择了图片分享接口时,则将整个记事内容转换为一张图片;When the file format of the note content is text format, the number of the content is the number of characters, and the picture sharing interface is selected, the entire note content is converted into a picture; 调用所述图片分享接口将所述图片分享至目标分享应用。calling the picture sharing interface to share the picture to a target sharing application. 7.根据权利要求5所述的方法,其特征在于,所述当所述文件格式和内容数量不符合选择的分享接口,则将所述记事内容转换为所述分享接口规定的属性的内容后,调用所述分享接口分享至目标分享应用的步骤,包括:7. The method according to claim 5, characterized in that, when the file format and content quantity do not conform to the selected sharing interface, the note content is converted into the content of the attribute specified by the sharing interface , the step of calling the sharing interface to share to the target sharing application, including: 当所述记事内容的文件格式包括文本格式和图片格式,或者当所述记事内容的文件格式包括图片格式、且所述内容数量对应的图片个数大于图片分享接口的规定,且选择了图片分享接口时,则将整个记事内容转换为一张图片;When the file format of the note content includes a text format and a picture format, or when the file format of the note content includes a picture format, and the number of pictures corresponding to the content quantity is greater than the stipulation of the picture sharing interface, and the picture sharing is selected interface, convert the entire note content into a picture; 调用所述图片分享接口将所述图片分享至目标分享应用。calling the picture sharing interface to share the picture to a target sharing application. 8.根据权利要求2所述的方法,其特征在于,所述根据所述记事对象中的记事内容的属性,从所述目标分享应用的各分享接口中选择最匹配的分享接口的步骤,包括:8. The method according to claim 2, wherein the step of selecting the most matching sharing interface from the sharing interfaces of the target sharing application according to the attribute of the note content in the note object comprises : 当所述记事内容的文件格式包括文本格式和图片格式、所述内容数量为对应文本格式的字符个数和对应图片格式的图片个数时,且所述字符个数不大于目标分享应用的文本分享接口规定的字数,则选择文本分享接口和图片分享接口。When the file format of the note content includes a text format and a picture format, and the number of the content is the number of characters corresponding to the text format and the number of pictures corresponding to the picture format, and the number of characters is not greater than the text of the target sharing application To share the number of words specified by the interface, select the text sharing interface and picture sharing interface. 9.一种优化分享方式的装置,其特征在于,包括:9. A device for optimizing sharing methods, comprising: 目标分享应用确认模块,用于确认对记事本一条记事对象的目标分享应用;The target sharing application confirmation module is used to confirm the target sharing application of a note object in the notepad; 分享接口选择模块,用于根据所述记事对象中的记事内容的属性,从所述分享目标应用的各分享接口中选择最匹配的分享接口;A sharing interface selection module, configured to select the most matching sharing interface from the sharing interfaces of the sharing target application according to the attributes of the note content in the note object; 分享模块,用于将所述记事内容以适配所述分享接口所规定的属性,调用所述分享接口分享至目标分享应用。The sharing module is used to adapt the note content to the attribute specified by the sharing interface, and call the sharing interface to share to the target sharing application. 10.一种移动终端,其特征在于,包括处理器和存储器,10. A mobile terminal, comprising a processor and a memory, 所述存储器用于存储执行权利要求1至权利要求8的一种优化分享方式的方法的程序;The memory is used to store a program for executing a method for optimizing the sharing method of claims 1 to 8; 所述处理器被配置为用于执行所述存储器中存储的程序。The processor is configured to execute programs stored in the memory.
CN201611220487.XA 2016-12-26 2016-12-26 A method for optimizing sharing mode and related equipment Expired - Fee Related CN106657641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611220487.XA CN106657641B (en) 2016-12-26 2016-12-26 A method for optimizing sharing mode and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611220487.XA CN106657641B (en) 2016-12-26 2016-12-26 A method for optimizing sharing mode and related equipment

Publications (2)

Publication Number Publication Date
CN106657641A true CN106657641A (en) 2017-05-10
CN106657641B CN106657641B (en) 2019-10-25

Family

ID=58826818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611220487.XA Expired - Fee Related CN106657641B (en) 2016-12-26 2016-12-26 A method for optimizing sharing mode and related equipment

Country Status (1)

Country Link
CN (1) CN106657641B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491312A (en) * 2017-08-25 2017-12-19 北京安云世纪科技有限公司 Triggering method, device and the mobile terminal of application program
CN107770167A (en) * 2017-10-17 2018-03-06 北京小米移动软件有限公司 Share the method, apparatus and computer-readable recording medium of multi-medium data
CN107908937A (en) * 2017-09-25 2018-04-13 北京珠穆朗玛移动通信有限公司 One kind account edit methods, mobile terminal and storage medium
CN109885248A (en) * 2019-02-28 2019-06-14 深圳市泰衡诺科技有限公司 A kind of written contents processing method based on intelligent terminal and a kind of intelligent terminal
CN110958360A (en) * 2019-12-12 2020-04-03 深圳市微购科技有限公司 Picture sharing method, mobile terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059965A1 (en) * 2007-09-05 2009-03-05 Htc Corporation Method and system for supporting network sharing and data synchronization simultaneously
CN105160018A (en) * 2015-09-25 2015-12-16 百度在线网络技术(北京)有限公司 Method, device and system for image copy/paste
CN105760408A (en) * 2014-12-19 2016-07-13 华为终端(东莞)有限公司 Picture sharing method and apparatus and terminal device
CN106020993A (en) * 2016-05-04 2016-10-12 珠海市魅族科技有限公司 Data copying and pasting method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059965A1 (en) * 2007-09-05 2009-03-05 Htc Corporation Method and system for supporting network sharing and data synchronization simultaneously
CN105760408A (en) * 2014-12-19 2016-07-13 华为终端(东莞)有限公司 Picture sharing method and apparatus and terminal device
CN105160018A (en) * 2015-09-25 2015-12-16 百度在线网络技术(北京)有限公司 Method, device and system for image copy/paste
CN106020993A (en) * 2016-05-04 2016-10-12 珠海市魅族科技有限公司 Data copying and pasting method and terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491312A (en) * 2017-08-25 2017-12-19 北京安云世纪科技有限公司 Triggering method, device and the mobile terminal of application program
CN107908937A (en) * 2017-09-25 2018-04-13 北京珠穆朗玛移动通信有限公司 One kind account edit methods, mobile terminal and storage medium
CN107770167A (en) * 2017-10-17 2018-03-06 北京小米移动软件有限公司 Share the method, apparatus and computer-readable recording medium of multi-medium data
CN109885248A (en) * 2019-02-28 2019-06-14 深圳市泰衡诺科技有限公司 A kind of written contents processing method based on intelligent terminal and a kind of intelligent terminal
CN110958360A (en) * 2019-12-12 2020-04-03 深圳市微购科技有限公司 Picture sharing method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN106657641B (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN106873854B (en) Terminal and interface interaction control method, and contact object creation method and device
CN106657669B (en) Mobile terminal information session interaction control method and device and mobile terminal
CN106406892A (en) A shortcut function display method and device for applications and a terminal apparatus
CN106203035A (en) A data access control method and mobile terminal
CN106484283A (en) A display control method and mobile terminal
CN106657641B (en) A method for optimizing sharing mode and related equipment
CN106341809B (en) Data transmission method and equipment
CN107589901A (en) Page display method, device, terminal and computer-readable storage medium
CN108540655A (en) A kind of caller identification processing method and mobile terminal
CN111611027A (en) A method for starting an application program, a terminal device and a readable storage medium
CN106201748A (en) Method, device and the mobile terminal of a kind of Message Processing based on mobile terminal
CN106168905A (en) Text handling method, device and mobile terminal in a kind of mobile terminal
CN107193664A (en) A kind of display methods of message, device and mobile terminal
CN106201547A (en) Method, device and the mobile terminal that a kind of message based on mobile terminal shows
CN106775185B (en) Desktop display method and terminal
CN106250122A (en) A kind of information cuing method and device
CN106056001A (en) Private data protection method and apparatus based on mobile terminal and mobile terminal
CN106385485A (en) Call recording method, device and mobile terminal
WO2017050090A1 (en) Method and device for generating gif file, and computer readable storage medium
CN106126726A (en) The exhibiting method of a kind of file scene and relevant device
CN108093137A (en) A kind of Dialing Method and mobile terminal
CN108228357A (en) A memory cleaning method and mobile terminal
CN106934003B (en) File processing method and mobile terminal
CN108255374A (en) The deployment method and terminal device of a kind of file
CN106412056A (en) Intelligent address book creating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20170803

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUNSHIJI TECHNOLOGY Co.,Ltd.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191025

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