CN107256170B - Method and device for activating input method setting items of terminal equipment - Google Patents
Method and device for activating input method setting items of terminal equipment Download PDFInfo
- Publication number
- CN107256170B CN107256170B CN201710458447.7A CN201710458447A CN107256170B CN 107256170 B CN107256170 B CN 107256170B CN 201710458447 A CN201710458447 A CN 201710458447A CN 107256170 B CN107256170 B CN 107256170B
- Authority
- CN
- China
- Prior art keywords
- input method
- setting item
- method setting
- input
- determining
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a method and a device for activating input method setting items of terminal equipment. One embodiment of the method comprises: in response to determining that the preset condition is satisfied, determining whether an input method setting item applied by the input method is in an activated state; in response to determining that the input method setting item is not in an activated state, sending the device identifier of the terminal device to a first server so that the first server generates activation information of the input method setting item, and sending the device identifier and the activation information to a second server, the second server searching for a first long connection through the device identifier and sending the activation information to the terminal device through the first long connection, wherein the first long connection is a long connection pre-established between the second server and the terminal device; in response to receiving the activation information, the input method setting item is activated using the activation information. This embodiment enables quick activation of input method settings.
Description
Technical Field
The application relates to the technical field of computers, in particular to the technical field of internet, and particularly relates to a method and a device for activating an input method setting item for terminal equipment.
Background
With the development of science and technology, the mobile operating system IOS has been widely applied to various terminal devices such as mobile phones, tablet computers, and the like. Due to technical limitation, the input method application installed on the operating system of the version above IOS8 is implemented by Keyboard Extension, but the Keyboard Extension has no recording right, and thus cannot implement the voice input function.
In order to realize a recording function on a terminal device using an IOS operating system, existing input method applications all set input method setting items, and perform recording and voice recognition using the input method setting items.
However, the input method setting item may be killed by the operating system when the terminal device is turned off, the user manually cleans the terminal device, the operating system resources are recycled, and the like, so that the recording and the voice recognition cannot be continued. So when the input method setting item is mistakenly killed, how to quickly activate the input method setting item becomes important.
Disclosure of Invention
An object of the embodiments of the present application is to provide an improved method and apparatus for activating an input method setting item for a terminal device, so as to solve the technical problems mentioned in the above background.
In a first aspect, an embodiment of the present application provides a method for activating an input method setting item for a terminal device, where the method includes: in response to determining that the preset condition is satisfied, determining whether an input method setting item applied by the input method is in an activated state; in response to determining that the input method setting item is not in an activated state, sending the device identifier of the terminal device to a first server so that the first server generates activation information of the input method setting item, and sending the device identifier and the activation information to a second server, the second server searching for a first long connection through the device identifier and sending the activation information to the terminal device through the first long connection, wherein the first long connection is a long connection pre-established between the second server and the terminal device; in response to receiving the activation information, the input method setting item is activated using the activation information.
In some embodiments, the preset conditions include at least one of: the user executes the operation of starting an input panel of the input method application; the user executes the operation of starting the voice input mode of the input method application; and the current time point reaches the preset detection time point of each preset detection period.
In some embodiments, determining whether an input method setting item of the input method application is in an activated state includes: sending a first message to an input method setting item of an input method application; if a second message corresponding to the first message returned by the input method setting item is received within a preset time period, determining that the input method setting item is in an activated state; and if the second message returned by the input method setting item is not received within the preset time period, determining that the input method setting item is not in the activated state.
In some embodiments, determining whether an input method setting item of the input method application is in an activated state includes: acquiring an identification list of a currently running program; if the identification of the input method setting item exists in the identification list, determining that the input method setting item is in an activated state; and if the identification of the input method setting item does not exist in the identification list, determining that the input method setting item is not in an activated state.
In some embodiments, determining whether an input method setting item of the input method application is in an activated state includes: detecting the state of a first shared file by using an input panel, wherein the first shared file is a shared file between the input panel and an input method setting item which are generated in advance, and the state of the first shared file comprises a locking state and an unlocking state; if the first shared file is in a locked state, determining that the input method setting item is in an activated state; and if the first shared file is in the unlocked state, determining that the input method setting item is not in the activated state.
In some embodiments, the method further comprises: if the input method setting item is in an activated state, receiving voice input by a user by using the input method setting item, and identifying the voice to obtain a text corresponding to the voice; text corresponding to the speech is displayed using the input panel.
In a second aspect, an embodiment of the present application provides an apparatus for activating an input method setting item of a terminal device, where the apparatus includes: a determination unit configured to determine whether an input method setting item of the input method application is in an activated state in response to determining satisfaction of a preset condition; the sending unit is configured to respond to the fact that the input method setting item is not in an activated state, send the equipment identification of the terminal equipment to the first server so that the first server generates activation information of the input method setting item, and send the equipment identification and the activation information to the second server, the second server searches for a first long connection through the equipment identification and sends the activation information to the terminal equipment through the first long connection, wherein the first long connection is a long connection which is established in advance between the second server and the terminal equipment; an activation unit configured to activate the input method setting item using the activation information in response to receiving the activation information.
In some embodiments, the preset conditions include at least one of: the user executes the operation of starting an input panel of the input method application; the user executes the operation of starting the voice input mode of the input method application; and the current time point reaches the preset detection time point of each preset detection period.
In some embodiments, the determining unit comprises: a transmitting subunit configured to transmit a first message to an input method setting item of an input method application; the first determining subunit is configured to determine that the input method setting item is in an activated state if a second message corresponding to the first message and returned by the input method setting item is received within a preset time period; and the second determining subunit is configured to determine that the input method setting item is not in the activated state if a second message returned by the input method setting item is not received within the preset time period.
In some embodiments, the determining unit comprises: the acquisition subunit is configured to acquire an identifier list of a currently running program; the third determining subunit is configured to determine that the input method setting item is in an activated state if the identifier of the input method setting item exists in the identifier list; and the fourth determining subunit is configured to determine that the input method setting item is not in the activated state if the identifier of the input method setting item does not exist in the identifier list.
In some embodiments, the determining unit comprises: the detection subunit is configured to detect a state of a first shared file by using the input panel, where the first shared file is a shared file generated in advance between the input panel and the input method setting item, and the state of the first shared file includes a locked state and an unlocked state; the fifth determining subunit is configured to determine that the input method setting item is in an activated state if the first shared file is in a locked state; and the sixth determining subunit is configured to determine that the input method setting item is not in the activated state if the first shared file is in the unlocked state.
In some embodiments, the apparatus further comprises: the recognition unit is configured to receive voice input by a user by using the input method setting item and recognize the voice to obtain a text corresponding to the voice if the input method setting item is in an activated state; a display unit configured to display a text corresponding to the voice using the input panel.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
According to the method and the device for activating the input method setting item of the terminal equipment, the terminal equipment can determine whether the input method setting item applied by the input method is in an activated state or not under the condition that the preset condition is determined to be met; under the condition that the input method setting item is determined not to be in the activated state, the terminal device can send the device identification of the terminal device to the first server; after receiving the device identifier, the first server may generate activation information of the input method setting item, and send the device identifier and the activation information to the second server; the second server can search for the first long connection through the received equipment identifier and send the activation information to the terminal equipment through the first long connection; the terminal device may activate the input method setting item using the received activation information. Thereby realizing the quick activation of the input method setting item.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for activating input method settings for a terminal device according to the application;
fig. 3 is a schematic diagram of an application scenario of a method for activating an input method setting item of a terminal device according to an embodiment of the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for activating input method settings for a terminal device according to the present application;
FIG. 5 is a schematic diagram illustrating an embodiment of an apparatus for activating an input method setting item for a terminal device according to the present application;
fig. 6 is a schematic structural diagram of a computer system suitable for implementing a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the present method for activating input method setting items of a terminal device or an apparatus for activating input method setting items of a terminal device may be applied.
As shown in fig. 1, the system architecture 100 may include a terminal device 101, a first server 102, a second server 103, and a network 104. The network 104 is used to provide a medium of communication links between the terminal device 101, the first server 102 and the second server 103. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal device 101 may be various electronic devices installed with an input method application, including but not limited to a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like.
The first server 102 may be a server that provides various services, such as a background input method server that provides support for an input method application installed on the terminal apparatus 101. The background input method server may analyze and/or otherwise process data such as a device identifier received from the terminal device 101, and transmit a processing result (e.g., the device identifier and activation information) to the second server 103.
The second server 103 may be a server providing various services, such as a background push notification server sending push notifications to the terminal device 101. The background push notification server may search for the first long connection through the device identifier received from the first server 102, and send activation information to the terminal device 101 through the first long connection, so that the terminal device 101 activates the input method setting item using the activation information received from the second server 103.
It should be noted that the method for activating the input method setting item for the terminal device provided in the embodiment of the present application is generally executed by the terminal device 101, and accordingly, the apparatus for activating the input method setting item for the terminal device is generally disposed in the terminal device 101.
It should be understood that the number of terminal devices, first servers, second servers, and networks in fig. 1 is merely illustrative. There may be any number of terminal devices, first servers, second servers, and networks, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for activating input method settings for a terminal device according to the present application is shown. The method for activating the input method setting item of the terminal equipment comprises the following steps:
In the present embodiment, a terminal device (e.g., the terminal device 101 shown in fig. 1) on which a method for activating an input method setting item for the terminal device operates may determine whether a preset condition is satisfied. If the preset condition is determined to be satisfied, continuing to execute step 202; and if the preset condition is determined not to be met, ending the process.
In some optional implementations of this embodiment, the preset condition may include, but is not limited to, at least one of:
1. the user performs an operation of starting an input panel of the input method application. The input method application may be a third-party input method application installed on the terminal device. The input panel may include, but is not limited to, at least one of: virtual keyboard, input box, keys corresponding to various input modes, and the like. By way of example, when the user clicks an icon of the input method application or an input box of the input method application, the user is instructed to perform an operation of starting an input panel of the input method application, and the preset condition is satisfied.
2. The user performs an operation of starting a voice input mode of the input method application. As an example, a key corresponding to the voice input mode may be provided on the input panel of the input method application, and when the user clicks the key corresponding to the voice input mode, it indicates that the user performs an operation of starting the voice input mode of the input method application, and at this time, the preset condition is satisfied. The input method application may include a plurality of input modes, such as a pinyin input mode, a wubi type input mode, a handwriting input mode, a voice input mode, and the like. The key corresponding to the input mode may be a physical key or a virtual key.
3. The current time point reaches the preset detection time point of each preset detection period. Here, the terminal device may periodically detect whether a preset condition is satisfied. Specifically, the terminal device may set each detection period and a detection time point of each detection period in advance; then comparing the current time point with the detection time point of each detection period; and finally, if the current time point is the same as the detection time point of one detection period, the current time point is shown to reach the preset detection time point of one preset detection period, and the preset condition is met at the moment.
At step 202, it is determined whether an input method setting item of the input method application is in an activated state.
In this embodiment, in the case where it is determined that the preset condition is satisfied, the terminal device may determine whether an input method setting item of the input method application is in an activated state. If it is determined that the input method setting item is not in the activated state, the process continues to step 203. The input method setting item has various functions, such as setting an input mode of an input method application, setting an input mode of the input method application, performing sound recording and voice recognition, and the like. The input mode may include a landscape input mode, a portrait input mode, and the like. The activated state is the state in which the input method setting item is in normal operation.
In this embodiment, the terminal device may determine whether the input method setting item is in an activated state in various ways.
In some optional implementations of this embodiment, the terminal device may send a first message to an input method setting item of the input method application; if a second message corresponding to the first message returned by the input method setting item is received within a preset time period, determining that the input method setting item is in an activated state; and if the second message returned by the input method setting item is not received within the preset time period, determining that the input method setting item is not in the activated state. As an example, if the terminal device receives a second message returned by the input method setting item within 2 seconds after the first message is sent to the input method setting item, the input method setting is in an activated state; and if the terminal equipment does not receive the second message returned by the input method setting item within 2 seconds after the first message is sent to the input method setting item, indicating that the input method setting is not in an activated state.
In some optional implementation manners of this embodiment, the terminal device may obtain an identifier list of a currently running program; if the identification of the input method setting item exists in the identification list, determining that the input method setting item is in an activated state; and if the identification of the input method setting item does not exist in the identification list, determining that the input method setting item is not in an activated state. The program identifier is composed of numbers, letters, symbols, and the like, and can be used to uniquely identify the program. The identification of the input method setting item may be used to uniquely identify the input method setting item.
In some optional implementations of this embodiment, the terminal device may detect a state of the first shared file using the input panel; if the first shared file is in a locked state, determining that the input method setting item is in an activated state; and if the first shared file is in the unlocked state, determining that the input method setting item is not in the activated state. The first shared file is a shared file between the input panel and the input method setting item which are generated in advance, and the state of the first shared file may include a locked state and an unlocked state. As an example, the input method setting item may call a file locking instruction every preset time length to lock the first shared file for the preset time length; if the input method setting item is in the activated state, the first shared file is always in the locked state; if the input method setting item is not in the activated state, the first shared file can be automatically unlocked after being locked for a preset time length and is always in the unlocked state.
In this embodiment, when it is determined that the input method setting item is not in the activated state, first, the terminal device may obtain a device identifier of the terminal device, and send the device identifier to the first server; then, the first server may generate activation information of the input method setting item, and send the device identifier and the activation information to the second server; and finally, the second server can find the first long connection through the equipment identifier and send the activation information to the terminal equipment through the first long connection.
In this embodiment, after the user installs the input method application on the terminal device, the input method setting item may obtain the device identifier of the terminal device, and write the device identifier into a shared file that can be accessed by each application installed on the terminal device. In the case where it is determined that the input method setting item is not in the activated state, the terminal device may acquire the device identification from the shared file. The device identifier is composed of numbers, letters, symbols, and the like, and can be used to uniquely identify the device.
In this embodiment, the first server may be a background server of the input method application, which may generate the activation information. The activation information is generated according to a data structure specification of a push notification which can be pushed by the second server, and can be used for activating the input method setting item.
In this embodiment, the second server may be a push notification server, and may push various notifications to the terminal device through the first long connection. Wherein the first long connection is a long connection pre-established between the second server and the terminal device.
And step 204, responding to the received activation information, and activating the input method setting item by using the activation information.
In this embodiment, in the case where activation information is received, the terminal device may activate an input method setting item using the received activation information.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of a method for activating an input method setting item of a terminal device according to an embodiment of the present application. In the application scenario of fig. 3, in a case where it is determined that the preset condition is satisfied and the input method setting item of the input method application is not in an active state, the terminal device 301 may send the device identifier 304 of the terminal device 301 to the first server 302; upon receiving the device identification 304, the first server 302 may generate activation information 305 of the input method setting item, and transmit the device identification 304 and the activation information 305 to the second server 303; the second server 303 may look up the first long connection 306 through the received device identification 304 and send the activation information 305 to the terminal device 301 through the first long connection 306; the terminal device 301 may activate the input method setting item using the received activation information 305.
According to the method for activating the input method setting item of the terminal device, the terminal device can determine whether the input method setting item applied by the input method is in an activated state or not under the condition that the preset condition is determined to be met; under the condition that the input method setting item is determined not to be in the activated state, the terminal device can send the device identification of the terminal device to the first server; after receiving the device identifier, the first server may generate activation information of the input method setting item, and send the device identifier and the activation information to the second server; the second server can search for the first long connection through the received equipment identifier and send the activation information to the terminal equipment through the first long connection; the terminal device may activate the input method setting item using the received activation information. Thereby realizing the quick activation of the input method setting item.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for activating an input method setting item for a terminal device is shown. The process 400 of the method for activating an input method setting item for a terminal device includes the following steps:
In the present embodiment, a terminal device (e.g., the terminal device 101 shown in fig. 1) on which a method for activating an input method setting item for the terminal device operates may determine whether a preset condition is satisfied. If the preset condition is determined to be satisfied, continue to execute step 402; and if the preset condition is determined not to be met, ending the process.
At step 402, it is determined whether an input method setting item of an input method application is in an active state.
In this embodiment, in the case where it is determined that the preset condition is satisfied, the terminal device may determine whether an input method setting item of the input method application is in an activated state. If the input method setting item is not in the activated state, continuing to execute step 403; if the input method setting item is determined to be in the activated state, the step 405 is directly skipped to.
In this embodiment, when it is determined that the input method setting item is not in the activated state, first, the terminal device may obtain a device identifier of the terminal device, and send the device identifier to the first server; then, the first server may generate activation information of the input method setting item, and send the device identifier and the activation information to the second server; and finally, the second server can find the first long connection through the equipment identifier and send the activation information to the terminal equipment through the first long connection. Wherein the first long connection is a long connection pre-established between the second server and the terminal device.
In response to receiving the activation information, the input method setting item is activated using the activation information, step 404.
In this embodiment, in the case where activation information is received, the terminal device may activate an input method setting item using the received activation information.
And 405, receiving the voice input by the user by using the input method setting item, and identifying the voice to obtain a text corresponding to the voice.
In this embodiment, in the case that the input method setting item is in the activated state, the terminal device may receive a voice input by a user using the input method setting, and perform voice recognition on the voice to obtain a text corresponding to the voice.
In this embodiment, the terminal device may display text corresponding to voice using the input panel. Specifically, the terminal device may display text corresponding to the voice in an input box on the input panel.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for activating the input method setting item of the terminal device in this embodiment is added with step 405 and step 406. Therefore, in the solution described in this embodiment, when the input method setting item is in the activated state, the terminal device may first receive the voice input by the user by using the input method setting, and perform voice recognition on the voice to obtain a text corresponding to the voice; text corresponding to the speech is then displayed using the input panel. Thereby realizing the voice input of the terminal equipment.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for activating an input method setting item of a terminal device, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be applied to various electronic devices in particular.
As shown in fig. 5, the apparatus 500 for activating an input method setting item of a terminal device of the present embodiment may include: a determination unit 501, a sending unit 502 and an activation unit 503. The determining unit 501 is configured to determine whether an input method setting item applied by an input method is in an activated state in response to determining that a preset condition is satisfied; a sending unit 502, configured to send, in response to determining that the input method setting item is not in an activated state, the device identifier of the terminal device to the first server, so that the first server generates activation information of the input method setting item, and sends the device identifier and the activation information to the second server, which searches for a first long connection through the device identifier and sends the activation information to the terminal device through the first long connection, where the first long connection is a long connection pre-established between the second server and the terminal device; an activation unit 503 configured to activate the input method setting item using the activation information in response to receiving the activation information.
In this embodiment, the determination unit 501 may determine whether an input method setting item of the input method application is in an activated state, in a case where it is determined that the preset condition is satisfied.
In some optional implementations of this embodiment, the preset condition may include, but is not limited to, at least one of: the user executes the operation of starting an input panel of the input method application; the user executes the operation of starting the voice input mode of the input method application; and the current time point reaches the preset detection time point of each preset detection period.
In some optional implementations of this embodiment, the determining unit 501 may include: a transmitting subunit (not shown in the figure) configured to transmit a first message to an input method setting item of an input method application; a first determining subunit (not shown in the figure), configured to determine that the input method setting item is in an activated state if a second message corresponding to the first message returned by the input method setting item is received within a preset time period; and a second determining subunit (not shown in the figure) configured to determine that the input method setting item is not in the activated state if a second message returned by the input method setting item is not received within the preset time period.
In some optional implementations of this embodiment, the determining unit 501 may include: an acquisition subunit (not shown in the figure) configured to acquire an identification list of a currently running program; a third determining subunit (not shown in the figure), configured to determine that the input method setting item is in an activated state if the identifier of the input method setting item exists in the identifier list; and a fourth determining subunit (not shown in the figure), configured to determine that the input method setting item is not in the activated state if the identifier of the input method setting item does not exist in the identifier list.
In some optional implementations of this embodiment, the determining unit 501 may include: a detecting subunit (not shown in the figure), configured to detect, by using the input panel, a state of a first shared file, where the first shared file is a shared file between the input panel and the input method setting item, and the state of the first shared file includes a locked state and an unlocked state; a fifth determining subunit (not shown in the figure), configured to determine that the input method setting item is in the activated state if the first shared file is in the locked state; and a sixth determining subunit (not shown in the figure), configured to determine that the input method setting item is not in the activated state if the first shared file is in the unlocked state.
In this embodiment, in a case that the determining unit 501 determines that the input method setting item is not in an activated state, the sending unit 502 may obtain the device identifier of the terminal device, and send the device identifier to the first server, so that the first server generates activation information of the input method setting item, and sends the device identifier and the activation information to the second server, and the second server searches for the first long connection through the device identifier, and sends the activation information to the terminal device through the first long connection. Wherein the first long connection is a long connection pre-established between the second server and the terminal device.
In the present embodiment, in the case where activation information is received, the activation unit 503 may activate an input method setting item using the received activation information.
In some optional implementations of this embodiment, the apparatus 500 for activating an input method setting item of a terminal device may further include: a recognition unit (not shown in the figure) configured to receive a voice input by a user using the input method setting item if the input method setting item is in an activated state, and recognize the voice to obtain a text corresponding to the voice; a display unit (not shown in the figure) configured to display a text corresponding to the voice using the input panel.
According to the device for activating the input method setting item of the terminal equipment, under the condition that the preset condition is determined to be met, the determining unit can determine whether the input method setting item applied by the input method is in an activated state; in a case where it is determined that the input method setting item is not in an activated state, the sending unit may send the device identifier of the terminal device to the first server, so that the first server generates activation information of the input method setting item, and sends the device identifier and the activation information to the second server, and the second server searches for the first long connection through the device identifier, and sends the activation information to the terminal device through the first long connection; the activation unit may activate the input method setting item using the received activation information. Thereby realizing the quick activation of the input method setting item.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing a terminal device of an embodiment of the present application. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Liquid Crystal Display (LCD) and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a determination unit, a transmission unit, and an activation unit. Where the names of the units do not constitute a limitation on the units themselves in some cases, for example, the determination unit may also be described as a "unit that determines whether an input method setting item of an input method application is in an activated state in response to determining satisfaction of a preset condition".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the terminal device described in the above embodiments; or may exist separately without being assembled into the terminal device. The computer readable medium carries one or more programs which, when executed by the terminal device, cause the terminal device to: in response to determining that the preset condition is satisfied, determining whether an input method setting item applied by the input method is in an activated state; in response to determining that the input method setting item is not in an activated state, sending the device identifier of the terminal device to a first server so that the first server generates activation information of the input method setting item, and sending the device identifier and the activation information to a second server, the second server searching for a first long connection through the device identifier and sending the activation information to the terminal device through the first long connection, wherein the first long connection is a long connection pre-established between the second server and the terminal device; in response to receiving the activation information, the input method setting item is activated using the activation information.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (14)
1. A method for activating an input method setting item for a terminal device, the method comprising:
in response to determining that the preset condition is satisfied, determining whether an input method setting item applied by the input method is in an activated state;
in response to determining that the input method setting item is not in the activated state, sending a device identifier of the terminal device to a first server, so that the first server generates activation information of the input method setting item, and sending the device identifier and the activation information to a second server, which searches for a first long connection through the device identifier and sends the activation information to the terminal device through the first long connection, wherein the first long connection is a long connection pre-established between the second server and the terminal device;
activating the input method setting item using the activation information in response to receiving the activation information.
2. The method of claim 1, wherein the preset condition comprises at least one of:
the user executes the operation of starting an input panel of the input method application;
the user executes the operation of starting the voice input mode of the input method application; and
the current time point reaches the preset detection time point of each preset detection period.
3. The method of claim 1, wherein determining whether an input method setting item of the input method application is in an active state comprises:
sending a first message to an input method setting item of an input method application;
if a second message corresponding to the first message returned by the input method setting item is received within a preset time period, determining that the input method setting item is in an activated state;
and if the second message returned by the input method setting item is not received within the preset time period, determining that the input method setting item is not in the activated state.
4. The method of claim 1, wherein determining whether an input method setting item of the input method application is in an active state comprises:
acquiring an identification list of a currently running program;
if the identification of the input method setting item exists in the identification list, determining that the input method setting item is in an activated state;
and if the identification of the input method setting item does not exist in the identification list, determining that the input method setting item is not in the activated state.
5. The method of claim 1, wherein determining whether an input method setting item of the input method application is in an active state comprises:
detecting the state of a first shared file by using an input panel, wherein the first shared file is a shared file generated in advance between the input panel and the input method setting item, and the state of the first shared file comprises a locking state and an unlocking state;
if the first shared file is in the locked state, determining that the input method setting item is in an activated state;
and if the first shared file is in the unlocked state, determining that the input method setting item is not in the activated state.
6. The method according to one of claims 1 to 5, characterized in that the method further comprises:
if the input method setting item is in the activated state, receiving voice input by a user by using the input method setting item, and identifying the voice to obtain a text corresponding to the voice;
displaying text corresponding to the speech using an input panel.
7. An apparatus for activating an input method setting item for a terminal device, the apparatus comprising:
a determination unit configured to determine whether an input method setting item of the input method application is in an activated state in response to determining satisfaction of a preset condition;
a sending unit, configured to send, in response to determining that the input method setting item is not in the active state, a device identifier of the terminal device to a first server, so that the first server generates activation information of the input method setting item, and send the device identifier and the activation information to a second server, where the second server searches for a first long connection through the device identifier, and sends the activation information to the terminal device through the first long connection, where the first long connection is a long connection pre-established between the second server and the terminal device;
an activation unit configured to activate the input method setting item using the activation information in response to receiving the activation information.
8. The apparatus of claim 7, wherein the preset condition comprises at least one of:
the user executes the operation of starting an input panel of the input method application;
the user executes the operation of starting the voice input mode of the input method application; and
the current time point reaches the preset detection time point of each preset detection period.
9. The apparatus of claim 7, wherein the determining unit comprises:
a transmitting subunit configured to transmit a first message to an input method setting item of an input method application;
the first determining subunit is configured to determine that the input method setting item is in an activated state if a second message corresponding to the first message and returned by the input method setting item is received within a preset time period;
and the second determining subunit is configured to determine that the input method setting item is not in the activated state if the second message returned by the input method setting item is not received within the preset time period.
10. The apparatus of claim 7, wherein the determining unit comprises:
the acquisition subunit is configured to acquire an identifier list of a currently running program;
the third determining subunit is configured to determine that the input method setting item is in an activated state if the identifier of the input method setting item exists in the identifier list;
a fourth determining subunit, configured to determine that the input method setting item is not in the activated state if the identifier of the input method setting item does not exist in the identifier list.
11. The apparatus of claim 7, wherein the determining unit comprises:
the device comprises a detection subunit, a processing unit and a display unit, wherein the detection subunit is configured to detect a state of a first shared file by using an input panel, the first shared file is a shared file generated in advance between the input panel and the input method setting item, and the state of the first shared file comprises a locked state and an unlocked state;
a fifth determining subunit, configured to determine that the input method setting item is in an activated state if the first shared file is in the locked state;
a sixth determining subunit, configured to determine that the input method setting item is not in the activated state if the first shared file is in the unlocked state.
12. The apparatus according to any one of claims 7-11, wherein the apparatus further comprises:
the recognition unit is configured to receive voice input by a user by using the input method setting item if the input method setting item is in the activated state, and recognize the voice to obtain a text corresponding to the voice;
a display unit configured to display a text corresponding to the voice using an input panel.
13. A terminal device, characterized in that the terminal device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710458447.7A CN107256170B (en) | 2017-06-16 | 2017-06-16 | Method and device for activating input method setting items of terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710458447.7A CN107256170B (en) | 2017-06-16 | 2017-06-16 | Method and device for activating input method setting items of terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107256170A CN107256170A (en) | 2017-10-17 |
CN107256170B true CN107256170B (en) | 2020-11-24 |
Family
ID=60023120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710458447.7A Active CN107256170B (en) | 2017-06-16 | 2017-06-16 | Method and device for activating input method setting items of terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107256170B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173910B (en) * | 2017-12-18 | 2021-06-22 | 网宿科技股份有限公司 | Method and system for managing application |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101694608A (en) * | 2008-12-04 | 2010-04-14 | 北京搜狗科技发展有限公司 | Input method and system of same |
CN102929401A (en) * | 2012-09-27 | 2013-02-13 | 百度国际科技(深圳)有限公司 | Method and device for processing input method application resource or function based on input behavior |
CN103336650A (en) * | 2013-06-05 | 2013-10-02 | 百度在线网络技术(北京)有限公司 | Method and device for adjusting input method panel of mobile terminal |
CN106201015A (en) * | 2016-07-08 | 2016-12-07 | 百度在线网络技术(北京)有限公司 | Pronunciation inputting method based on input method application software and device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003296315A (en) * | 2002-03-29 | 2003-10-17 | Hitachi Koukiyou Syst Eng Kk | METHOD AND DEVICE FOR INPUTTING EXTERNAL CHARACTER IN Web SYSTEM |
CN102207816B (en) * | 2010-07-16 | 2017-04-19 | 北京搜狗科技发展有限公司 | Method for performing adaptive input based on input environment, and input method system |
CN102646022B (en) * | 2012-04-10 | 2014-07-09 | 北京搜狗科技发展有限公司 | Method and device for obtaining candidate |
CN103902213B (en) * | 2012-12-27 | 2017-03-29 | ***通信集团河南有限公司 | A kind of generation method and equipment of Word message |
CN104850237A (en) * | 2014-02-19 | 2015-08-19 | 马舜尧 | Method for generating and processing derived candidate item in input method |
CN105279267A (en) * | 2015-10-23 | 2016-01-27 | 广州视睿电子科技有限公司 | Data caching method and device |
CN106776073A (en) * | 2016-12-16 | 2017-05-31 | 北京奇虎科技有限公司 | Wearable device and its task execution control method and device |
CN106850605A (en) * | 2017-01-20 | 2017-06-13 | 北京云知声信息技术有限公司 | A kind of data processing method and device |
-
2017
- 2017-06-16 CN CN201710458447.7A patent/CN107256170B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101694608A (en) * | 2008-12-04 | 2010-04-14 | 北京搜狗科技发展有限公司 | Input method and system of same |
CN102929401A (en) * | 2012-09-27 | 2013-02-13 | 百度国际科技(深圳)有限公司 | Method and device for processing input method application resource or function based on input behavior |
CN103336650A (en) * | 2013-06-05 | 2013-10-02 | 百度在线网络技术(北京)有限公司 | Method and device for adjusting input method panel of mobile terminal |
CN106201015A (en) * | 2016-07-08 | 2016-12-07 | 百度在线网络技术(北京)有限公司 | Pronunciation inputting method based on input method application software and device |
Also Published As
Publication number | Publication date |
---|---|
CN107256170A (en) | 2017-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107622135B (en) | Method and apparatus for displaying information | |
CN110708346B (en) | Information processing system and method | |
KR102105636B1 (en) | Installing application remotely | |
CN107731229B (en) | Method and apparatus for recognizing speech | |
CN111212421B (en) | Card automatic connection method, electronic device and computer readable storage medium | |
CN107302597B (en) | Message file pushing method and device | |
CN109582873B (en) | Method and device for pushing information | |
CN109857506B (en) | Method and device for realizing guide information, electronic equipment and storage medium | |
CN107770380B (en) | Information processing method and device | |
CN110069919B (en) | Information acquisition method and device | |
CN110457085B (en) | File processing method and device, terminal equipment and computer readable medium | |
WO2018090871A1 (en) | Application service indication method and application service indication device | |
CN110781408A (en) | Information display method and device | |
CN106534280B (en) | Data sharing method and device | |
CN112214408A (en) | Dependency conflict detection method and device, electronic equipment and computer readable medium | |
CN108984197B (en) | Code updating method and device | |
CN111273830A (en) | Data display method and device, electronic equipment and computer readable medium | |
CN107256170B (en) | Method and device for activating input method setting items of terminal equipment | |
CN110519373B (en) | Method and device for pushing information | |
CN110442416B (en) | Method, electronic device and computer-readable medium for presenting information | |
CN112732302A (en) | Configuration updating method and device of application program and electronic equipment | |
CN106933449B (en) | Icon processing method and device | |
CN110619101A (en) | Method and apparatus for processing information | |
CN111988829B (en) | Access method and device of wireless local area network | |
CN112395194B (en) | Method and device for accessing test platform |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |