Movatterモバイル変換


[0]ホーム

URL:


CN107256170A - Method and apparatus for the activation input method setting option of terminal device - Google Patents

Method and apparatus for the activation input method setting option of terminal device
Download PDF

Info

Publication number
CN107256170A
CN107256170ACN201710458447.7ACN201710458447ACN107256170ACN 107256170 ACN107256170 ACN 107256170ACN 201710458447 ACN201710458447 ACN 201710458447ACN 107256170 ACN107256170 ACN 107256170A
Authority
CN
China
Prior art keywords
input method
method setting
setting option
terminal device
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710458447.7A
Other languages
Chinese (zh)
Other versions
CN107256170B (en
Inventor
范敏虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co LtdfiledCriticalBeijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710458447.7ApriorityCriticalpatent/CN107256170B/en
Publication of CN107256170ApublicationCriticalpatent/CN107256170A/en
Application grantedgrantedCritical
Publication of CN107256170BpublicationCriticalpatent/CN107256170B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了用于终端设备的激活输入法设置项的方法和装置。该方法的一具体实施方式包括:响应于确定预设条件的满足,确定输入法应用的输入法设置项是否处于激活状态;响应于确定输入法设置项不是处于激活状态,将终端设备的设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备,其中,第一长连接是第二服务器与终端设备之间预先建立的长连接;响应于接收到激活信息,利用激活信息激活输入法设置项。该实施方式实现了快速地激活输入法设置项。

The present application discloses a method and a device for activating an input method setting item for a terminal device. A specific embodiment of the method includes: in response to determining that the preset condition is satisfied, determining whether the input method setting item of the input method application is in an activated state; in response to determining that the input method setting item is not in an active state, identifying the terminal device Send to the first server, so that the first server generates the activation information of the input method setting item, and sends the device identification and activation information to the second server, and the second server searches for the first long connection through the device identification, and uses the first long connection The connection sends activation information to the terminal device, wherein the first persistent connection is a pre-established persistent connection between the second server and the terminal device; in response to receiving the activation information, the activation information is used to activate the input method setting item. This embodiment implements quick activation of input method setting items.

Description

Translated fromChinese
用于终端设备的激活输入法设置项的方法和装置Method and device for activating input method setting items for terminal equipment

技术领域technical field

本申请涉及计算机技术领域,具体涉及互联网技术领域,尤其涉及用于终端设备的激活输入法设置项的方法和装置。The present application relates to the field of computer technology, in particular to the field of Internet technology, and in particular to a method and device for activating input method setting items of a terminal device.

背景技术Background technique

随着科学技术的发展,移动操作系统IOS已经被广泛应用在手机、平板电脑、计算机等多种终端设备中。由于受技术的限制,在IOS8以上版本的操作系统上安装的输入法应用是通过Keyboard Extension(键盘扩展)实现的,但是Keyboard Extension没有录音权限,因此无法实现语音输入功能。With the development of science and technology, the mobile operating system IOS has been widely used in various terminal devices such as mobile phones, tablet computers, and computers. Due to technical limitations, the input method application installed on the operating system of IOS8 or above is realized through Keyboard Extension (keyboard extension), but Keyboard Extension has no recording permission, so the voice input function cannot be realized.

为了能够在使用IOS操作系统的终端设备上实现录音功能,现有的输入法应用均会设置输入法设置项,利用输入法设置项进行录音和语音识别。In order to realize the recording function on the terminal equipment using the IOS operating system, the existing input method applications will set the input method setting items, and use the input method setting items to perform recording and voice recognition.

然而,输入法设置项可能会在终端设备关机、用户对终端设备进行手动清理、操作系统资源回收等情况下被操作系统杀死,从而导致无法继续进行录音和语音识别。所以在输入法设置项被误杀时,如何快速地激活输入法设置项就变得至关重要。However, the input method setting items may be killed by the operating system when the terminal device is shut down, the user manually cleans up the terminal device, or the operating system resources are recycled, resulting in the inability to continue recording and voice recognition. Therefore, when the input method setting item is killed by mistake, how to quickly activate the input method setting item becomes very important.

发明内容Contents of the invention

本申请实施例的目的在于提出一种改进的用于终端设备的激活输入法设置项的方法和装置,来解决以上背景技术部分提到的技术问题。The purpose of the embodiments of the present application is to propose an improved method and device for activating input method setting items for a terminal device, so as to solve the technical problems mentioned in the background technology section above.

第一方面,本申请实施例提供了一种用于终端设备的激活输入法设置项的方法,该方法包括:响应于确定预设条件的满足,确定输入法应用的输入法设置项是否处于激活状态;响应于确定输入法设置项不是处于激活状态,将终端设备的设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备,其中,第一长连接是第二服务器与终端设备之间预先建立的长连接;响应于接收到激活信息,利用激活信息激活输入法设置项。In the first aspect, an embodiment of the present application provides a method for activating an input method setting item for a terminal device, the method including: determining whether the input method setting item of the input method application is activated in response to determining that a preset condition is satisfied state; in response to determining that the input method setting item is not in an activated state, sending the device identification of the terminal device to the first server, so that the first server generates the activation information of the input method setting item, and sends the device identification and activation information to the second server. The second server, the second server searches for the first persistent connection through the device identification, and sends the activation information to the terminal device through the first persistent connection, wherein the first persistent connection is a pre-established persistent connection 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 condition includes at least one of the following: the user performs an operation to start the input panel of the input method application; the user performs an operation to start the voice input mode of the input method application; and the current time point reaches each preset detection The preset detection time point of the cycle.

在一些实施例中,确定输入法应用的输入法设置项是否处于激活状态,包括:向输入法应用的输入法设置项发送第一消息;若在预设时间段内接收到输入法设置项返回的与第一消息对应的第二消息,则确定输入法设置项处于激活状态;若在预设时间段内没有接收到输入法设置项返回的第二消息,则确定输入法设置项不是处于激活状态。In some embodiments, determining whether the input method setting item of the input method application is activated includes: sending a first message to the input method setting item of the input method application; if the input method setting item is received within a preset time period, returning If the second message corresponding to the first message is received, it is determined that the input method setting item is activated; if the second message returned by the input method setting item is not received within the preset time period, it is determined that the input method setting item is not activated state.

在一些实施例中,确定输入法应用的输入法设置项是否处于激活状态,包括:获取当前运行的程序的标识列表;若标识列表中存在输入法设置项的标识,则确定输入法设置项处于激活状态;若标识列表中不存在输入法设置项的标识,则确定输入法设置项不是处于激活状态。In some embodiments, determining whether the input method setting item of the input method application is in an activated state includes: obtaining an identification list of the currently running program; if there is an identification of the input method setting item in the identification list, then determining that the input method setting item is in Activated state; if the identifier of the input method setting item does not exist in the identifier list, it is determined that the input method setting item is not in the activated state.

在一些实施例中,确定输入法应用的输入法设置项是否处于激活状态,包括:利用输入面板检测第一共享文件的状态,其中,第一共享文件是预先生成的输入面板和输入法设置项之间的共享文件,第一共享文件的状态包括锁定状态和解锁状态;若第一共享文件处于锁定状态,则确定输入法设置项处于激活状态;若第一共享文件处于解锁状态,则确定输入法设置项不是处于激活状态。In some embodiments, determining whether the input method setting item of the input method application is in an activated state includes: using the input panel to detect the state of the first shared file, wherein the first shared file is a pre-generated input panel and input method setting item For shared files between, the state of the first shared file includes locked state and unlocked state; if the first shared file is in the locked state, then determine that the input method setting item is in the activated state; if the first shared file is in the unlocked state, then determine that the input The method setting item is not active.

在一些实施例中,该方法还包括:若输入法设置项处于激活状态,利用输入法设置项接收用户输入的语音,并对语音进行识别以得到与语音对应的文本;利用输入面板显示与语音对应的文本。In some embodiments, the method further includes: if the input method setting item is activated, using the input method setting item to receive the voice input by the user, and recognizing the voice to obtain the text corresponding to the voice; using the input panel to display the text corresponding to the voice the corresponding text.

第二方面,本申请实施例提供了一种用于终端设备的激活输入法设置项的装置,该装置包括:确定单元,配置用于响应于确定预设条件的满足,确定输入法应用的输入法设置项是否处于激活状态;发送单元,配置用于响应于确定输入法设置项不是处于激活状态,将终端设备的设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备,其中,第一长连接是第二服务器与终端设备之间预先建立的长连接;激活单元,配置用于响应于接收到激活信息,利用激活信息激活输入法设置项。In a second aspect, an embodiment of the present application provides an apparatus for activating an input method setting item for a terminal device, the apparatus including: a determining unit configured to determine an input of an input method application in response to determining that a preset condition is satisfied Whether the method setting item is in an activated state; the sending unit is configured to send the device identification of the terminal device to the first server in response to determining that the input method setting item is not in an activated state, so that the first server generates activation of the input method setting item information, and send the device identification and activation information to the second server, the second server searches for the first long connection through the device identification, and sends the activation information to the terminal device through the first long connection, wherein the first long connection is the second A pre-established long connection between the server and the terminal device; an activation unit configured to activate the input method setting item by using the activation information in response to receiving the activation information.

在一些实施例中,预设条件包括以下至少一项:用户执行启动输入法应用的输入面板的操作;用户执行启动输入法应用的语音输入模式的操作;以及当前时间点到达每个预设检测周期的预设检测时间点。In some embodiments, the preset condition includes at least one of the following: the user performs an operation to start the input panel of the input method application; the user performs an operation to start the voice input mode of the input method application; and the current time point reaches each preset detection The preset detection time point of the cycle.

在一些实施例中,确定单元,包括:发送子单元,配置用于向输入法应用的输入法设置项发送第一消息;第一确定子单元,配置用于若在预设时间段内接收到输入法设置项返回的与第一消息对应的第二消息,则确定输入法设置项处于激活状态;第二确定子单元,配置用于若在预设时间段内没有接收到输入法设置项返回的第二消息,则确定输入法设置项不是处于激活状态。In some embodiments, the determining unit includes: a sending subunit configured to send the first message to the input method setting item of the input method application; a first determining subunit configured to receive the first message within a preset time period The second message corresponding to the first message returned by the input method setting item determines that the input method setting item is in an active state; the second determination subunit is configured to return if the input method setting item is not received within a preset time period If the second message is displayed, it is determined that the input method setting item is not in an active state.

在一些实施例中,确定单元,包括:获取子单元,配置用于获取当前运行的程序的标识列表;第三确定子单元,配置用于若标识列表中存在输入法设置项的标识,则确定输入法设置项处于激活状态;第四确定子单元,配置用于若标识列表中不存在输入法设置项的标识,则确定输入法设置项不是处于激活状态。In some embodiments, the determination unit includes: an acquisition subunit, configured to acquire the identification list of the currently running program; a third determination subunit, configured to determine if the identification of the input method setting item exists in the identification list The input method setting item is in the activated state; the fourth determination subunit is configured to determine that the input method setting item is not in the activated state if the identification of the input method setting item does not exist in the identification list.

在一些实施例中,确定单元,包括:检测子单元,配置用于利用输入面板检测第一共享文件的状态,其中,第一共享文件是预先生成的输入面板和输入法设置项之间的共享文件,第一共享文件的状态包括锁定状态和解锁状态;第五确定子单元,配置用于若第一共享文件处于锁定状态,则确定输入法设置项处于激活状态;第六确定子单元,配置用于若第一共享文件处于解锁状态,则确定输入法设置项不是处于激活状态。In some embodiments, the determination unit includes: a detection subunit configured to detect the state of the first shared file using the input panel, wherein the first shared file is a pre-generated shared between the input panel and the input method setting item File, the state of the first shared file includes a locked state and an unlocked state; the fifth determination subunit is configured to determine that the input method setting item is in an active state if the first shared file is in a locked state; the sixth determination subunit is configured It is used 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 device further includes: a recognition unit configured to, if the input method setting item is activated, use the input method setting item to receive the voice input by the user, and recognize the voice to obtain the text corresponding to the voice; The display unit is configured to use the input panel to display text corresponding to the voice.

第三方面,本申请实施例提供了一种终端设备,该终端设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面中任一实现方式描述的方法。In the third aspect, the embodiment of the present application provides a terminal device, the terminal device includes: one or more processors; a storage device for storing one or more programs; when one or more programs are used by one or more The processor executes, so that one or more processors implement the method described in any implementation manner of the first aspect.

第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.

本申请实施例提供的用于终端设备的激活输入法设置项的方法和装置,在确定预设条件的满足的情况下,终端设备可以确定输入法应用的输入法设置项是否处于激活状态;在确定输入法设置项不是处于激活状态的情况下,终端设备可以将终端设备的设备标识发送至第一服务器;在接收到设备标识后,第一服务器可以生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器;第二服务器可以通过所接收到的设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备;终端设备可以利用所接收到的激活信息激活输入法设置项。从而实现了快速地激活输入法设置项。In the method and device for activating input method setting items of a terminal device provided in the embodiments of the present application, the terminal device can determine whether the input method setting item of the input method application is in an activated state if the preset condition is satisfied; When it is determined that the input method setting item is not activated, the terminal device may send the device identification of the terminal device to the first server; after receiving the device identification, the first server may generate activation information for the input method setting item, and send The device identification and activation information are sent to the second server; the second server can search for the first long connection through the received device identification, and send the activation information to the terminal device through the first long connection; the terminal device can use the received Activation information activates the input method setting item. In this way, the input method setting items can be quickly activated.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which the embodiment of the present application can be applied;

图2是根据本申请的用于终端设备的激活输入法设置项的方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of a method for activating an input method setting item for a terminal device according to the present application;

图3是根据本申请实施例的用于终端设备的激活输入法设置项的方法的一个应用场景的示意图;FIG. 3 is a schematic diagram of an application scenario of a method for activating an input method setting item for a terminal device according to an embodiment of the present application;

图4是根据本申请的用于终端设备的激活输入法设置项的方法的又一个实施例的流程图;FIG. 4 is a flowchart of another embodiment of a method for activating an input method setting item for a terminal device according to the present application;

图5是根据本申请的用于终端设备的激活输入法设置项的装置的一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of an embodiment of an apparatus for activating input method setting items for a terminal device according to the present application;

图6是适于用来实现本申请实施例的终端设备的计算机系统的结构示意图。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 application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

图1示出了可以应用本申请的用于终端设备的激活输入法设置项的方法或用于终端设备的激活输入法设置项的装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which embodiments of the method for activating an input method setting item for a terminal device or the apparatus for activating an input method setting item for a terminal device of the present application can be applied.

如图1所示,系统架构100可以包括终端设备101、第一服务器102、第二服务器103和网络104。网络104用以在终端设备101、第一服务器102和第二服务器103之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。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 as a medium for providing 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 wires, wireless communication links, or fiber optic cables, among others.

终端设备101可以是安装有输入法应用的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal device 101 may be various electronic devices installed with input method applications, including but not limited to smart phones, tablet computers, laptop computers, desktop computers and the like.

第一服务器102可以是提供各种服务的服务器,例如对终端设备101上安装的输入法应用提供支持的后台输入法服务器。后台输入法服务器可以对从终端设备101中接收到的设备标识等数据进行分析等处理,并将处理结果(例如设备标识和激活信息)发送至第二服务器103。The first server 102 may be a server providing various services, for example, a background input method server providing support for input method applications installed on the terminal device 101 . The background input method server can analyze and process the device identification and other data received from the terminal device 101 , and send the processing results (such as device identification and activation information) to the second server 103 .

第二服务器103可以是提供各种服务的服务器,例如向终端设备101发送推送通知的后台推送通知服务器。后台推送通知服务器可以通过从第一服务器102中接收到的设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备101,以使终端设备101利用从第二服务器103接收到的激活信息激活输入法设置项。The second server 103 may be a server that provides various services, for example, a background push notification server that sends push notifications to the terminal device 101 . The background push notification server can search for the first long connection through the device identification received from the first server 102, and send the activation information to the terminal device 101 through the first long connection, so that the terminal device 101 uses the device received from the second server 103. The received activation information activates the input method setting item.

需要说明的是,本申请实施例所提供的用于终端设备的激活输入法设置项的方法一般由终端设备101执行,相应地,用于终端设备的激活输入法设置项的装置一般设置于终端设备101中。It should be noted that the method for activating an input method setting item for a terminal device provided in the embodiment of the present application is generally executed by the terminal device 101, and correspondingly, the device for activating an input method setting item for a terminal device is generally set in a terminal device 101.

应该理解,图1中的终端设备、第一服务器、第二服务器和网络的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、第一服务器、第二服务器和网络。It should be understood that the numbers of the terminal device, the first server, the second server and the network in Fig. 1 are only illustrative. According to implementation requirements, there may be any number of terminal devices, first server, second server and network.

继续参考图2,示出了根据本申请的用于终端设备的激活输入法设置项的方法的一个实施例的流程200。该用于终端设备的激活输入法设置项的方法,包括以下步骤:Continuing to refer to FIG. 2 , a flow 200 of an embodiment of a method for activating an input method setting item for a terminal device according to the present application is shown. The method for activating an input method setting item for a terminal device includes the following steps:

步骤201,确定预设条件是否满足。Step 201, determine whether a preset condition is satisfied.

在本实施例中,用于终端设备的激活输入法设置项的方法运行于其上的终端设备(例如图1所示的终端设备101)可以确定预设条件是否满足。若确定预设条件的满足,则继续执行步骤202;若确定预设条件的不满足,则结束。In this embodiment, the terminal device (for example, the terminal device 101 shown in FIG. 1 ) on which the method for activating input method setting items for a terminal device runs may determine whether a preset condition is satisfied. If it is determined that the preset condition is satisfied, continue to execute step 202; if it is determined that the preset condition is not satisfied, then end.

在本实施例的一些可选的实现方式中,预设条件可以包括但不限于以下至少一项:In some optional implementation manners of this embodiment, the preset conditions may include but not limited to at least one of the following:

1、用户执行启动输入法应用的输入面板的操作。其中,输入法应用可以是安装在终端设备上的第三方输入法应用。输入面板可以包括但不限于以下至少一项:虚拟键盘、输入框、各种输入模式对应的按键等等。作为示例,当用户点击输入法应用的图标或者输入法应用的输入框时,则说明用户执行了启动输入法应用的输入面板的操作,此时就满足了预设条件。1. The user performs an operation of starting the input panel of the input method application. Wherein, the input method application may be a third-party input method application installed on the terminal device. The input panel may include but not limited to at least one of the following: a virtual keyboard, an input box, keys corresponding to various input modes, and the like. As an example, when the user clicks the icon of the input method application or the input box of the input method application, it means that the user has performed an operation of starting the input panel of the input method application, and the preset condition is satisfied at this time.

2、用户执行启动输入法应用的语音输入模式的操作。作为示例,输入法应用的输入面板上可以设置有与语音输入模式对应的按键,当用户点击与语音输入模式对应的按键时,则说明用户执行了启动输入法应用的语音输入模式的操作,此时就满足了预设条件。其中,输入法应用可以包括多种输入模式,例如,拼音输入模式、五笔字型输入模式、手写输入模式和语音输入模式等等。与输入模式对应的按键可以是实体按键,也可以是虚拟按键。2. The user performs an operation of starting the voice input mode of the input method application. As an example, the input panel of the input method application may be provided with a button corresponding to the voice input mode. When the user clicks the button corresponding to the voice input mode, it means that the user has performed the operation of starting the voice input mode of the input method application. The preset condition is met. Wherein, the input method application may include multiple input modes, for example, a Pinyin input mode, a Wubi font input mode, a handwriting input mode, a voice input mode, and the like. The keys corresponding to the input modes may be physical keys or virtual keys.

3、当前时间点到达每个预设检测周期的预设检测时间点。这里,终端设备可以周期性地检测预设条件是否满足。具体地,终端设备可以预先设置每个检测周期以及每个检测周期的检测时间点;然后将当前时间点与每个检测周期的检测时间点进行比较;最后,若当前时间点与一个检测周期的检测时间点相同,则说明当前时间点到达了一个预设检测周期的预设检测时间点,此时就满足了预设条件。3. The current time point reaches the preset detection time point of each preset detection cycle. Here, the terminal device may periodically check whether a preset condition is met. Specifically, the terminal device can preset each detection cycle and the detection time point of each detection cycle; then compare the current time point with the detection time point of each detection cycle; If the detection time points are the same, it means that the current time point has reached the preset detection time point of a preset detection period, and the preset condition is met at this time.

步骤202,确定输入法应用的输入法设置项是否处于激活状态。Step 202, determine whether the input method setting item of the input method application is activated.

在本实施例中,在确定预设条件的满足的情况下,终端设备可以确定输入法应用的输入法设置项是否处于激活状态。若确定输入法设置项不是处于激活状态,则继续执行步骤203。其中,输入法设置项具有多种功能,例如,设置输入法应用的输入方式、设置输入法应用的输入模式、进行录音和语音识别等。输入方式可以包括横屏输入方式和竖屏输入方式等。激活状态即输入法设置项处于正常运行状态。In this embodiment, when it is determined that the preset condition is met, the terminal device may determine whether the 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 an activated state, continue to execute step 203 . Among them, the input method setting item has multiple functions, for example, setting the input method of the input method application, setting the input mode of the input method application, performing recording and voice recognition, and so on. The input mode may include a horizontal screen input mode, a vertical screen input mode, and the like. The activated state means that the input method setting item is in normal operation state.

在本实施例中,终端设备可以通过各种方式确定输入法设置项是否处于激活状态。In this embodiment, the terminal device may determine whether the input method setting item is activated in various ways.

在本实施例的一些可选的实现方式中,终端设备可以向输入法应用的输入法设置项发送第一消息;若在预设时间段内接收到输入法设置项返回的与第一消息对应的第二消息,则确定输入法设置项处于激活状态;若在预设时间段内没有接收到输入法设置项返回的第二消息,则确定输入法设置项不是处于激活状态。作为示例,若在向输入法设置项发送第一消息之后的2秒内,终端设备接收到输入法设置项返回的第二消息,则说明输入法设置处于激活状态;若在向输入法设置项发送第一消息之后的2秒内,终端设备没有接收到输入法设置项返回的第二消息,则说明输入法设置不是处于激活状态。In some optional implementations of this embodiment, the terminal device may send a first message to the input method setting item of the input method application; If the second message returned by the input method setting item is not received within the preset time period, it is determined that the input method setting item is not in the active state. As an example, if within 2 seconds after sending the first message to the input method setting item, the terminal device receives the second message returned by the input method setting item, it means that the input method setting is activated; If the terminal device does not receive the second message returned by the input method setting item within 2 seconds after sending the first message, it means that the input method setting is not activated.

在本实施例的一些可选的实现方式中,终端设备可以获取当前运行的程序的标识列表;若标识列表中存在输入法设置项的标识,则确定输入法设置项处于激活状态;若标识列表中不存在输入法设置项的标识,则确定输入法设置项不是处于激活状态。其中,程序的标识是由数字、字母、符号等组成,可以用于唯一标识程序。输入法设置项的标识可以用于唯一识别输入法设置项。In some optional implementations of this embodiment, the terminal device can acquire the identification list of the currently running program; if there is an identification of the input method setting item in the identification list, it is determined that the input method setting item is in an active state; if the identification list If there is no identifier of the input method setting item in , then it is determined that the input method setting item is not in the activated state. Wherein, the identification of the program is composed of numbers, letters, symbols, etc., and can be used to uniquely identify the program. The identifier of the input method setting item can be used to uniquely identify the input method setting item.

在本实施例的一些可选的实现方式中,终端设备可以利用输入面板检测第一共享文件的状态;若第一共享文件处于锁定状态,则确定输入法设置项处于激活状态;若第一共享文件处于解锁状态,则确定输入法设置项不是处于激活状态。其中,第一共享文件是预先生成的输入面板和输入法设置项之间的共享文件,第一共享文件的状态可以包括锁定状态和解锁状态。作为示例,输入法设置项可以每隔预设时长调用一次文件锁定指令,以将第一共享文件锁定预设时长;若输入法设置项处于激活状态,则第一共享文件将一直处于锁定状态;若输入法设置项不是处于激活状态,则第一共享文件可以在锁定预设时长之后自动解锁,并一直处于解锁状态。In some optional implementations of this embodiment, the terminal device can use the input panel to detect the state of the first shared file; if the first shared file is in the locked state, determine that the input method setting item is in the activated state; if the first shared file If the file is in an unlocked state, then it is determined that the input method setting item is not in an activated state. Wherein, the first shared file is a shared file between the pre-generated input panel and input method setting items, 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 can call the file lock command every preset time length to lock the first shared file for a preset time length; if the input method setting item is activated, the first shared file will always be in the locked state; If the input method setting item is not activated, the first shared file can be automatically unlocked after being locked for a preset period of time, and remains in the unlocked state.

步骤203,将终端设备的设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备。Step 203: Send the device identification 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 identification and activation information to the second server, and the second server searches the first server through the device identification. A long connection is established, and the activation information is sent to the terminal device through the first long connection.

在本实施例中,在确定输入法设置项不是处于激活状态的情况下,首先,终端设备可以获取终端设备的设备标识,并将设备标识发送至第一服务器;然后,第一服务器可以生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器;最后,第二服务器可以通过设备标识查找到第一长连接,并通过第一长连接将激活信息发送至终端设备。In this embodiment, when it is determined that the input method setting item is not in the activated state, first, the terminal device can obtain the device identification of the terminal device, and send the device identification to the first server; then, the first server can generate an input The activation information of the method setting item, and send the device identification and activation information to the second server; finally, the second server can find the first persistent connection through the device identification, and send the activation information to the terminal device through the first persistent connection.

在本实施例中,当用户在终端设备上安装输入法应用之后,输入法设置项可以获取终端设备的设备标识,并将其写入终端设备上安装的各种应用均可以互相访问的共享文件中。在确定输入法设置项不是处于激活状态的情况下,终端设备可以从共享文件中获取设备标识。其中,设备标识由数字、字母、符号等组成,可以用于唯一标识设备。In this embodiment, after the user installs the input method application on the terminal device, the input method setting item can obtain the device identification of the terminal device and write it into a shared file that can be accessed by various applications installed on the terminal device middle. When it is determined that the input method setting item is not in an activated state, the terminal device may acquire the device identifier from the shared file. Among them, the device identification is composed of numbers, letters, symbols, etc., 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 activation information. Wherein, the activation information is generated according to the data structure specification of the push notification that the second server can push, and can be used to activate 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 persistent connection. Wherein, the first persistent connection is a pre-established persistent connection between the second server and the terminal device.

步骤204,响应于接收到激活信息,利用激活信息激活输入法设置项。Step 204, in response to receiving the activation information, use the activation information to activate the input method setting item.

在本实施例中,在接收到激活信息的情况下,终端设备可以利用所接收到的激活信息激活输入法设置项。In this embodiment, when the activation information is received, the terminal device may use the received activation information to activate the input method setting item.

继续参见图3,图3是根据本申请实施例的用于终端设备的激活输入法设置项的方法的应用场景的一个示意图。在图3的应用场景中,在确定预设条件的满足和输入法应用的输入法设置项不是处于激活状态的情况下,终端设备301可以将终端设备301的设备标识304发送至第一服务器302;在接收到设备标识304后,第一服务器302可以生成输入法设置项的激活信息305,并将设备标识304和激活信息305发送至第二服务器303;第二服务器303可以通过所接收到的设备标识304查找第一长连接306,并通过第一长连接306将激活信息305发送至终端设备301;终端设备301可以利用所接收到的激活信息305激活输入法设置项。Continuing to refer to FIG. 3 , FIG. 3 is a schematic diagram of an application scenario of a method for activating an input method setting item for a terminal device according to an embodiment of the present application. In the application scenario of FIG. 3 , when it is determined that the preset condition is met 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 identification 304 of the terminal device 301 to the first server 302 ; After receiving the device identification 304, the first server 302 can generate the activation information 305 of the input method setting item, and send the device identification 304 and the activation information 305 to the second server 303; the second server 303 can pass the received The device identifier 304 searches for the first persistent connection 306, and sends the activation information 305 to the terminal device 301 through the first persistent connection 306; the terminal device 301 can use the received activation information 305 to activate the input method setting item.

本申请实施例提供的用于终端设备的激活输入法设置项的方法,在确定预设条件的满足的情况下,终端设备可以确定输入法应用的输入法设置项是否处于激活状态;在确定输入法设置项不是处于激活状态的情况下,终端设备可以将终端设备的设备标识发送至第一服务器;在接收到设备标识后,第一服务器可以生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器;第二服务器可以通过所接收到的设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备;终端设备可以利用所接收到的激活信息激活输入法设置项。从而实现了快速地激活输入法设置项。In the method for activating input method setting items for a terminal device provided in the embodiment of the present application, the terminal device can determine whether the input method setting item of the input method application is in an activated state if the preset condition is satisfied; If the input method setting item is not activated, the terminal device can send the device identification of the terminal device to the first server; after receiving the device identification, the first server can generate activation information for the input method setting item, and send the device identification and activation information are sent to the second server; the second server can search for the first long connection through the received device identification, and send the activation information to the terminal device through the first long connection; the terminal device can use the received activation information Activate the input method setting item. In this way, the input method setting items can be quickly activated.

进一步参考图4,其示出了用于终端设备的激活输入法设置项的方法的又一个实施例的流程400。该用于终端设备的激活输入法设置项的方法的流程400,包括以下步骤:Further referring to FIG. 4 , it shows a flow 400 of another embodiment of a method for activating an input method setting item for a terminal device. The process 400 of the method for activating an input method setting item for a terminal device includes the following steps:

步骤401,确定预设条件是否满足。Step 401, determine whether a preset condition is satisfied.

在本实施例中,用于终端设备的激活输入法设置项的方法运行于其上的终端设备(例如图1所示的终端设备101)可以确定预设条件是否满足。若确定预设条件的满足,则继续执行步骤402;若确定预设条件的不满足,则结束。In this embodiment, the terminal device (for example, the terminal device 101 shown in FIG. 1 ) on which the method for activating input method setting items for a terminal device runs may determine whether a preset condition is satisfied. If it is determined that the preset condition is satisfied, continue to execute step 402; if it is determined that the preset condition is not satisfied, then end.

步骤402,确定输入法应用的输入法设置项是否处于激活状态。Step 402, determine whether the input method setting item of the input method application is activated.

在本实施例中,在确定预设条件的满足的情况下,终端设备可以确定输入法应用的输入法设置项是否处于激活状态。若确定输入法设置项不是处于激活状态,则继续执行步骤403;若确定输入法设置项处于激活状态,则直接跳转执行步骤405。In this embodiment, when it is determined that the preset condition is met, the terminal device may determine whether the 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, continue to execute step 403 ; if it is determined that the input method setting item is in the activated state, then directly jump to step 405 .

步骤403,将终端设备的设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备。Step 403: Send the device identification 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 identification and activation information to the second server, and the second server uses the device identification to search for the first server. A long connection is established, and the activation information is sent to the terminal device through the first long connection.

在本实施例中,在确定输入法设置项不是处于激活状态的情况下,首先,终端设备可以获取终端设备的设备标识,并将设备标识发送至第一服务器;然后,第一服务器可以生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器;最后,第二服务器可以通过设备标识查找到第一长连接,并通过第一长连接将激活信息发送至终端设备。其中,第一长连接是第二服务器与终端设备之间预先建立的长连接。In this embodiment, when it is determined that the input method setting item is not in the activated state, first, the terminal device can obtain the device identification of the terminal device, and send the device identification to the first server; then, the first server can generate an input The activation information of the method setting item, and send the device identification and activation information to the second server; finally, the second server can find the first persistent connection through the device identification, and send the activation information to the terminal device through the first persistent connection. Wherein, the first persistent connection is a pre-established persistent connection between the second server and the terminal device.

步骤404,响应于接收到激活信息,利用激活信息激活输入法设置项。Step 404, in response to receiving the activation information, use the activation information to activate the input method setting item.

在本实施例中,在接收到激活信息的情况下,终端设备可以利用所接收到的激活信息激活输入法设置项。In this embodiment, when the activation information is received, the terminal device may use the received activation information to activate the input method setting item.

步骤405,利用输入法设置项接收用户输入的语音,并对语音进行识别以得到与语音对应的文本。Step 405, using the input method setting item to receive the voice input by the user, and recognize the voice to obtain the text corresponding to the voice.

在本实施例中,在输入法设置项处于激活状态的情况下,终端设备可以利用输入法设置接收用户输入的语音,并对语音进行语音识别以得到与语音对应的文本。In this embodiment, when the input method setting item is activated, the terminal device can use the input method setting to receive the voice input by the user, and perform voice recognition on the voice to obtain the text corresponding to the voice.

步骤406,利用输入面板显示与语音对应的文本。Step 406, using the input panel to display the text corresponding to the voice.

在本实施例中,终端设备可以利用输入面板显示与语音对应的文本。具体地,终端设备可以将与语音对应的文本显示在输入面板上的输入框中。In this embodiment, the terminal device can use the input panel to display text corresponding to the voice. Specifically, the terminal device may display the text corresponding to the voice in the input box on the input panel.

从图4中可以看出,与图2对应的实施例相比,本实施例中的用于终端设备的激活输入法设置项的方法的流程400增加了步骤405和步骤406。由此,本实施例描述的方案在输入法设置项处于激活状态的情况下,终端设备可以首先利用输入法设置接收用户输入的语音,并对语音进行语音识别以得到与语音对应的文本;然后利用输入面板显示与语音对应的文本。从而实现终端设备的语音输入。It can be seen from FIG. 4 that, compared with the embodiment corresponding to FIG. 2 , step 405 and step 406 are added in the flow 400 of the method for activating an input method setting item for a terminal device in this embodiment. Therefore, in the solution described in this embodiment, when the input method setting item is activated, the terminal device can first use the input method setting to receive the voice input by the user, and perform voice recognition on the voice to obtain the text corresponding to the voice; then Use the input panel to display text corresponding to speech. In this way, the voice input of the terminal device is realized.

进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于终端设备的激活输入法设置项的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 5 , as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of a device for activating input method setting items for a terminal device. This device embodiment is the same as the method shown in FIG. 2 Corresponding to the embodiments, the device can be specifically applied to various electronic devices.

如图5所示,本实施例的用于终端设备的激活输入法设置项的装置500可以包括:确定单元501、发送单元502和激活单元503。其中,确定单元501,配置用于响应于确定预设条件的满足,确定输入法应用的输入法设置项是否处于激活状态;发送单元502,配置用于响应于确定输入法设置项不是处于激活状态,将终端设备的设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备,其中,第一长连接是第二服务器与终端设备之间预先建立的长连接;激活单元503,配置用于响应于接收到激活信息,利用激活信息激活输入法设置项。As shown in FIG. 5 , an apparatus 500 for activating an input method setting item for a terminal device in this embodiment may include: a determining unit 501 , a sending unit 502 and an activating unit 503 . Wherein, the determining unit 501 is configured to determine whether the input method setting item of the input method application is in an activated state in response to determining that the preset condition is satisfied; the sending unit 502 is configured to determine whether the input method setting item is not in an activated state in response , send the device ID of the terminal device to the first server, so that the first server generates the activation information of the input method setting item, and sends the device ID and activation information to the second server, and the second server uses the device ID to find the first long connection, and send the activation information to the terminal device through the first long connection, wherein the first long connection is a pre-established long connection between the second server and the terminal device; the activation unit 503 is configured to respond to receiving the activation information , use the activation information to activate the input method setting item.

在本实施例中,确定单元501可以在确定预设条件的满足的情况下,确定输入法应用的输入法设置项是否处于激活状态。In this embodiment, the determining unit 501 may determine whether the input method setting item of the input method application is in an activated state when it is determined that the preset condition is satisfied.

在本实施例的一些可选的实现方式中,预设条件可以包括但不限于以下至少一项:用户执行启动输入法应用的输入面板的操作;用户执行启动输入法应用的语音输入模式的操作;以及当前时间点到达每个预设检测周期的预设检测时间点。In some optional implementations of this embodiment, the preset conditions may include but not limited to at least one of the following: the user performs an operation to start the input panel of the input method application; the user performs an operation to start the voice input mode of the input method application ; and the current time point reaches the preset detection time point of each preset detection cycle.

在本实施例的一些可选的实现方式中,确定单元501可以包括:发送子单元(图中未示出),配置用于向输入法应用的输入法设置项发送第一消息;第一确定子单元(图中未示出),配置用于若在预设时间段内接收到输入法设置项返回的与第一消息对应的第二消息,则确定输入法设置项处于激活状态;第二确定子单元(图中未示出),配置用于若在预设时间段内没有接收到输入法设置项返回的第二消息,则确定输入法设置项不是处于激活状态。In some optional implementations of this embodiment, the determining unit 501 may include: a sending subunit (not shown in the figure), configured to send the first message to the input method setting item of the input method application; the first determining The subunit (not shown in the figure) is configured to determine that the input method setting item is in an active state if the second message corresponding to the first message returned by the input method setting item is received within a preset time period; The determination subunit (not shown in the figure) is configured to determine that the input method setting item is not in an active state if the second message returned by the input method setting item is not received within a preset time period.

在本实施例的一些可选的实现方式中,确定单元501可以包括:获取子单元(图中未示出),配置用于获取当前运行的程序的标识列表;第三确定子单元(图中未示出),配置用于若标识列表中存在输入法设置项的标识,则确定输入法设置项处于激活状态;第四确定子单元(图中未示出),配置用于若标识列表中不存在输入法设置项的标识,则确定输入法设置项不是处于激活状态。In some optional implementation manners of this embodiment, the determining unit 501 may include: an acquiring subunit (not shown in the figure), configured to acquire an identification list of currently running programs; a third determining subunit (not shown in the figure) Not shown), configured to determine that the input method setting item is in an active state if there is an identification of the input method setting item in the identification list; the fourth determining subunit (not shown in the figure), configured for if the identification list If there is no identifier of the input method setting item, it is determined that the input method setting item is not in an activated state.

在本实施例的一些可选的实现方式中,确定单元501可以包括:检测子单元(图中未示出),配置用于利用输入面板检测第一共享文件的状态,其中,第一共享文件是预先生成的输入面板和输入法设置项之间的共享文件,第一共享文件的状态包括锁定状态和解锁状态;第五确定子单元(图中未示出),配置用于若第一共享文件处于锁定状态,则确定输入法设置项处于激活状态;第六确定子单元(图中未示出),配置用于若第一共享文件处于解锁状态,则确定输入法设置项不是处于激活状态。In some optional implementations of this embodiment, the determining unit 501 may include: a detection subunit (not shown in the figure), configured to use an input panel to detect the state of the first shared file, wherein the first shared file It is a shared file between the pre-generated input panel and the input method setting item, the state of the first shared file includes a locked state and an unlocked state; the fifth determining subunit (not shown in the figure), configured for if the first shared If the file is in a locked state, determine that the input method setting item is in an active state; the sixth determination subunit (not shown in the figure) is configured to determine that the input method setting item is not in an active state if the first shared file is in an unlocked state .

在本实施例中,在确定单元501确定输入法设置项不是处于激活状态的情况下,发送单元502可以获取终端设备的设备标识,并将设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备。其中,第一长连接是第二服务器与终端设备之间预先建立的长连接。In this embodiment, when the determining unit 501 determines that the input method setting item is not in an active 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 Input the activation information of the setting item, and send the device identification and activation information to the second server, and the second server searches for the first persistent connection through the device identification, and sends the activation information to the terminal device through the first persistent connection. Wherein, the first persistent connection is a pre-established persistent connection between the second server and the terminal device.

