CN112764552A - Input method switching method and device, intelligent equipment and storage medium - Google Patents

Input method switching method and device, intelligent equipment and storage medium Download PDF

Info

Publication number
CN112764552A
CN112764552A CN202110103658.5A CN202110103658A CN112764552A CN 112764552 A CN112764552 A CN 112764552A CN 202110103658 A CN202110103658 A CN 202110103658A CN 112764552 A CN112764552 A CN 112764552A
Authority
CN
China
Prior art keywords
input method
configuration information
target
application
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110103658.5A
Other languages
Chinese (zh)
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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110103658.5A priority Critical patent/CN112764552A/en
Publication of CN112764552A publication Critical patent/CN112764552A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to an input method switching method, an input method switching device, intelligent equipment and a storage medium, wherein the input method switching method comprises the following steps: acquiring application configuration information of a target application; determining a target input method corresponding to the target application based on the application configuration information of the target application; and determining the target input method as the current input method of the target application. According to the input method switching method, the corresponding input method is automatically switched by identifying the currently running application, so that the effect of automatic switching of the input method under different input scenes is realized, the input method switching efficiency and intelligence are improved, and the use experience of a user is improved.

Description

Input method switching method and device, intelligent equipment and storage medium
Technical Field
The present disclosure relates to the field of intelligent devices, and in particular, to an input method switching method, an input method switching apparatus, an intelligent device, and a storage medium.
Background
The input method is necessary tool software on intelligent equipment and is one of software with the highest use frequency. In the process of inputting information on the intelligent device by a user, the input method can be called as an input tool.
At present, the types of input methods on the market are more, and there are input methods with better character input, such as a dog searching input method; the voice input method has better experience, such as a message flight input method; the input method with the function of fighting drawings and good experience is provided, such as an octopus input method; in addition, the Japanese input method and the Korean input method have good input experience aiming at different languages.
When the user uses different application software, the user has different preferences for the input method. When the application software is used each time, the input method needs to be manually switched, and the user experience is poor.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides an input method switching method, apparatus, intelligent device and storage medium.
According to a first aspect of the embodiments of the present disclosure, an input method switching method is provided, which is applied to an intelligent device, and the input method switching method includes:
acquiring application configuration information of a target application;
determining a target input method corresponding to the target application based on the application configuration information of the target application;
and determining the target input method as the current input method of the target application.
Optionally, the determining a target input method corresponding to the target application based on the application configuration information of the target application includes:
acquiring a pre-stored configuration file, wherein the configuration file is used for representing the corresponding relation between the application configuration information and the input method configuration information of the target input method;
determining input method configuration information corresponding to the application configuration information according to the application configuration information and the configuration file;
and according to the input method configuration information, determining an input method corresponding to the input method configuration information as a target input method.
Optionally, the determining the target input method as the current input method of the target application includes:
and during the running of the target application, when the received input instruction information exists, determining the target input method as the current input method.
Optionally, the determining the target input method as the current input method of the target application includes:
acquiring input method configuration information of the target input method;
judging whether the input method configuration information of the target input method is consistent with the input method configuration information of a preset input method;
if not, switching to the target input method as the current input method.
Optionally, the determining the target input method as the current input method of the target application further includes:
and if the input method configuration information of the target input method is consistent with the input method configuration information of the preset input method, keeping the preset input method as the current input method.
Optionally, the switching to the target input method as the current input method includes:
and switching to the target input method by calling an input method switching interface.
Optionally, the method further comprises:
receiving input binding information, wherein the binding information is used for representing the corresponding relation between application configuration information of an application and input method configuration information of an input method;
and storing the binding information into a configuration file.
Optionally, the method further comprises:
monitoring foreground and background switching processes of the active interface, and determining the current active interface operated by the foreground;
and determining the target application according to the current active interface.
According to a second aspect of the embodiments of the present disclosure, there is provided an input method switching apparatus applied to an intelligent device, the input method switching apparatus including:
the acquisition module is used for acquiring application configuration information of the target application;
the determining module is used for determining a target input method corresponding to the target application based on the application configuration information of the target application;
the determining module is further configured to determine the target input method as a current input method of the target application.
Optionally, the determining module is specifically configured to:
acquiring a pre-stored configuration file, wherein the configuration file is used for representing the corresponding relation between the application configuration information and the input method configuration information of the target input method;
determining input method configuration information corresponding to the application configuration information according to the application configuration information and the configuration file;
and according to the input method configuration information, determining an input method corresponding to the input method configuration information as a target input method.
Optionally, the determining module is specifically configured to:
and during the running of the target application, when the received input instruction information exists, determining the target input method as the current input method.
Optionally, the determining module is specifically configured to:
acquiring input method configuration information of the target input method;
judging whether the input method configuration information of the target input method is consistent with the input method configuration information of a preset input method;
if not, switching to the target input method as the current input method.
Optionally, the determining module is further configured to:
and if the input method configuration information of the target input method is consistent with the input method configuration information of the preset input method, keeping the preset input method as the current input method.
Optionally, the determining module is specifically configured to:
and switching to the target input method by calling an input method switching interface.
Optionally, the input method switching apparatus further includes:
the device comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving input binding information, and the binding information is used for representing the corresponding relation between the application configuration information of the application and the input method configuration information of an input method;
and the storage module is used for storing the binding information to a configuration file.
Optionally, the determining module is further configured to:
monitoring foreground and background switching processes of the active interface, and determining the current active interface operated by the foreground;
and determining the target application according to the current active interface.
According to a third aspect of the embodiments of the present disclosure, there is provided a smart device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the input method switching method as described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a smart device, enable the smart device to perform the input method switching method as described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the corresponding input method is automatically switched by identifying the currently running application, so that the effect of automatic switching of the input method under different input scenes is realized, the input method switching efficiency and intelligence are improved, and the use experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating an input method switching method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an input method switching method according to an exemplary embodiment.
FIG. 2a is a schematic diagram of a configuration file shown in accordance with an exemplary embodiment.
Fig. 3 is a flowchart illustrating an input method switching method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating an input method switching method according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating an input method switching method according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an input method switching apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating an input method switching apparatus according to an exemplary embodiment.
FIG. 8 is a block diagram illustrating a smart device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
With the rapid development of economic globalization and network information, more and more Applications (APPs) are installed on smart devices. The user may enter Chinese while using some applications, while others may enter other languages (e.g., applications that learn foreign languages). That is, when a user uses different application programs, the user needs to switch the corresponding input method to better use the application program. In the related art, according to the use requirements of users, the users are usually required to manually switch the corresponding input methods, the switching process is time-consuming and labor-consuming, and the user experience is poor.
In addition, the user has different preferences for the input method in different input scenarios, so the user may choose to manually switch the input method in different scenarios. If the input method with the better fighting chart function needs to be switched to the chat interface, the input method with the better voice input method needs to be switched to the note book and the note interface, and the input method with the corresponding language needs to be switched to the use interface applied in some foreign countries. The frequent manual input method switching brings inconvenience to users, and reduces the use experience of the users.
The input method switching method can automatically switch the input methods corresponding to the application programs according to different application programs used in the current interface, efficiently helps a user to complete automatic switching of the input methods in different input scenes, does not need the user to manually switch the input methods, improves input method switching efficiency and improves use experience of the user.
In an exemplary embodiment, referring to fig. 1, an input method switching method is provided, where an application mentioned in this embodiment refers to an application program, that is, an APP in an intelligent mobile terminal such as a mobile phone and a tablet computer, or application software in a personal computer, and the like. The input method switching method comprises the following steps:
and S110, acquiring application configuration information of the target application.
The target applications include applications currently being used by the smart device in the foreground and applications to be switched to the foreground for running, for example, the current applications running in the background and the applications running in the foreground after being selected by the user in the process of selecting the applications by using the mobile phone.
The application configuration information refers to information for identifying the application. The application configuration information includes, for example, a name of an application, and an input method pre-associated with the application is determined according to the name of the application. The application configuration information includes, for example, a version of an application, and when a certain application of a plurality of versions is installed on the smart device, a different input method may be associated for each version. For example, the input method is a good input method for international edition WeChat association English input experience and a good input method for domestic edition WeChat association Chinese input experience, so that the requirements of users are better met, and the use experience is improved.
In one example, the application configuration information is a package name of the application. The package name is unique, one package name represents one application, and two applications are not allowed to use the same package name. The package name is mainly used for system identification applications and is hardly visible to the end user. Because each application in the intelligent equipment is matched with a corresponding package name, the package name is used as the application configuration information, other information for identifying the application does not need to be additionally set, and the setting of the application configuration information is facilitated.
And S120, determining a target input method corresponding to the target application based on the application configuration information of the target application.
The user can associate the preferred input method with each application configuration information, so that the target input method corresponding to the target application can be determined according to the application configuration information of the target application, and the input methods can be conveniently switched. For example, WeChat association A input method and notepad association B input method.
When the user switches to the target application, for example, switches to the WeChat, the WeChat is used as the target application, and the A input method is the target input method. When used to switch to a notepad, the B input method is the target input method.
And S130, determining the target input method as the current input method of the target application.
Wherein, regarding the time for determining the target input method as the current input method: when the target application is switched to the foreground, the target input method is determined as the current input method; or when the user performs input, determining the target input method as the current input method.
In another example, the target input method is determined as the current input method based on the received input instruction information. And switching the target application to the foreground, wherein the target application does not necessarily use the input method for input, and the user may browse only to avoid frequent switching of the input method, so that when the input instruction information is received, the target input method is determined as the current input method. For example, when the user switches the WeChat to the foreground, if the user does not have the requirement of inputting the content in the earlier stage, the input method does not need to be called; when the user has a demand for inputting contents, the A input method is determined as a target input method.
In the input method switching method, different input methods may be associated with each application, or input methods that are the same may be associated with a certain type of application, for example, chat applications such as QQ and wechat are associated with an a input method, and applications such as a notepad and WPS are associated with a B input method. Of course, the associated input method may be set for only part of the applications to better meet different requirements of users.
In an exemplary embodiment, referring to fig. 2, an input method switching method is provided, which is an improvement of step S120 in the input method switching method described above. Specifically, determining a target input method corresponding to a target application based on application configuration information of the target application includes:
s210, obtaining a pre-stored configuration file, wherein the configuration file is used for representing the corresponding relation between the application configuration information and the input method configuration information of the target input method.
The configuration file may be pre-stored in the intelligent device when the intelligent device leaves a factory, or may be added by a user at a later stage. The user can change the corresponding relation between the application configuration information in the configuration file and the input method configuration information of the target input method, so that the user can conveniently change the input method corresponding to the application in time according to the self requirement, and the use experience is improved.
Referring to fig. 2a, the corresponding relationship may be a mapping relationship, the configuration file may be a mapping relationship table, and the mapping relationship table includes a mapping relationship between the first application configuration information and the first input method configuration information, a mapping relationship between the second application configuration information and the second input method configuration information, a mapping relationship between the third application configuration information and the third input method configuration information, and a mapping relationship between the fourth application configuration information and the fourth input method configuration information.
S220, determining input method configuration information corresponding to the application configuration information according to the application configuration information and the configuration file.
The input method configuration information corresponding to the application configuration information is determined by inquiring the configuration file, such as sequential lookup, binary lookup, index lookup, tree table lookup or hash lookup.
In one example, the application configuration information is a package name of an application, the input method configuration information is a package name of an input method, and the package name of the application and the package name of the input method which is to be associated with the application are set up in a configuration file to be in a corresponding relationship. For example, a user sets a preferred input method for different applications, a list of correspondence between application configuration information for characterizing the applications and input method configuration information of the preferred input method is stored in a database, and a package name of each application and a package name of the preferred input method are also stored in the database. Because the package name is used for identifying the unique mark of the application, and each application in the intelligent equipment is automatically matched with one package name, the application and the corresponding input method can be conveniently and accurately associated, so that the input method configuration information corresponding to the application configuration information is determined quickly and accurately according to the application configuration information and the configuration file, and the use experience of a user is improved.
And S230, determining the input method corresponding to the input method configuration information as the target input method according to the input method configuration information.
The input method also belongs to an application, so the input method configuration information and the application configuration information can be the same in type. For example, the input method configuration information may include a name, version, package name, and the like of the input method. For setting of the configuration file conveniently, the application configuration information and the input method configuration information are of the same information type, and are package names, for example.
In an exemplary embodiment, referring to fig. 3, an input method switching method is provided, which is an improvement of step S130 in the above input method switching method. Specifically, determining a target input method as a current input method of a target application comprises the following steps:
and S310, acquiring input method configuration information of the target input method during the running period of the target application.
The running period of the target application here refers to the running period of the target application in the foreground. In this step, after the target input method is determined, the input method configuration information may be determined according to the target input method. The input method configuration information for determining the target input method (i.e., the input method configuration information determined in step S220) may also be directly used as the input method configuration information of the target input method.
In one example, a configuration file is prestored in the intelligent device, and the configuration file is used for representing the corresponding relationship between the application configuration information and the input method configuration information of the target input method. According to the application configuration information and the configuration file of the target application, the input method configuration information corresponding to the application configuration information is determined, meanwhile, the input method configuration information is determined to be the configuration information of the target input method, the input method configuration information does not need to be searched again from the intelligent equipment according to the target input method, the operation memory of the intelligent equipment is saved, the input method switching efficiency can be improved, and the user experience is improved.
S320, judging whether the input method configuration information of the target input method is consistent with the input method configuration information of the preset input method. If not, go to step S330; if yes, the process proceeds to step S340.
The preset input method refers to an input method being used in a system of the intelligent device before the target application is called into the foreground to run, and the input method can be an input method associated with the last foreground running application or an input method automatically running after the intelligent device is started. Each input method is provided with unique input method configuration information for identifying the input method. Therefore, whether the target input method is consistent with the preset input method can be judged according to whether the input method configuration information of the target input method is consistent with the input method configuration information of the preset input method. And determining whether to switch the input method according to the judgment result, for example, when the two methods are consistent, the input method does not need to be switched, so that the memory of the intelligent device is prevented from being occupied by closing and opening the same input method, and the use experience of a user is improved.
And S330, switching to the target input method as the current input method.
In one example, the input method corresponding to the WeChat is the A input method, the input method corresponding to the notepad is the B input method, when the foreground application of the user is switched from the notepad to the WeChat, the A input method is the target input method, the B input method is the preset input method, and the target input method (namely, the A input method) is switched as the current input method when the target input method is judged to be inconsistent with the preset input method because the input method configuration information of the A input method is inconsistent with the input method configuration information of the B input method.
And S340, keeping the preset input method as the current input method.
In one example, the input method corresponding to the WeChat is the A input method, the input method corresponding to the QQ is also the A input method, and when the foreground application of the user is switched from the QQ to the WeChat, in this case, the target input method and the preset input method are both the A input method, so that the target input method is determined to be consistent with the preset input method, and the preset input method (i.e., the A input method) is kept as the current input method.
In one exemplary embodiment, an input method switching method is provided, which is an improvement of step S330 in the above-described input method switching method. Specifically, the target input method is switched to by calling the input method switching interface. For example, when it is determined that the input method configuration information of the target input method is inconsistent with the input method configuration information of the preset input method, the input method is switched by calling the input method switching interface in the InputMethodManager, so that the target input method is displayed on a user operation interface (Activity interface) of a foreground, and therefore, the user is helped to efficiently complete the switching of the input method under different input requirements, and the use experience of the user is improved.
In an exemplary embodiment, referring to fig. 4, an input method switching method is provided, which is an improvement of the input method switching method, and specifically includes:
s410, receiving input binding information, wherein the binding information is used for representing the corresponding relation between the application configuration information of the application and the input method configuration information of the input method.
The preference input method of each user to the application is different, and in order to improve the use experience of the user, the user can automatically set the input method configuration information corresponding to the application configuration information by inputting the binding information, so that the user can associate the preferred input method with the application conveniently.
And S420, storing the binding information into a configuration file.
When the intelligent device leaves a factory, the input method configuration information may not be associated with the application configuration information of all the applications in the configuration file. Also, the preference input method for each user to the application is also different. In order to improve the use experience of the user, in this embodiment, the user can set the input method configuration information corresponding to the application configuration information by inputting the binding information, and then store the binding information in the configuration file, so that the user can associate a preferred input method for the application, and switch to the corresponding input method when the application is subsequently used.
Certainly, under different conditions, the user may have different preference input methods for the same application, so that the user can modify the input method configuration information corresponding to the application configuration information by modifying the binding information in order to change the input method corresponding to the application in time, and further modify the input method corresponding to the corresponding application, thereby further improving the user experience.
In addition, in order to avoid generating excessive redundant information in the configuration file, the user can delete unnecessary binding information from the configuration file, and the use experience of the user is further improved.
The binding information may be a name of the application and a name of the input method. In the binding process, multiple applications can be bound to one input method, for example, chat software such as WeChat and QQ is bound to the A input method. It is also possible to bind a plurality of input methods in one application, for example, a C input method related to graphics and a D input method related to text input are bound in a notebook.
In an exemplary embodiment, referring to fig. 5, there is provided an input method switching method which is an improvement of the above-described input method switching method. Specifically, the input method switching method comprises the following steps:
s510, monitoring a foreground and background switching process of an active interface, and determining a current active interface operated by a foreground;
and S520, determining the target application according to the current display interface.
When a user uses a certain application, the application necessarily belongs to an active interface running in the foreground, so that the target application can be determined by monitoring the foreground and background switching process of the active interface. The currently active interface is an interface currently running in the foreground, that is, an interface being operated by the user. After the current active interface is determined, the application corresponding to the current active interface can be determined as the target application. Generally, the foreground running application is unique, so that a unique target application can be determined, and a unique target input method corresponding to the target application can be further determined, so that the switching of the input methods can be completed smoothly and quickly.
In one example, the active interface may be an Activity interface (visual interface), a foreground-background switch of the Activity interface is monitored in a system process of the smart device, and when a certain visual interface is found to be switched to the foreground, an application running in the visual interface is determined as a target application. And then determining a preference input method (target input method) set by a user of the target application according to the application configuration information of the target application and a pre-stored configuration file. If the determined target input method is the same as the preset input method currently being used in the system, no operation is required. If the input method is different from the preset input method used in the current system, an input method switching interface in the InputMethodManager needs to be called to switch the input method, and the target input method is switched to the current input method. Therefore, the user is helped to complete the switching of the input method under different input scenes, and the use experience of the user is improved.
In an exemplary embodiment, referring to fig. 1 and 6, an input method switching apparatus is provided, which is applied to an intelligent device, and includes an acquisition module 101 and a determination module 102, which are electrically connected. The input method switching device in this embodiment is used to implement steps S110 to S130 of the above input method switching method, and in the implementation process, specifically:
an obtaining module 101, configured to obtain application configuration information of a target application;
the determining module 102 is configured to determine a target input method corresponding to a target application based on application configuration information of the target application;
the determining module 102 is further configured to determine the target input method as the current input method of the target application.
In an exemplary embodiment, referring to fig. 2 and 6, an input method switching apparatus is provided, which is an improvement on the input method switching apparatus, and is used for implementing steps S210 to S230 in the input method switching method, in the implementation process, specifically:
the determining module 102 is specifically configured to:
acquiring a pre-stored configuration file, wherein the configuration file is used for representing the corresponding relation between the application configuration information and the input method configuration information of the target input method;
determining input method configuration information corresponding to the application configuration information according to the application configuration information and the configuration file;
and determining the input method corresponding to the input method configuration information as a target input method according to the input method configuration information.
In an exemplary embodiment, an input method switching apparatus is provided, which is an improvement on the above input method switching apparatus, and is used for implementing the above input method switching method, and in the implementation process, specifically:
the determining module 102 is specifically configured to determine, during running of the target application, when the received input instruction information is received, the target input method as the current input method.
In an exemplary embodiment, referring to fig. 3 and 6, an input method switching apparatus is provided, which is an improvement on the input method switching apparatus, and is used to implement steps S310 to S340 in the input method switching method, in an implementation process, specifically, the determining module 102 is specifically configured to:
acquiring input method configuration information of a target input method;
judging whether the input method configuration information of the target input method is consistent with the input method configuration information of the preset input method;
if not, switching to a target input method as a current input method;
and if the input method configuration information of the target input method is consistent with the input method configuration information of the preset input method, keeping the preset input method as the current input method.
In an exemplary embodiment, an input method switching apparatus is provided, which is an improvement on the above input method switching apparatus, and is configured to implement the above input method switching method, and in an implementation process, specifically, the determining module 102 is further configured to switch to a target input method by invoking an input method switching interface.
In an exemplary embodiment, referring to fig. 4 and 7, an input method switching apparatus is provided, which is an improvement on the input method switching apparatus, and the input method switching apparatus further includes a receiving module 103 and a storing module 104, configured to implement steps S410 to S420 in the input method switching method, and in the implementation process, specifically:
the receiving module 103 is configured to receive input binding information, where the binding information is used to represent a corresponding relationship between application configuration information of an application and input method configuration information of an input method;
and the storage module 104 is used for storing the binding information into the configuration file.
In an exemplary embodiment, referring to fig. 5 and 6, an input method switching apparatus is provided, which is an improvement on the input method switching apparatus, and is configured to implement steps S510 to S520 in the input method switching method, in the implementation process, the determining module 102 is specifically configured to:
monitoring foreground and background switching processes of the active interface, and determining the current active interface operated by the foreground;
and determining the target application according to the current active interface.
In an exemplary embodiment, illustrated with reference to fig. 8, a smart device 400 is provided, for example, the smart device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Terminal device 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the device 400. Examples of such data include instructions for any application or method operating on device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 406 provide power to the various components of device 400. Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal device 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the terminal device 400. For example, sensor component 414 can detect an open/closed state of terminal device 400, the relative positioning of components, such as a display and keypad of terminal device 400, the sensor component 414 can also detect a change in the position of device 400 or a component of terminal device 400, the presence or absence of user contact with device 400, orientation or acceleration/deceleration of device 400, and a change in the temperature of device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the device 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The instructions in the storage medium, when executed by the processor of the terminal device, enable the smart device to perform the input method switching method shown in the above-described embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (18)

