Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
First embodiment
The method for quickly sharing information provided by the embodiment of the present invention is applicable to various mobile terminals, including terminals such as a PC, a mobile phone, a tablet, a notebook, and the like, and specifically please refer to fig. 2, where fig. 2 is a basic flowchart of the method for quickly sharing information provided by the embodiment, the method includes:
s201, acquiring touch operation of a user on a current display interface.
In this step, the west lake empty operation may be a sliding track of the user on the display interface, a click operation, or the like.
In this embodiment, before the touch operation is obtained, selection and confirmation of the shared content are further required, specifically, information that needs to be shared in the currently viewed content may be determined in a gesture or a long press, a double click, or the like, where the shared information may include at least one of a picture, a document, an application program, a postcard, and the like displayed on a display interface of the mobile terminal, and then step S201 is performed to obtain the touch operation.
S202, selecting contact information to be shared from a local contact database of the mobile terminal according to the touch operation.
In this embodiment, the contact information refers to contact information stored only in an application program local to the mobile terminal, and is not contact information in an address book in the mobile terminal, such as a UIN code or a micro signal of each user on the micro signal.
In practical application, since the UIN code of the WeChat user in the prior art must be decrypted and identified through the WeChat itself, the UIN code is stored locally in the terminal, but the UIN code must pass through the WeChat when being used, and the contact information in the step is stored in a manner that the contact information in the application program similar to the type of WeChat is extracted to the local of the terminal in a pre-extraction manner and the contact information can be directly called by the terminal.
And S203, sharing the information to be shared to the corresponding contact terminal based on the contact information.
Further, in order to facilitate the user to call the contact information through touch operation, in the method provided in this embodiment, a local contact database is further established, where the local contact database refers to contact information of each application terminal user or friend and is not a phone number in the terminal address book.
In this embodiment, the local contact database specifically includes: the UIN code of the contact person and the corresponding relation between the equipment identification code of the mobile terminal and the UIN code of the contact person, wherein the UIN code of the contact person specifically refers to the contact person number in a certain application program on the terminal, for example, at least one of the UIN code of a WeChat user, the UIN code of a QQ user and the UIN code of a microblog user.
In practical application, when the local contact database in the mobile terminal is established, the method is specifically implemented by the following steps:
firstly, acquiring a UIN code of a contact person in each application program on the mobile terminal and the type of the application program;
then, classifying the UIN codes of the contacts according to the type of the application program;
acquiring an equipment identification code of a mobile terminal currently used by a user, and establishing a unique corresponding relation with a contact person UIN code according to the equipment identification code;
and storing the UIN code and the corresponding relation of the contact person into a local database of the mobile terminal.
Further, in the process of establishing the corresponding relationship, classification establishment needs to be performed according to the type of the application program, for example, a user UIN code in the WeChat is acquired, at this time, all contact person UIN codes acquired from the WeChat are classified into the class of WeChat application, and then the corresponding relationship between each contact person UIN code and the equipment identification code is established.
In this embodiment, step S202 may be specifically implemented by the following steps:
determining information to be shared from the display content according to the touch operation and acquiring a device identification code of the mobile terminal;
and inquiring a corresponding contact person UIN code from the local contact person database according to the equipment identification code.
In practical application, when a corresponding contact person UIN code is inquired from a local contact person database according to an equipment identification code, specifically, all local contact person information is called according to the equipment identification code, at the moment, a contact person is called to comprise a frequently-used contact person list and contact person lists of various types, then a user selects whether needed contact person information exists from the frequently-used contact person list, and if the contact person information does not exist in the contact person lists, the information is shared according to the inquired contact person UIN code.
In this embodiment, in order to ensure the security of data, before storing the contact UIN code and the corresponding relationship in the local database of the contact UIN code, the method provided in this embodiment further includes:
encrypting the UIN code of the contact person by using an md5 encryption algorithm to obtain encrypted contact person data;
and then storing the encrypted contact data and the corresponding relation to a local database of the mobile terminal, wherein the stored corresponding relation is the corresponding relation between the equipment identification code and the encrypted contact data.
When the UIN code is used, the equipment identification code of the current terminal is acquired, the corresponding contact data is inquired according to the identification code and the corresponding relation, and then the decryption processing is carried out through the encryption algorithm corresponding to the md5 encryption algorithm, so that the real UIN code is obtained, and the specific steps are as follows:
inquiring corresponding contact data from the local contact database according to the equipment identification code;
and decrypting the contact data by using an md5 decryption algorithm to obtain the UIN code of the contact.
According to the method for quickly sharing information, the contact information to be shared is selected from the local contact database of the mobile terminal according to the touch operation of the user on the current display interface, and then the information to be shared is shared to the corresponding contact terminal based on the selected contact information, wherein the local contact database is formed by extracting the information from each application program and storing the information in the local database, namely, the application program friends are added to the application list shared by the system, when the shared content is given to the application program friends, the information can be directly shared without entering the application program to create a chat session, so that the convenience of user operation is improved, and the use experience of the user on the terminal is also improved.
Second embodiment
Fig. 3 is a detailed flowchart of a method for quickly sharing information according to a second embodiment of the present invention, which is described in detail in this embodiment with reference to a specific scenario, and the method provided by the present invention is further described below with a WeChat as an example, where the method for quickly sharing information according to the scenario specifically includes:
s301, acquiring contact information of the WeChat terminal.
In this step, the contact information refers to a user ID assigned by the wechat to each user, that is, the UIN code of the user, and after the user ID is obtained, a contact list is generated.
S302, obtain the equipment identity (IMEI code) of the currently used mobile phone.
S303, establishing a local contact database according to the equipment identification code and the user ID.
Specifically, the device identification and the contact list obtained in step S301 are associated with each other and stored in a storage space in the mobile phone.
And S304, determining whether information sharing operation is needed or not according to the operation request of the user. If necessary, step S305 is executed, and if not necessary, step S304 is executed.
S305, starting a rapid information sharing processing flow.
S306, acquiring the touch operation of the user.
And S307, determining the information to be shared and the shared object according to the touch operation.
In the step, when the shared object is determined, specifically, an equipment identification code of the current mobile phone is acquired through touch operation, a contact database is called from a storage space, then a contact list of WeChat is selected from the contact database according to the equipment identification code, and then a user ID to be shared is selected from the contact list.
And S308, sharing the information to be shared to the terminal corresponding to the user ID according to the user ID.
In practical application, when a plurality of applications of the same type are installed on a terminal, for example, by the presence of "wechat", "QQ", "strange" and "microblog", etc., a user ID list of a plurality of programs should be stored on the terminal, and how to store the user ID list at that time, in order to solve the phenomenon, in this embodiment, in addition to direct mixed storage, classification storage may be performed according to the types of the applications, that is, when a correspondence table is established, the correspondence table should be specifically established as the correspondence among the device identification code, the application type, and the UIN code, and when the correspondence table is used, the device identification code and the type of the application also need to be acquired, and the type of the application may be directly determined according to the actual needs of the user, for example, the user needs to share the information to a wechat friend, the type of the application program is determined to be WeChat, and if the type of the application program is QQ, the type of the application program is determined to be QQ.
According to the method for quickly sharing information, the contact information to be shared is selected from the local contact database of the mobile terminal according to the touch operation of the user on the current display interface, and then the information to be shared is shared to the corresponding contact terminal based on the selected contact information, wherein the local contact database is formed by being extracted from each application program and stored in the local database, so that the user can directly share the information according to the local contact information without using the application program to jointly decrypt or extract the contact information, the information sharing efficiency is greatly improved, and the convenience of the user in information sharing operation is further improved.
Third embodiment
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention, where the mobile terminal includes: a processor 51, a memory 52 and a communication bus 53, communication between the processor 51 and the memory 52 being realized through said communication bus 53.
The processor 51 generally controls the overall operation of the server to which it belongs. For example, the processor 51 performs operations such as calculation and confirmation. The processor 51 may be a Central Processing Unit (CPU). In the present embodiment, the processor 51 at least needs to have the following functions: when the content displayed on the display interface of the mobile terminal comprises information to be shared, acquiring touch operation of a user on the current display interface; selecting contact information to be shared from a local contact database of the mobile terminal according to the touch operation; and sharing the information to be shared to the corresponding contact terminal based on the contact information.
In practical applications, the processing steps of the processor 51 can be specifically realized by setting software codes for realizing corresponding functions, and optionally, the memory 52 stores software codes readable by the processor 51 and executable by the processor 51, and includes instructions for controlling the processor 51 to execute the above-described functions (i.e., software execution functions). In this embodiment, the memory 52 at least needs to store a program for implementing the processor 51 to execute the above functions to select a contact in the upper local database of the mobile terminal and transmit the information.
The memory 52, which is typically a semiconductor memory unit, includes Random Access Memory (RAM), Read Only Memory (ROM), and CACHE memory (CACHE), of which RAM is the most important. The memory 52 is one of the important components in the computer, and is a bridge for communicating with the CPU, and the operation of all programs in the computer is performed in the memory, and is used for temporarily storing the operation data in the CPU and the data exchanged with the external memory such as the hard disk, and the CPU transfers the data to be operated to the memory for operation as long as the computer is in operation, and after the operation is completed, the CPU transmits the result, and the operation of the memory also determines the stable operation of the computer.
In this embodiment, before obtaining the touch operation of the user on the current display interface, the method further includes:
and establishing a local contact person database in the mobile terminal, wherein the local contact person database comprises contact person UIN codes and a corresponding relation between the equipment identification codes of the mobile terminal and the contact person UIN codes.
Specifically, in the step of establishing the local contact database in the mobile terminal, a contact person UIN code of each application program on the mobile terminal and the type of the application program are obtained; classifying according to the types of the application programs, and establishing a unique corresponding relation between the equipment identification code and a contact person UIN code of each type of application program; storing the contact person UIN code and the corresponding relation to a local database of the mobile terminal, wherein the contact person UIN code comprises: at least one of UIN code of the WeChat user, UIN code of the QQ user and UIN code of the microblog user.
In this embodiment, the selecting, according to the touch operation, contact information to be shared from a local contact database of the mobile terminal includes:
determining information to be shared from the display content according to the touch operation and acquiring a device identification code of the mobile terminal;
and inquiring a corresponding contact person UIN code from the local contact person database according to the equipment identification code.
In this embodiment, before storing the UIN code of the contact and the corresponding relationship in the local database of the mobile terminal, the method further includes:
encrypting the UIN code of the contact person by using an md5 encryption algorithm to obtain encrypted contact person data;
the storing the contact UIN code and the corresponding relation to a local database of the mobile terminal comprises: and storing the encrypted contact data and the corresponding relation to a local database of the mobile terminal.
The querying of the corresponding contact person UIN code from the local contact person database according to the device identification code includes:
inquiring corresponding contact data from the local contact database according to the equipment identification code;
and decrypting the contact data by using an md5 decryption algorithm to obtain the UIN code of the contact.
In practical application, in order to save development cost, when the above method steps are implemented, each module in the existing mobile terminal may be specifically and directly used for implementation, the corresponding function steps in this embodiment are added to the existing module, that is, the program codes of the corresponding steps are written in the memory, the corresponding program codes are directly read and called by the processor or the CPU on the terminal, the detection of the corresponding touch operation may be directly implemented by the touch panel on the terminal, then the acquired information is transmitted to the processor or the CPU, and the processor or the CPU processes the received information by reading the corresponding program codes.
Embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
when the content displayed on the display interface of the mobile terminal comprises information to be shared, acquiring touch operation of a user on the current display interface;
selecting contact information to be shared from a local contact database of the mobile terminal according to the touch operation;
and sharing the information to be shared to the corresponding contact terminal based on the contact information.
In practical application, the information to be shared includes at least one of a picture, a document, an application program and a postcard displayed on a display interface of the mobile terminal.
Further, in order to facilitate the user to call the contact information through touch operation, in the method provided in this embodiment, a local contact database is further established, where the local contact database refers to contact information of each application terminal user or friend and is not a phone number in the terminal address book.
In this embodiment, when establishing the local contact database in the mobile terminal, the method specifically includes the following steps:
firstly, acquiring a UIN code of a contact person in each application program on the mobile terminal and the type of the application program;
then, classifying the UIN codes of the contacts according to the type of the application program;
acquiring an equipment identification code of a mobile terminal currently used by a user, and establishing a unique corresponding relation with a contact person UIN code according to the equipment identification code;
and storing the UIN code and the corresponding relation of the contact person into a local database of the mobile terminal.
In this embodiment, in order to ensure the security of data, before storing the contact UIN code and the corresponding relationship in the local database of the contact UIN code, the method provided in this embodiment further includes:
encrypting the UIN code of the contact person by using an md5 encryption algorithm to obtain encrypted contact person data;
and then storing the encrypted contact data and the corresponding relation to a local database of the mobile terminal.
The querying of the corresponding contact person UIN code from the local contact person database according to the device identification code includes:
inquiring corresponding contact data from the local contact database according to the equipment identification code;
and decrypting the contact data by using an md5 decryption algorithm to obtain the UIN code of the contact.
In summary, the method for quickly sharing information, the mobile terminal and the computer-readable storage medium provided by the present invention overcome the defects that in the prior art, information sharing must be realized only through a third-party application program of the terminal, which results in complex user operation and low efficiency, the method selects the information of the contact person to be shared from the local contact person database of the mobile terminal according to the touch operation of the user on the current display interface, and then shares the information to be shared to the corresponding contact person terminal based on the selected contact person information, wherein the local contact person database is formed by extracting the information to be shared from each application program and storing the extracted information in the local database, so that the user can directly share the information according to the local contact person information without jointly decrypting or extracting the contact person information through the application program, thereby greatly improving the information sharing efficiency, and the convenience of the information sharing operation of the user is further improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.