在本实施例中,在接收到激活信息的情况下,激活单元503可以利用所接收到的激活信息激活输入法设置项。In this embodiment, when the activation information is received, the activation unit 503 can use the received activation information to activate the input method setting item.

在本实施例的一些可选的实现方式中,用于终端设备的激活输入法设置项的装置500还可以包括:识别单元(图中未示出),配置用于若输入法设置项处于激活状态,利用输入法设置项接收用户输入的语音,并对语音进行识别以得到与语音对应的文本;显示单元(图中未示出),配置用于利用输入面板显示与语音对应的文本。In some optional implementations of this embodiment, the apparatus 500 for activating an input method setting item for a terminal device may further include: an identification unit (not shown in the figure), configured to state, use the input method setting item to receive the voice input by the user, and recognize the voice to obtain the text corresponding to the voice; the display unit (not shown in the figure) is configured to use the input panel to display the text corresponding to the voice.

本申请实施例提供的用于终端设备的激活输入法设置项的装置,在确定预设条件的满足的情况下,确定单元可以确定输入法应用的输入法设置项是否处于激活状态;在确定输入法设置项不是处于激活状态的情况下,发送单元可以将终端设备的设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备;激活单元可以利用所接收到的激活信息激活输入法设置项。从而实现了快速地激活输入法设置项。In the device for activating input method setting items provided by the embodiment of the present application, when the preset condition is determined to be satisfied, the determining unit can determine whether the input method setting item of the input method application is in an active state; If the input method setting item is not activated, the sending unit may send the device identification 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 identification and activation information to the second server. The second server, the second server searches for the first persistent connection through the device identification, and sends the activation information to the terminal device through the first persistent connection; the activation unit can use the received activation information to activate the input method setting items. In this way, the input method setting items can be quickly activated.