1. An input method switching method is applied to intelligent equipment and is characterized by comprising the following steps:
acquiring application configuration information of a target application;
determining a target input method corresponding to the target application based on the application configuration information of the target application;
and determining the target input method as the current input method of the target application.
2. The input method switching method according to claim 1, wherein the determining the target input method corresponding to the target application based on the application configuration information of the target application includes:
acquiring a pre-stored configuration file, wherein the configuration file is used for representing the corresponding relation between the application configuration information and the input method configuration information of the target input method;
determining input method configuration information corresponding to the application configuration information according to the application configuration information and the configuration file;
and according to the input method configuration information, determining an input method corresponding to the input method configuration information as a target input method.
3. The input method switching method according to claim 1, wherein the determining the target input method as the current input method of the target application comprises:
and during the running of the target application, when input instruction information is received, determining the target input method as the current input method.
4. The input method switching method according to claim 1, wherein the determining the target input method as the current input method of the target application comprises:
acquiring input method configuration information of the target input method;
judging whether the input method configuration information of the target input method is consistent with the input method configuration information of a preset input method;
if not, switching to the target input method as the current input method.
5. The input method switching method according to claim 4, wherein the determining the target input method as the current input method of the target application further comprises:
and if the input method configuration information of the target input method is consistent with the input method configuration information of the preset input method, keeping the preset input method as the current input method.
6. The input method switching method according to claim 4, wherein the switching to the target input method as the current input method includes:
and switching to the target input method by calling an input method switching interface.
7. The input method switching method according to claim 1, further comprising:
receiving input binding information, wherein the binding information is used for representing the corresponding relation between application configuration information of an application and input method configuration information of an input method;
and storing the binding information into a configuration file.
8. The input method switching method according to claim 1, further comprising:
monitoring foreground and background switching processes of the active interface, and determining the current active interface operated by the foreground;
and determining the target application according to the current active interface.
9. An input method switching device is applied to intelligent equipment and is characterized by comprising the following steps:
the acquisition module is used for acquiring application configuration information of the target application;
the determining module is used for determining a target input method corresponding to the target application based on the application configuration information of the target application;
the determining module is further configured to determine the target input method as a current input method of the target application.
10. The input method switching device according to claim 9, wherein the determining module is specifically configured to:
acquiring a pre-stored configuration file, wherein the configuration file is used for representing the corresponding relation between the application configuration information and the input method configuration information of the target input method;
determining input method configuration information corresponding to the application configuration information according to the application configuration information and the configuration file;
and according to the input method configuration information, determining an input method corresponding to the input method configuration information as a target input method.
11. The input method switching device according to claim 9, wherein the determining module is specifically configured to:
and during the running of the target application, when the received input instruction information exists, determining the target input method as the current input method.
12. The input method switching device according to claim 9, wherein the determining module is specifically configured to:
acquiring input method configuration information of the target input method;
judging whether the input method configuration information of the target input method is consistent with the input method configuration information of a preset input method;
if not, switching to the target input method as the current input method.
13. The input method switching apparatus of claim 12, wherein the determining module is further configured to:
and if the input method configuration information of the target input method is consistent with the input method configuration information of the preset input method, keeping the preset input method as the current input method.
14. The input method switching device according to claim 12, wherein the determining module is specifically configured to:
and switching to the target input method by calling an input method switching interface.
15. The input method switching apparatus according to claim 9, further comprising:
the device comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving input binding information, and the binding information is used for representing the corresponding relation between the application configuration information of the application and the input method configuration information of an input method;
and the storage module is used for storing the binding information to a configuration file.
16. The input method switching apparatus of claim 9, wherein the determining module is further configured to:
monitoring foreground and background switching processes of the active interface, and determining the current active interface operated by the foreground;
and determining the target application according to the current active interface.
17. A smart device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the input method switching method of any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a smart device, enable the smart device to perform the input method switching method of any one of claims 1 to 8.
CN202110103658.5A 2021-01-26 2021-01-26 Input method switching method and device, intelligent equipment and storage medium Pending CN112764552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110103658.5A CN112764552A (en) 2021-01-26 2021-01-26 Input method switching method and device, intelligent equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110103658.5A CN112764552A (en) 2021-01-26 2021-01-26 Input method switching method and device, intelligent equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112764552A true CN112764552A (en) 2021-05-07