下面参考图6,其示出了适于用来实现本申请实施例的终端设备的计算机系统600的结构示意图。图6示出的终端设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , it shows a schematic structural diagram of a computer system 600 suitable for implementing a terminal device according to an embodiment of the present application. The terminal device shown in FIG. 6 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.

如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , a computer system 600 includes a central processing unit (CPU) 601 that can execute programs according to programs stored in a read-only memory (ROM) 602 or loaded from a storage section 608 into a random-access memory (RAM) 603 Instead, various appropriate actions and processes are performed. 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 the bus 604 .

以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I/O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a liquid crystal display (LCD) etc., a speaker, etc.; a storage section 608 including a hard disk, etc.; Communication section 609 of a network interface card such as a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc. is mounted on the drive 610 as necessary so that a computer program read therefrom is installed into the storage section 608 as necessary.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 609 and/or installed from removable media 611 . When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the method of the present application are performed.

需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program codes are carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction 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, wireline, optical fiber 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 a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. 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 they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括确定单元、发送单元和激活单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,确定单元还可以被描述为“响应于确定预设条件的满足,确定输入法应用的输入法设置项是否处于激活状态的单元”。The units involved in the embodiments described in the present application may be implemented by means of software or by means of hardware. The described units may also be set in a processor, for example, it may be described as: a processor includes a determining unit, a sending unit, and an activating unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the determining unit can also be described as “responsive to determining whether the preset condition is satisfied, determining whether the input method setting item of the input method application Active unit".

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的终端设备中所包含的;也可以是单独存在,而未装配入该终端设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该终端设备执行时,使得该终端设备:响应于确定预设条件的满足,确定输入法应用的输入法设置项是否处于激活状态;响应于确定输入法设置项不是处于激活状态,将终端设备的设备标识发送至第一服务器,以使第一服务器生成输入法设置项的激活信息,并将设备标识和激活信息发送至第二服务器,第二服务器通过设备标识查找第一长连接,并通过第一长连接将激活信息发送至终端设备,其中,第一长连接是第二服务器与终端设备之间预先建立的长连接;响应于接收到激活信息,利用激活信息激活输入法设置项。As another aspect, the present application also provides a computer-readable medium, which may be contained in the terminal device described in the above-mentioned embodiments; or may exist independently without being assembled into the terminal device middle. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the terminal device, the terminal device: determines the input method setting item of the input method application in response to determining the satisfaction of the preset condition Whether it is in an activated state; in response to determining that the input method setting item is not in an activated state, send the device identification of the terminal device to the first server, so that the first server generates activation information for the input method setting item, and sends the device identification and activation information Send to the second server, the second server searches for the first long connection through the device identification, and sends the activation information to the terminal device through the first long connection, wherein the first long connection is pre-established between the second server and the terminal device Long connection; in response to receiving the activation information, use the activation information to activate the input method setting item.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the technical solutions formed by the above-mentioned technical features or without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) this application.

Claims (14)

CN201710458447.7A2017-06-162017-06-16 Method and device for activating input method setting items for terminal equipmentActiveCN107256170B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710458447.7ACN107256170B (en)2017-06-162017-06-16 Method and device for activating input method setting items for terminal equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710458447.7ACN107256170B (en)2017-06-162017-06-16 Method and device for activating input method setting items for terminal equipment

Publications (2)

Publication NumberPublication Date
CN107256170Atrue CN107256170A (en)2017-10-17
CN107256170B CN107256170B (en)2020-11-24

Family

ID=60023120

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710458447.7AActiveCN107256170B (en)2017-06-162017-06-16 Method and device for activating input method setting items for terminal equipment

Country Status (1)

CountryLink
CN (1)CN107256170B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108173910A (en)*2017-12-182018-06-15网宿科技股份有限公司 Method and system for managing applications

Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2003296315A (en)*2002-03-292003-10-17Hitachi Koukiyou Syst Eng Kk External character input method and external character input device in Web system
CN101694608A (en)*2008-12-042010-04-14北京搜狗科技发展有限公司Input method and system of same
CN102207816A (en)*2010-07-162011-10-05北京搜狗科技发展有限公司Method for performing adaptive input based on input environment, and input method system
CN102646022A (en)*2012-04-102012-08-22北京搜狗科技发展有限公司Method and device for obtaining candidate
CN102929401A (en)*2012-09-272013-02-13百度国际科技(深圳)有限公司Method and device for processing input method application resource or function based on input behavior
CN103336650A (en)*2013-06-052013-10-02百度在线网络技术(北京)有限公司Method and device for adjusting input method panel of mobile terminal
CN103902213A (en)*2012-12-272014-07-02中国移动通信集团河南有限公司Text information generating method and device
CN104850237A (en)*2014-02-192015-08-19马舜尧Method for generating and processing derived candidate item in input method
CN105279267A (en)*2015-10-232016-01-27广州视睿电子科技有限公司Data caching method and device
CN106201015A (en)*2016-07-082016-12-07百度在线网络技术(北京)有限公司Pronunciation inputting method based on input method application software and device
CN106776073A (en)*2016-12-162017-05-31北京奇虎科技有限公司Wearable device and its task execution control method and device
CN106850605A (en)*2017-01-202017-06-13北京云知声信息技术有限公司A kind of data processing method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2003296315A (en)*2002-03-292003-10-17Hitachi Koukiyou Syst Eng Kk External character input method and external character input device in Web system
CN101694608A (en)*2008-12-042010-04-14北京搜狗科技发展有限公司Input method and system of same
CN102207816A (en)*2010-07-162011-10-05北京搜狗科技发展有限公司Method for performing adaptive input based on input environment, and input method system
CN102646022A (en)*2012-04-102012-08-22北京搜狗科技发展有限公司Method and device for obtaining candidate
CN102929401A (en)*2012-09-272013-02-13百度国际科技(深圳)有限公司Method and device for processing input method application resource or function based on input behavior
CN103902213A (en)*2012-12-272014-07-02中国移动通信集团河南有限公司Text information generating method and device
CN103336650A (en)*2013-06-052013-10-02百度在线网络技术(北京)有限公司Method and device for adjusting input method panel of mobile terminal
CN104850237A (en)*2014-02-192015-08-19马舜尧Method for generating and processing derived candidate item in input method
CN105279267A (en)*2015-10-232016-01-27广州视睿电子科技有限公司Data caching method and device
CN106201015A (en)*2016-07-082016-12-07百度在线网络技术(北京)有限公司Pronunciation inputting method based on input method application software and device
CN106776073A (en)*2016-12-162017-05-31北京奇虎科技有限公司Wearable device and its task execution control method and device
CN106850605A (en)*2017-01-202017-06-13北京云知声信息技术有限公司A kind of data processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈艇 等: ""在VB实现中英文输入法的自动切换"", 《数字技术与应用》*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108173910A (en)*2017-12-182018-06-15网宿科技股份有限公司 Method and system for managing applications
CN108173910B (en)*2017-12-182021-06-22网宿科技股份有限公司Method and system for managing application