Family

ID=75707439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110103658.5A Pending CN112764552A (en) 2021-01-26 2021-01-26 Input method switching method and device, intelligent equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112764552A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895631A (en) * 2010-07-09 2010-11-24 深圳市五巨科技有限公司 Method, device and system for intelligently switching input method by mobile terminal
CN102375746A (en) * 2010-08-11 2012-03-14 腾讯科技(深圳)有限公司 Method and device for enabling input method to self-adapt to application program
CN103488307A (en) * 2013-09-23 2014-01-01 宇龙计算机通信科技(深圳)有限公司 Input method adjusting method and system and mobile terminal
CN105159472A (en) * 2015-06-30 2015-12-16 小米科技有限责任公司 Input method switching method and device
CN105589575A (en) * 2015-12-28 2016-05-18 小米科技有限责任公司 Input method invoking method and device
CN106598269A (en) * 2016-12-15 2017-04-26 北京小米移动软件有限公司 Input method switching method and apparatus
CN106774976A (en) * 2016-12-01 2017-05-31 北京小米移动软件有限公司 input method switching method and device
CN107300986A (en) * 2017-06-30 2017-10-27 联想(北京)有限公司 Input method switching method and device
CN107957789A (en) * 2017-11-29 2018-04-24 维沃移动通信有限公司 A kind of text entry method and mobile terminal
CN108762876A (en) * 2018-05-31 2018-11-06 努比亚技术有限公司 A kind of input method switching method, mobile terminal and computer storage media

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895631A (en) * 2010-07-09 2010-11-24 深圳市五巨科技有限公司 Method, device and system for intelligently switching input method by mobile terminal
CN102375746A (en) * 2010-08-11 2012-03-14 腾讯科技(深圳)有限公司 Method and device for enabling input method to self-adapt to application program
CN103488307A (en) * 2013-09-23 2014-01-01 宇龙计算机通信科技(深圳)有限公司 Input method adjusting method and system and mobile terminal
CN105159472A (en) * 2015-06-30 2015-12-16 小米科技有限责任公司 Input method switching method and device
CN105589575A (en) * 2015-12-28 2016-05-18 小米科技有限责任公司 Input method invoking method and device
CN106774976A (en) * 2016-12-01 2017-05-31 北京小米移动软件有限公司 input method switching method and device
CN106598269A (en) * 2016-12-15 2017-04-26 北京小米移动软件有限公司 Input method switching method and apparatus
CN107300986A (en) * 2017-06-30 2017-10-27 联想(北京)有限公司 Input method switching method and device
CN107957789A (en) * 2017-11-29 2018-04-24 维沃移动通信有限公司 A kind of text entry method and mobile terminal
CN108762876A (en) * 2018-05-31 2018-11-06 努比亚技术有限公司 A kind of input method switching method, mobile terminal and computer storage media

Similar Documents

Publication Publication Date Title
CN110231901B (en) Application interface display method and device
CN109324846B (en) Application display method and device and storage medium
CN106126025B (en) Interactive method and device for copying and pasting
CN105808305B (en) Static resource loading method and device
CN108011990B (en) Contact management method and device
CN107463372B (en) Data-driven page updating method and device
CN108803892B (en) Method and device for calling third party application program in input method
CN108270661B (en) Information reply method, device and equipment
CN104951522B (en) Method and device for searching
CN112068764B (en) Language switching method and device for language switching
CN107179837B (en) Input method and device
CN112882779A (en) Lock screen display control method and device, mobile terminal and storage medium
CN106506808B (en) Method and device for prompting communication message
CN112148148A (en) Touch operation identification method and device, mobile terminal and storage medium
CN112363786A (en) Advertisement picture processing method and device, electronic equipment and storage medium
CN105827854B (en) Operation processing method and device
CN111667827B (en) Voice control method and device for application program and storage medium
CN112764552A (en) Input method switching method and device, intelligent equipment and storage medium
CN106773753B (en) Equipment control method and device
CN112581102A (en) Task management method and device, electronic equipment and storage medium
CN106843860B (en) Method, device and system for adjusting display style of search box
CN108469913B (en) Method, apparatus and storage medium for modifying input information
CN112328411A (en) Information input method, device, terminal and storage medium
CN112083841A (en) Information input method, device and storage medium
CN109885374B (en) Interface display processing method and device, mobile terminal and storage medium

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