Also Published As

Publication numberPublication date
CN107256170B (en)2020-11-24

Similar Documents

PublicationPublication DateTitle
KR102231733B1 (en)Environmentally aware dialog policies and response generation
KR102441737B1 (en)Method for authentication and electronic device supporting the same
US9367403B2 (en)Terminal and application restoring method
CN108287917B (en)File opening method and device, storage medium and electronic equipment
US20160225369A1 (en)Dynamic inference of voice command for software operation from user manipulation of electronic device
JP6492184B2 (en) Method, device, and system for managing information recommendations
WO2018223717A1 (en)Webpage front-end testing method, device, system, apparatus and readable storage medium
EP3251001A1 (en)Dynamic inference of voice command for software operation from help information
CN108369600A (en) web browser extension
US20140282460A1 (en)Enterprise device unenrollment
US20180233144A1 (en)Voice input method and apparatus
CN112905971B (en)Method and device for processing information
US11460971B2 (en)Control method and electronic device
CN107896256B (en)Information pushing method and device, mobile terminal, server and readable storage medium
EP4071690A2 (en)Method and apparatus for task information management, device and storage medium
CN105279164B (en)File processing method and device based on IOS (input/output system)
CN111988829B (en)Access method and device of wireless local area network
CN112395194B (en)Method and device for accessing test platform
CN113836089A (en)Application program display method and device, electronic equipment and readable storage medium
CN110554892A (en) Information acquisition method and device
CN111124627B (en)Method and device for determining call initiator of application program, terminal and storage medium
CN107835305A (en)Data inputting method and device for the terminal device with screen
CN107256170B (en) Method and device for activating input method setting items for terminal equipment
CN109144864B (en)Method and device for testing window
CN103150083A (en)Display method and device for user-defined desktop icons

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp