WO2016188227A1 - Intelligent terminal shortcut establishment method and device - Google Patents

Intelligent terminal shortcut establishment method and device Download PDF

Info

Publication number
WO2016188227A1
WO2016188227A1 PCT/CN2016/078327 CN2016078327W WO2016188227A1 WO 2016188227 A1 WO2016188227 A1 WO 2016188227A1 CN 2016078327 W CN2016078327 W CN 2016078327W WO 2016188227 A1 WO2016188227 A1 WO 2016188227A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
shortcut
operation record
user
list
Prior art date
Application number
PCT/CN2016/078327
Other languages
French (fr)
Chinese (zh)
Inventor
石远
王龙云
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016188227A1 publication Critical patent/WO2016188227A1/en

Links

Images

Classifications

    • 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
    • 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

Definitions

  • This document relates to, but is not limited to, the field of mobile communications, and in particular relates to a method and device for establishing a shortcut of a smart terminal.
  • the embodiment of the invention provides a method and a device for establishing a shortcut of an intelligent terminal, which can solve the problem that the function of the intelligent terminal is too complicated, and some users can only use the smart terminal for simple operation.
  • the embodiment of the invention adopts the following scheme.
  • a method for establishing a shortcut of a smart terminal comprising:
  • a shortcut corresponding to the operation record of the application is generated and stored.
  • the generating and storing the shortcut corresponding to the operation record of the application is further included include:
  • the generating and storing the shortcut corresponding to the operation record of the application includes:
  • the icon of the shortcut is set to a user-specified location.
  • the obtaining the application information list includes:
  • the initiating the application, generating an operation record according to a user operation on the application, and saving the operation record to the path file includes:
  • the application is automatically launched, and an event listener of the UIAutomator framework is started, by which the user's operation on the application is captured, an operation record is generated, and the operation record is saved in the path file.
  • a smart terminal shortcut establishing device is disposed on the smart terminal, and the device includes:
  • An application selection module configured to obtain a list of application information, and determine, from the list of application information, an application that needs to set a shortcut;
  • a path setting module configured to start the application, generate an operation record according to a user operation of the application, and save the operation record to a path file;
  • a storage display module is configured to generate and store a shortcut corresponding to an operation record of the application.
  • the device further includes:
  • the execution control module is configured to: in response to the triggering of the shortcut by the user, load a path file in which the operation record corresponding to the shortcut is located, and perform operation records in the path file Parsing, parsing the operation record into an executable operation code, and sequentially executing the operation code.
  • the storage display module generates and stores a shortcut corresponding to the operation record of the application, including:
  • the storage display module generates an icon of a shortcut corresponding to the operation record of the application according to the picture selected by the user and the set picture name;
  • the storage display module sets an icon of the shortcut to a user-specified location.
  • the obtaining, by the application selection module, the application information list includes:
  • the application selection module acquires a list of application information by installing an object of the package management class PackageManager.
  • the path setting module starts the application, generates an operation record according to a user operation of the application, and saves the operation record to a path file:
  • the path setting module automatically starts the application, and starts an event listener of the UIAutomator framework, captures a user operation of the application by the listener, generates an operation record, and saves the operation record to a path file. in.
  • a computer readable storage medium storing computer executable instructions for performing the above method.
  • the operation record is saved to the path file and the corresponding shortcut is established, which solves the problem that the intelligent terminal function is too complicated in the related art, and some users can only use the smart terminal for simple operation, which is more convenient for the user to operate. , improve the user experience.
  • FIG. 1 is a flowchart of a method for establishing a shortcut of a smart terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a user interface and a background process generated by a shortcut in the embodiment of the present invention
  • FIG. 3 is a flowchart of a shortcut generation method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for establishing a shortcut of a smart terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a method and a device for establishing a shortcut of a smart terminal, which can solve the problem that the function of the smart terminal is too complicated, and some users can only use the smart terminal for simple operation.
  • FIG. 1 is a flowchart of a method for establishing a shortcut of an intelligent terminal according to an embodiment of the present invention. As shown in FIG. The following steps 101 to 103 are included:
  • Step 101 Obtain an application information list, and determine, from the application information list, an application that needs to set a shortcut;
  • Step 102 Start an application, generate an operation record according to a user operation on the application, and save the operation record to the path file;
  • Step 103 Generate and store a shortcut corresponding to the operation record of the application.
  • the steps 101-103 may be implemented by, but not limited to, the smart terminal or a device or an application disposed in the smart terminal.
  • the step 103 includes the following steps: generating and storing an icon of a shortcut corresponding to the operation record of the application according to the picture selected by the user and the set picture name; setting the icon of the shortcut to the user specified position.
  • the method further includes: in response to the triggering of the shortcut by the user, loading a path file of the operation record corresponding to the shortcut, parsing the operation record in the path file, and parsing the operation record Execute the operation in order for the executable operation code Code.
  • step 101 acquires an application information list by installing an object of the package management class PackageManager; in step 102, when the path setting is performed, the application is automatically started, and the UIAutomator framework is started.
  • the event listener captures the user's operation on the application through the listener, generates an operation record, and saves the operation record to the path file.
  • the current shortcut keys or shortcuts for mobile phones generally refer to multi-function hardware buttons, or create a quick start icon of an APP on the desktop of an Android mobile phone.
  • the shortcuts described in the embodiments of the present invention are quite different from these conventional shortcut keys/shortcuts.
  • the embodiment of the present invention aims to implement a shortcut to a specific operation, for example, by editing a shortcut background action, and implementing a button for a person to make a video call through WeChat.
  • Android system provides us with a PackageManager management class, its main responsibility is to manage the application package, through which you can get application information.
  • the technical solution of the embodiment of the present invention firstly obtains an object of the android.content.pm.PackageManager class by calling the android.content.ContextWrapper.getPackageManager() method, and the object can obtain a list of all installed application information in the terminal. This information includes the application icon, name, version number, and package name. The user selects the application for which the shortcut is to be set from the application information list.
  • UIAutomator is an Android UI automated testing framework provided by Google that can be used to simulate user UI operations. It can also monitor user UI operation events. So you can use the UIAutomator framework to complete the setup and record the actions the user wants to set the shortcut.
  • the path setting is started, the user-selected application is automatically started, and the event listener of the UIAutomator framework is started. Then all the operations performed by the user on the application will be captured by the event listener and the information will be captured. (ie the operation record) is stored in the path file until the end of the path setting.
  • the technical solution of the embodiment of the present invention allows a user to generate a personalized shortcut.
  • the icon is the name of the image that the user selects as the icon, without the suffix.
  • the location of the user-selected shortcut If the desktop is selected, the broadcast of com.android.launcher.action.INSTALL_SHORTCUT is sent to the desktop application (launcher). If the application is selected, the shortcut is put into the application. Displayed in the shortcut list.
  • the path file is first loaded, then the operation record in the path file is parsed, the original events record is converted into the operation code executable by the UIAutomator framework, and finally the operation code is executed in sequence. (According to the user's operation sequence when creating a shortcut), it is equivalent to the user operation captured during the execution of the setup shortcut, so that the user-set operation can be completed with one click, and the effect of the shortcut operation is realized.
  • the following takes the WeChat video call on the mobile phone as an example to describe the process of generating the shortcut.
  • the first application in this example is to implement the above steps 101-103, and to respond to the shortcut triggered by the user according to steps 101-103. application.
  • FIG. 2 is a schematic diagram of a user interface and a background process when the shortcut is generated in this example.
  • an operation program entry such as an icon on the mobile phone interface, named “and daughter video”; After the user clicks on the icon, the background process is:
  • FIG. 3 is a flowchart of the shortcut generation in this example. As shown in FIG. 3, the following steps S301-310 are included:
  • Step S301 Start the first application
  • Step S302 After entering the first application, a list of applications is selected, and the applications are all installed applications of the machine, and WeChat is selected;
  • Step S303 Select to start setting the path
  • Step S304 WeChat is automatically started
  • Step S305 In the interface of the WeChat, look for the contact named "Daughter";
  • Step S306 Initiating a video call to a contact named "daughter";
  • Step S307 End setting path operation
  • Step S308 Select a save path setting, such as saving to a desktop
  • Step S309 Select an icon for setting a shortcut, the application will list all available pictures in the machine, and the user selects a picture that he likes as an icon of the shortcut;
  • Step S310 Save the shortcut as "video call with daughter".
  • Step S401 returning to the mobile phone desktop
  • Step S402 Find a shortcut of "video call with the daughter" and start it;
  • Step S403 The first application obtains the path set by the user according to the shortcut mode of “and daughter video call”, and performs the following operations after the parsing: start WeChat, find the contact named “Daughter”, and start the video. call;
  • Step S404 after the video call ends, the user may choose to exit the shortcut mode
  • Step S405 Exit the WeChat application.
  • the prior art is that the intelligent terminal function is too complicated, and some users can only use the smart terminal.
  • the problem of simple operation is more convenient for the user's operation and improves the user's experience.
  • FIG. 5 is a schematic structural diagram of a smart terminal shortcut establishing apparatus according to an embodiment of the present invention.
  • the terminal shortcut setting device includes an application selection module 50, a path setting module 52, and a storage display module 54, and each module of the embodiment of the present invention is described in detail below.
  • the application selection module 50 is configured to obtain an application information list, and determine, from the application information list, an application that needs to set a shortcut; the application selection module 50 acquires an application information list, where the smart terminal is an Android system. In the case of obtaining an application information list by installing an object of the package management class PackageManager;
  • the path setting module 52 is configured to start the application, generate an operation record according to a user operation of the application, and save the operation record to a path file; the path setting module 52 starts the application, And generating the operation record according to the operation of the application by the user, and saving the operation record to the path file includes: when the smart terminal is an Android system, when the path setting is performed, the application is automatically started, And an event listener of the UIAutomator framework is started, the user's operation on the application is captured by the listener, an operation record is generated, and the operation record is saved in the path file.
  • the storage display module 54 is configured to generate and store a shortcut corresponding to the operation record of the application.
  • the storing and displaying the shortcut corresponding to the operation record of the application includes: generating, according to the picture selected by the user and the set picture name, an icon of a shortcut corresponding to the operation record of the application; The icon of the shortcut is set to a user-specified location.
  • the foregoing apparatus may further include:
  • the execution control module is configured to: in response to the triggering of the shortcut by the user, load a path file in which the operation record corresponding to the shortcut is located, parse the operation record in the path file, and parse the operation record into The operation code that can be executed, and the operation code is executed in sequence.
  • the device in the embodiment of the present invention mainly includes an application selection module 50, a path setting module 52, an execution control module, and a storage display module 54.
  • the Android system provides a PackageManager management class whose main responsibility is to manage the application package, through which the application information can be obtained.
  • the application selection module 50 first calls the android.content.ContextWrapper.getPackageManager() method to obtain an object of the android.content.pm.PackageManager class, through which the list of all installed application information in the machine can be obtained, including: Application icon, name, version The number and the package name, etc., the user selects an application to set a shortcut from the application information list.
  • UIAutomator is an Android UI automated testing framework provided by Google that can be used to simulate user UI operations. It can also monitor user UI operation events.
  • the path setting module 52 uses the UIAutomator framework to complete the setting and record the operation that the user wants to set the shortcut.
  • the path setting is started, the user-selected application is automatically started, and the event listener of the UIAutomator framework is started. Then all the operations performed by the user on the application will be captured by the event listener and the information will be captured. Stored in the path file until the end of the path settings.
  • the execution control module is responsible for implementing the shortcut function. After the user clicks the shortcut icon, the execution control module first loads the path file, then parses the operation record in the path file, converts the original events record into an operation code executable by the UIAutomator framework, and finally executes the operation code in sequence (according to When the shortcut is established, the user's operation sequence is equivalent to the user operation captured when the shortcut is created, so that the user-set operation can be completed with one click, and the effect of the shortcut operation is realized.
  • the storage display module 54 allows the user to generate personalized shortcuts.
  • the location of the user-selected shortcut if the desktop is selected, the broadcast of com.android.launcher.action.INSTALL_SHORTCUT is sent to the desktop application (launch), and if the first application is selected, the shortcut is sent (put) Displayed in the shortcut list of the first application.
  • the prior art is that the intelligent terminal function is too complicated, and some users can only use the smart terminal.
  • the problem of simple operation is more convenient for the user's operation and improves the user's experience.
  • the embodiment of the invention further provides a computer readable storage medium, which stores a computer executable finger
  • the computer executable instructions are used to execute the smart terminal shortcut establishing method described above.
  • modules in the client in the embodiment can be adaptively changed and placed in one or more clients different from the embodiment.
  • the modules in the embodiments can be combined into one module, and further they can be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the client are combined.
  • Each feature disclosed in this specification may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the operation record is saved to the path file and the corresponding shortcut is established, which solves the problem that the intelligent terminal function is too complicated in the related art, and some users can only use the smart terminal for simple operation, which is more convenient for the user to operate. , improve the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

An intelligent terminal shortcut establishment method and device. The method comprises: acquiring an application program information list, and determining, from the application program information list, an application program of which a shortcut needs to be set; starting the application program, generating an operation record according to an operation on the application program performed by a user, and saving the operation record in a path file; and generating and storing a shortcut corresponding to the operation record of the application program.

Description

智能终端快捷方式建立方法及装置Intelligent terminal shortcut establishing method and device 技术领域Technical field
本文涉及但不限于移动通讯领域,特别涉及一种智能终端快捷方式建立方法及装置。This document relates to, but is not limited to, the field of mobile communications, and in particular relates to a method and device for establishing a shortcut of a smart terminal.
背景技术Background technique
近年来,移动通讯和智能终端产业发展迅猛,特别是Android(安卓)智能手机,在人们日常生活中使用越来越普遍,为使用者的日常生活带来很多便利。但是目前存在的一个问题是,很多年龄大的使用者,刚习惯使用功能机,对新兴的智能手机不能很好的接受。他们往往不具有汉语拼音能力,智能手机对他们来讲操作过于复杂。这部分使用者只能做简单的手机操作,如拨打和接听电话等。In recent years, the mobile communication and smart terminal industries have developed rapidly, especially Android (Android) smart phones, which are more and more popular in people's daily life, bringing a lot of convenience to users' daily life. However, one problem that exists at present is that many older users, who are accustomed to using functional machines, are not well accepted for emerging smartphones. They often don't have the Chinese pinyin ability, and the smartphone is too complicated for them. This part of the user can only do simple mobile phone operations, such as making and receiving calls.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种智能终端快捷方式建立方法及装置,能够解决智能终端功能过于复杂,一部分用户只能使用智能终端进行简单操作的问题。The embodiment of the invention provides a method and a device for establishing a shortcut of an intelligent terminal, which can solve the problem that the function of the intelligent terminal is too complicated, and some users can only use the smart terminal for simple operation.
本发明实施例采用如下方案。The embodiment of the invention adopts the following scheme.
一种智能终端快捷方式建立方法,包括:A method for establishing a shortcut of a smart terminal, comprising:
获取应用程序信息列表,从所述应用程序信息列表中确定需要设置快捷方式的应用程序;Obtaining a list of application information, and determining an application that needs to set a shortcut from the list of application information;
启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中;Launching the application, generating an operation record according to a user operation of the application, and saving the operation record to a path file;
生成并存储与所述应用程序的操作记录对应的快捷方式。A shortcut corresponding to the operation record of the application is generated and stored.
可选地,所述生成并存储与应用程序的操作记录对应的快捷方式后还包 括:Optionally, the generating and storing the shortcut corresponding to the operation record of the application is further included include:
响应于用户对所述快捷方式的触发,加载所述快捷方式对应的操作记录所在的路径文件,对所述路径文件中的操作记录进行解析,将所述操作记录解析为能执行的操作代码,依次执行所述操作代码。And responding to the triggering of the shortcut by the user, loading a path file of the operation record corresponding to the shortcut, parsing the operation record in the path file, and parsing the operation record into an executable operation code, The operation code is executed in sequence.
可选地,所述生成并存储与所述应用程序的操作记录对应的快捷方式包括:Optionally, the generating and storing the shortcut corresponding to the operation record of the application includes:
根据用户选择的图片和设置的图片名称,生成并存储与所述应用程序的操作记录对应的快捷方式的图标;Generating and storing an icon of a shortcut corresponding to the operation record of the application according to the picture selected by the user and the set picture name;
将所述快捷方式的图标设置于用户指定位置。The icon of the shortcut is set to a user-specified location.
可选地,所述获取应用程序信息列表包括:Optionally, the obtaining the application information list includes:
通过安装包管理类PackageManager的对象获取应用程序信息列表。Obtain a list of application information by installing the object of the package management class PackageManager.
可选地,所述启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中包括:Optionally, the initiating the application, generating an operation record according to a user operation on the application, and saving the operation record to the path file includes:
自动启动所述应用程序,并启动UIAutomator框架的事件监听程序,通过所述监听程序捕获用户对所述应用程序的操作,生成操作记录,并将所述操作记录保存到路径文件中。The application is automatically launched, and an event listener of the UIAutomator framework is started, by which the user's operation on the application is captured, an operation record is generated, and the operation record is saved in the path file.
一种智能终端快捷方式建立装置,设置于智能终端,所述装置包括:A smart terminal shortcut establishing device is disposed on the smart terminal, and the device includes:
应用选择模块,设置成获取应用程序信息列表,从所述应用程序信息列表中确定需要设置快捷方式的应用程序;An application selection module configured to obtain a list of application information, and determine, from the list of application information, an application that needs to set a shortcut;
路径设置模块,设置成启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中;a path setting module, configured to start the application, generate an operation record according to a user operation of the application, and save the operation record to a path file;
存储显示模块,设置成生成并存储与所述应用程序的操作记录对应的快捷方式。A storage display module is configured to generate and store a shortcut corresponding to an operation record of the application.
可选地,所述的装置还包括:Optionally, the device further includes:
执行控制模块,设置成响应于用户对所述快捷方式的触发,加载所述快捷方式对应的操作记录所在的路径文件,对所述路径文件中的操作记录进行 解析,将所述操作记录解析为能执行的操作代码,依次执行所述操作代码。The execution control module is configured to: in response to the triggering of the shortcut by the user, load a path file in which the operation record corresponding to the shortcut is located, and perform operation records in the path file Parsing, parsing the operation record into an executable operation code, and sequentially executing the operation code.
可选地,所述存储显示模块生成并存储与所述应用程序的操作记录对应的快捷方式包括:Optionally, the storage display module generates and stores a shortcut corresponding to the operation record of the application, including:
所述存储显示模块根据用户选择的图片和设置的图片名称,生成与所述应用程序的操作记录对应的快捷方式的图标;The storage display module generates an icon of a shortcut corresponding to the operation record of the application according to the picture selected by the user and the set picture name;
所述存储显示模块将所述快捷方式的图标设置于用户指定位置。The storage display module sets an icon of the shortcut to a user-specified location.
可选地,所述应用选择模块获取应用程序信息列表包括:Optionally, the obtaining, by the application selection module, the application information list includes:
所述应用选择模块通过安装包管理类PackageManager的对象获取应用程序信息列表。The application selection module acquires a list of application information by installing an object of the package management class PackageManager.
可选地,所述路径设置模块启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中:Optionally, the path setting module starts the application, generates an operation record according to a user operation of the application, and saves the operation record to a path file:
所述路径设置模块自动启动所述应用程序,并启动UIAutomator框架的事件监听程序,通过所述监听程序捕获用户对所述应用程序的操作,生成操作记录,并将所述操作记录保存到路径文件中。The path setting module automatically starts the application, and starts an event listener of the UIAutomator framework, captures a user operation of the application by the listener, generates an operation record, and saves the operation record to a path file. in.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。A computer readable storage medium storing computer executable instructions for performing the above method.
本发明实施例通过将操作记录保存到路径文件并建立相应的快捷方式,解决了相关技术中由于智能终端功能过于复杂,一部分用户只能使用智能终端进行简单操作的问题,能够更加方便用户的操作,提高了用户的使用感受。In the embodiment of the present invention, the operation record is saved to the path file and the corresponding shortcut is established, which solves the problem that the intelligent terminal function is too complicated in the related art, and some users can only use the smart terminal for simple operation, which is more convenient for the user to operate. , improve the user experience.
在阅读并理解了附图和详细描述后,可以明白其它方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是本发明实施例的智能终端快捷方式建立方法的流程图;1 is a flowchart of a method for establishing a shortcut of a smart terminal according to an embodiment of the present invention;
图2是本发明实施例的快捷方式生成的用户界面和后台流程的示意图;2 is a schematic diagram of a user interface and a background process generated by a shortcut in the embodiment of the present invention;
图3是本发明实施例的快捷方式生成的流程图;3 is a flowchart of a shortcut generation method according to an embodiment of the present invention;
图4是本发明实施例的快捷方式运行的流程图; 4 is a flowchart of a shortcut operation of an embodiment of the present invention;
图5是本发明实施例的智能终端快捷方式建立装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for establishing a shortcut of a smart terminal according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下面将参照附图更详细地描述本申请的示例性实施例。虽然附图中显示了本申请的示例性实施例,然而应当理解,可以以多种形式实现本申请而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本申请,并且能够将本申请的范围完整的传达给本领域的技术人员。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While the exemplary embodiments of the present invention are shown in the drawings, it is understood that the invention may be embodied in a variety of forms and is not limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be more fully understood, and the scope of the application can be fully conveyed to those skilled in the art. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
本发明实施例提供了一种智能终端快捷方式建立方法及装置,能够解决智能终端功能过于复杂,一部分用户只能使用智能终端进行简单操作的问题。The embodiment of the invention provides a method and a device for establishing a shortcut of a smart terminal, which can solve the problem that the function of the smart terminal is too complicated, and some users can only use the smart terminal for simple operation.
方法实施例Method embodiment
本发明实施例提供了一种智能终端快捷方式建立方法,图1是本发明实施例的智能终端快捷方式建立方法的流程图,如图1所示,本发明实施例的智能终端快捷方式建立方法包括如下步骤101~103:The embodiment of the present invention provides a method for establishing a shortcut of a smart terminal, and FIG. 1 is a flowchart of a method for establishing a shortcut of an intelligent terminal according to an embodiment of the present invention. As shown in FIG. The following steps 101 to 103 are included:
步骤101,获取应用程序信息列表,从应用程序信息列表中确定需要设置快捷方式的应用程序;Step 101: Obtain an application information list, and determine, from the application information list, an application that needs to set a shortcut;
步骤102,启动应用程序,根据用户对应用程序的操作生成操作记录,并将操作记录保存到路径文件中;Step 102: Start an application, generate an operation record according to a user operation on the application, and save the operation record to the path file;
步骤103,生成并存储与应用程序的操作记录对应的快捷方式。Step 103: Generate and store a shortcut corresponding to the operation record of the application.
所述步骤101~103可以但不限于由所述智能终端、或设置于智能终端中的装置或应用实施。The steps 101-103 may be implemented by, but not limited to, the smart terminal or a device or an application disposed in the smart terminal.
可选地,步骤103包括如下处理:根据用户选择的图片和设置的图片名称,生成并存储与应用程序的操作记录对应的快捷方式的图标;将快捷方式的图标设置于用户指定位置。Optionally, the step 103 includes the following steps: generating and storing an icon of a shortcut corresponding to the operation record of the application according to the picture selected by the user and the set picture name; setting the icon of the shortcut to the user specified position.
可选地,执行完上述操作之后还可以包括:响应于用户对所述快捷方式的触发,加载快捷方式对应的操作记录所在的路径文件,对路径文件中的操作记录进行解析,将操作记录解析为可执行的操作代码,依次执行所述操作 代码。Optionally, after the foregoing operations are performed, the method further includes: in response to the triggering of the shortcut by the user, loading a path file of the operation record corresponding to the shortcut, parsing the operation record in the path file, and parsing the operation record Execute the operation in order for the executable operation code Code.
可选地,在智能终端的操作系统为安卓系统时,步骤101通过安装包管理类PackageManager的对象获取应用程序信息列表;在步骤102中,进行路径设置时,自动启动应用程序,并启动UIAutomator框架的事件监听程序,通过监听程序捕获用户对应用程序的操作,生成操作记录,并将操作记录保存到路径文件中。Optionally, when the operating system of the smart terminal is an Android system, step 101 acquires an application information list by installing an object of the package management class PackageManager; in step 102, when the path setting is performed, the application is automatically started, and the UIAutomator framework is started. The event listener captures the user's operation on the application through the listener, generates an operation record, and saves the operation record to the path file.
需要说明的是,目前关于手机的快捷键或快捷方式,一般是指多功能硬件按键,或者在Android手机桌面上创建某一APP的快捷启动图标。本发明实施例所述的快捷方式与这些常规快捷键/快捷方式有很大区别。本发明实施例旨在实现指向某项具体操作的快捷方式,例如:通过对快捷方式后台动作的编辑,实现一键给某人通过微信拨打视频电话。It should be noted that the current shortcut keys or shortcuts for mobile phones generally refer to multi-function hardware buttons, or create a quick start icon of an APP on the desktop of an Android mobile phone. The shortcuts described in the embodiments of the present invention are quite different from these conventional shortcut keys/shortcuts. The embodiment of the present invention aims to implement a shortcut to a specific operation, for example, by editing a shortcut background action, and implementing a button for a person to make a video call through WeChat.
下面以Android系统为例,对本发明实施例的技术方案进行详细说明。The technical solution of the embodiment of the present invention is described in detail below by taking the Android system as an example.
Android系统为我们提供了一个PackageManager管理类,它的主要职责是管理应用程序包,通过它可以获取应用程序信息。本发明实施例的技术方案首先调用android.content.ContextWrapper.getPackageManager()方法获得android.content.pm.PackageManager类的对象,通过该对象就可以获取到本终端中所有的已安装应用程序信息列表,这些信息包括应用程序图标、名称、版本号和包名等,用户从应用程序信息列表中选择要设置快捷方式的应用程序。Android system provides us with a PackageManager management class, its main responsibility is to manage the application package, through which you can get application information. The technical solution of the embodiment of the present invention firstly obtains an object of the android.content.pm.PackageManager class by calling the android.content.ContextWrapper.getPackageManager() method, and the object can obtain a list of all installed application information in the terminal. This information includes the application icon, name, version number, and package name. The user selects the application for which the shortcut is to be set from the application information list.
UIAutomator是谷歌提供的Android UI自动化测试框架,使用该框架可以模拟用户UI操作,另外它还可以监控用户的UI操作事件。因此可以利用UIAutomator框架来完成设置并记录用户想要设置快捷方式的操作。开始进行路径设置时,会自动启动用户选择的应用程序,同时启动UIAutomator框架的事件监听程序,接下来用户对该应用程序所做的所有操作都将会被事件监听程序捕获到,并将捕获信息(即操作记录)存储到路径文件中,直到结束路径设置。UIAutomator is an Android UI automated testing framework provided by Google that can be used to simulate user UI operations. It can also monitor user UI operation events. So you can use the UIAutomator framework to complete the setup and record the actions the user wants to set the shortcut. When the path setting is started, the user-selected application is automatically started, and the event listener of the UIAutomator framework is started. Then all the operations performed by the user on the application will be captured by the event listener and the information will be captured. (ie the operation record) is stored in the path file until the end of the path setting.
本发明实施例的技术方案允许用户生成个性化的快捷方式。用户可选择终端当中的任意一张图片来作为快捷方式的图标,方法是修改AndroidManifest.xml文件中的application android:icon=@drawable/icon,其中 icon就是用户选择的用来作为图标的图片名称,不带后缀。用户自选快捷方式的摆放位置,如果选择桌面,则向桌面应用(launcher)发送com.android.launcher.action.INSTALL_SHORTCUT的广播,如果选择本应用程序,则将该快捷方式put到本应用程序的快捷方式列表中进行显示。The technical solution of the embodiment of the present invention allows a user to generate a personalized shortcut. The user can select any one of the pictures as a shortcut icon by modifying the application android:icon=@drawable/icon in the AndroidManifest.xml file. The icon is the name of the image that the user selects as the icon, without the suffix. The location of the user-selected shortcut. If the desktop is selected, the broadcast of com.android.launcher.action.INSTALL_SHORTCUT is sent to the desktop application (launcher). If the application is selected, the shortcut is put into the application. Displayed in the shortcut list.
用户点击快捷图标(相当于触发快捷方式)后,首先加载路径文件,然后对路径文件当中的操作记录进行解析,将原始events记录转换成UIAutomator框架可执行的操作代码,最后依次执行所述操作代码(按照建立快捷方式时用户的操作顺序),相当于回放执行建立快捷方式时所捕获到的用户操作,从而可以一键完成用户设定的操作,实现快捷操作的效果。After the user clicks the shortcut icon (equivalent to triggering the shortcut), the path file is first loaded, then the operation record in the path file is parsed, the original events record is converted into the operation code executable by the UIAutomator framework, and finally the operation code is executed in sequence. (According to the user's operation sequence when creating a shortcut), it is equivalent to the user operation captured during the execution of the setup shortcut, so that the user-set operation can be completed with one click, and the effect of the shortcut operation is realized.
下面以手机上的微信视频通话为例,说明快捷方式的生成过程,本例中的第一应用为实现上述步骤101~103,以及对用户触发根据步骤101~103所建立的快捷方式进行响应的应用。The following takes the WeChat video call on the mobile phone as an example to describe the process of generating the shortcut. The first application in this example is to implement the above steps 101-103, and to respond to the shortcut triggered by the user according to steps 101-103. application.
图2是本例的快捷方式生成后进行使用时的用户界面和后台流程的示意图,在用户界面上,具有操作的程序入口,比如手机界面上的一个图标,名为“和女儿视频”;在用户点击该图标后,后台流程为:2 is a schematic diagram of a user interface and a background process when the shortcut is generated in this example. On the user interface, there is an operation program entry, such as an icon on the mobile phone interface, named “and daughter video”; After the user clicks on the icon, the background process is:
启动应用程序,如启动微信;Launch the application, such as launching WeChat;
对启动的应用程序进行操作,如查找名称为“女儿”的微信联系人并发起视频呼叫;Operate the launched application, such as finding a WeChat contact named "Daughter" and initiating a video call;
关闭应用程序,如在视屏通话结束后可自动关闭微信。Close the app, such as automatically closing WeChat after the video call ends.
图3是本例的快捷方式生成的流程图,如图3所示,包括如下步骤S301~310:FIG. 3 is a flowchart of the shortcut generation in this example. As shown in FIG. 3, the following steps S301-310 are included:
步骤S301:启动第一应用;Step S301: Start the first application;
步骤S302:进入第一应用之后,会看到一个应用程序列表,这些应用程序均为本机已安装的应用程序,选择微信;Step S302: After entering the first application, a list of applications is selected, and the applications are all installed applications of the machine, and WeChat is selected;
步骤S303:选择开始设置路径;Step S303: Select to start setting the path;
步骤S304:微信被自动启动;Step S304: WeChat is automatically started;
步骤S305:在微信的界面中,查找名称为“女儿”的联系人; Step S305: In the interface of the WeChat, look for the contact named "Daughter";
步骤S306:向名称为“女儿”的联系人发起视频通话;Step S306: Initiating a video call to a contact named "daughter";
步骤S307:结束设置路径操作;Step S307: End setting path operation;
步骤S308:选择保存路径设置,比如保存到桌面;Step S308: Select a save path setting, such as saving to a desktop;
步骤S309:选择设置快捷方式的图标,应用会列出本机中所有可用图片,用户选择自己喜欢的图片作为该快捷方式的图标;Step S309: Select an icon for setting a shortcut, the application will list all available pictures in the machine, and the user selects a picture that he likes as an icon of the shortcut;
步骤S310:保存快捷方式为“和女儿视频通话”。Step S310: Save the shortcut as "video call with daughter".
完成以上这些操作步骤后,在桌面上就会生成一个名为“和女儿视频通话”的快捷方式。After completing these steps, a shortcut called "Daughter Video with Daughter" will be generated on the desktop.
图4是本例的快捷方式运行的流程图,包括如下步骤S401~405:4 is a flow chart of the shortcut operation of the present example, including the following steps S401-405:
步骤S401:回到手机桌面;Step S401: returning to the mobile phone desktop;
步骤S402:找到“和女儿视频通话”的快捷方式,并启动;Step S402: Find a shortcut of "video call with the daughter" and start it;
步骤S403:所述第一应用会根据“和女儿视频通话”的快捷方式获取用户所设置的路径,解析后依次执行下述操作:启动微信,查找名为“女儿”的联系人,并发起视频通话;Step S403: The first application obtains the path set by the user according to the shortcut mode of “and daughter video call”, and performs the following operations after the parsing: start WeChat, find the contact named “Daughter”, and start the video. call;
步骤S404:视频通话结束后,用户可选择退出快捷方式;Step S404: after the video call ends, the user may choose to exit the shortcut mode;
步骤S405:退出微信应用。Step S405: Exit the WeChat application.
综上所述,借助于本发明实施例的技术方案,通过将操作记录保存到路径文件并建立相应的快捷方式,解决了现有技术中由于智能终端功能过于复杂,一部分用户只能使用智能终端进行简单操作的问题,能够更加方便用户的操作,提高了用户的使用感受。In summary, with the technical solution of the embodiment of the present invention, by saving the operation record to the path file and establishing a corresponding shortcut, the prior art is that the intelligent terminal function is too complicated, and some users can only use the smart terminal. The problem of simple operation is more convenient for the user's operation and improves the user's experience.
装置实施例Device embodiment
本发明实施例提供了一种智能终端快捷方式建立装置,设置于智能终端,图5是本发明实施例的智能终端快捷方式建立装置的结构示意图,如图5所示,本发明实施例的智能终端快捷方式建立装置包括:应用选择模块50、路径设置模块52、存储显示模块54,以下对本发明实施例的各个模块进行详细的说明。 An embodiment of the present invention provides a smart terminal shortcut establishing apparatus, which is disposed on an intelligent terminal. FIG. 5 is a schematic structural diagram of a smart terminal shortcut establishing apparatus according to an embodiment of the present invention. As shown in FIG. The terminal shortcut setting device includes an application selection module 50, a path setting module 52, and a storage display module 54, and each module of the embodiment of the present invention is described in detail below.
应用选择模块50,设置成获取应用程序信息列表,从所述应用程序信息列表中确定需要设置快捷方式的应用程序;所述应用选择模块50获取应用程序信息列表包括在所述智能终端为安卓系统的情况下,通过安装包管理类PackageManager的对象获取应用程序信息列表;The application selection module 50 is configured to obtain an application information list, and determine, from the application information list, an application that needs to set a shortcut; the application selection module 50 acquires an application information list, where the smart terminal is an Android system. In the case of obtaining an application information list by installing an object of the package management class PackageManager;
路径设置模块52,设置成启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中;所述路径设置模块52启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中包括:在所述智能终端为安卓系统的情况下,进行路径设置时,自动启动所述应用程序,并启动UIAutomator框架的事件监听程序,通过所述监听程序捕获用户对所述应用程序的操作,生成操作记录,并将所述操作记录保存到路径文件中。The path setting module 52 is configured to start the application, generate an operation record according to a user operation of the application, and save the operation record to a path file; the path setting module 52 starts the application, And generating the operation record according to the operation of the application by the user, and saving the operation record to the path file includes: when the smart terminal is an Android system, when the path setting is performed, the application is automatically started, And an event listener of the UIAutomator framework is started, the user's operation on the application is captured by the listener, an operation record is generated, and the operation record is saved in the path file.
存储显示模块54,设置成生成并存储与所述应用程序的操作记录对应的快捷方式。所述存储显示模块54生成并存储与所述应用程序的操作记录对应的快捷方式包括:根据用户选择的图片和设置的图片名称,生成与所述应用程序的操作记录对应的快捷方式的图标;将所述快捷方式的图标设置于用户指定位置。The storage display module 54 is configured to generate and store a shortcut corresponding to the operation record of the application. The storing and displaying the shortcut corresponding to the operation record of the application includes: generating, according to the picture selected by the user and the set picture name, an icon of a shortcut corresponding to the operation record of the application; The icon of the shortcut is set to a user-specified location.
可选地,上述装置还可以包括:Optionally, the foregoing apparatus may further include:
执行控制模块,设置成响应于用户对所述快捷方式的触发,加载所述快捷方式对应的操作记录所在的路径文件,对所述路径文件中的操作记录进行解析,将所述操作记录解析为能执行的操作代码,依次执行所述操作代码。The execution control module is configured to: in response to the triggering of the shortcut by the user, load a path file in which the operation record corresponding to the shortcut is located, parse the operation record in the path file, and parse the operation record into The operation code that can be executed, and the operation code is executed in sequence.
以下对本发明实施例的上述技术方案进行详细说明。The above technical solutions of the embodiments of the present invention are described in detail below.
本发明实施例所述的装置主要包括应用选择模块50、路径设置模块52、执行控制模块、以及存储显示模块54。The device in the embodiment of the present invention mainly includes an application selection module 50, a path setting module 52, an execution control module, and a storage display module 54.
Android系统提供了一个PackageManager管理类,它的主要职责是管理应用程序包,通过它,可以获取应用程序信息。应用选择模块50首先调用android.content.ContextWrapper.getPackageManager()方法获得android.content.pm.PackageManager类的对象,通过该对象就可以获取到本机中所有的已安装应用程序信息列表,这些信息包括应用程序图标、名称、版 本号和包名等,用户从应用程序信息列表中选择要设置快捷方式的应用程序。The Android system provides a PackageManager management class whose main responsibility is to manage the application package, through which the application information can be obtained. The application selection module 50 first calls the android.content.ContextWrapper.getPackageManager() method to obtain an object of the android.content.pm.PackageManager class, through which the list of all installed application information in the machine can be obtained, including: Application icon, name, version The number and the package name, etc., the user selects an application to set a shortcut from the application information list.
UIAutomator是谷歌提供的Android UI自动化测试框架,使用该框架可以模拟用户UI操作,另外它还可以监控用户的UI操作事件。路径设置模块52就是利用UIAutomator框架来完成设置并记录用户想要设置快捷方式的操作。开始进行路径设置时,会自动启动用户选择的应用程序,同时启动UIAutomator框架的事件监听程序,接下来用户对该应用程序所做的所有操作都将会被事件监听程序捕获到,并将捕获信息存储到路径文件中,直到结束路径设置。UIAutomator is an Android UI automated testing framework provided by Google that can be used to simulate user UI operations. It can also monitor user UI operation events. The path setting module 52 uses the UIAutomator framework to complete the setting and record the operation that the user wants to set the shortcut. When the path setting is started, the user-selected application is automatically started, and the event listener of the UIAutomator framework is started. Then all the operations performed by the user on the application will be captured by the event listener and the information will be captured. Stored in the path file until the end of the path settings.
执行控制模块负责实现快捷功能。用户点击快捷方式的图标后,执行控制模块首先加载路径文件,然后对路径文件当中的操作记录进行解析,将原始events记录转换成UIAutomator框架可执行的操作代码,最后依次执行所述操作代码(按照建立快捷方式时用户的操作顺序),相当于回放执行建立快捷方式时所捕获到的用户操作,从而可以一键完成用户设定的操作,实现快捷操作的效果。The execution control module is responsible for implementing the shortcut function. After the user clicks the shortcut icon, the execution control module first loads the path file, then parses the operation record in the path file, converts the original events record into an operation code executable by the UIAutomator framework, and finally executes the operation code in sequence (according to When the shortcut is established, the user's operation sequence is equivalent to the user operation captured when the shortcut is created, so that the user-set operation can be completed with one click, and the effect of the shortcut operation is realized.
存储显示模块54允许用户生成个性化的快捷方式。用户可选择手机当中的任意一张图片来作为快捷方式的图标,方法是修改AndroidManifest.xml文件中的application android:icon=@drawable/icon,其中icon就是用户选择的用来作为图标的图片名称,不带后缀。The storage display module 54 allows the user to generate personalized shortcuts. The user can select any picture in the mobile phone as a shortcut icon by modifying the application android:icon=@drawable/icon in the AndroidManifest.xml file, where the icon is the picture name selected by the user as the icon. Without a suffix.
用户自选快捷方式的摆放位置,如果选择桌面,则向桌面应用(launcher)发送com.android.launcher.action.INSTALL_SHORTCUT的广播,如果选择所述第一应用,则将该快捷方式发送(put)到所述第一应用的快捷方式列表中进行显示。The location of the user-selected shortcut, if the desktop is selected, the broadcast of com.android.launcher.action.INSTALL_SHORTCUT is sent to the desktop application (launch), and if the first application is selected, the shortcut is sent (put) Displayed in the shortcut list of the first application.
综上所述,借助于本发明实施例的技术方案,通过将操作记录保存到路径文件并建立相应的快捷方式,解决了现有技术中由于智能终端功能过于复杂,一部分用户只能使用智能终端进行简单操作的问题,能够更加方便用户的操作,提高了用户的使用感受。In summary, with the technical solution of the embodiment of the present invention, by saving the operation record to the path file and establishing a corresponding shortcut, the prior art is that the intelligent terminal function is too complicated, and some users can only use the smart terminal. The problem of simple operation is more convenient for the user's operation and improves the user's experience.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指 令,所述计算机可执行指令用于执行上述智能终端快捷方式建立方法。The embodiment of the invention further provides a computer readable storage medium, which stores a computer executable finger The computer executable instructions are used to execute the smart terminal shortcut establishing method described above.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明实施例也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明实施例的内容,并且上面对特定语言所做的描述是为了披露本发明实施例的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teaching based on the teachings herein. The structure required to construct such a system is apparent from the above description. Moreover, embodiments of the invention are not directed to any particular programming language. It is to be understood that the description of the embodiments of the invention herein described herein may be
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明实施例可以在没有这些细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it can be appreciated that embodiments of the invention may be practiced without these details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
本领域技术人员可以理解,可以对实施例中的客户端中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个客户端中。可以把实施例中的模块组合成一个模块,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者客户端的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the client in the embodiment can be adaptively changed and placed in one or more clients different from the embodiment. The modules in the embodiments can be combined into one module, and further they can be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the client are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本申请的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present application. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的“一”或“一个”不排除存在多个这样的元件。本发明实施例可以借助于包括有一个或多个不同元件的硬件以及借助于适当编程的计算机来实现。在列举了一个或多个模块的装置权利要求中,这些模块中的一个或多个可以是通 过同一个硬件项来具体体现。“第一”、“第二”、以及“第三”等的使用不表示任何顺序。可将这些单词解释为名称。Alternative embodiments can be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. "Comprising" does not exclude the presence of elements or steps that are not listed in the claims. The use of "a" or "an" Embodiments of the invention may be implemented by means of hardware comprising one or more different elements and by means of a suitably programmed computer. In the device claim enumerating one or more modules, one or more of these modules may be Through the same hardware item to reflect. The use of "first", "second", and "third", etc. does not denote any order. These words can be interpreted as names.
工业实用性Industrial applicability
本发明实施例通过将操作记录保存到路径文件并建立相应的快捷方式,解决了相关技术中由于智能终端功能过于复杂,一部分用户只能使用智能终端进行简单操作的问题,能够更加方便用户的操作,提高了用户的使用感受。 In the embodiment of the present invention, the operation record is saved to the path file and the corresponding shortcut is established, which solves the problem that the intelligent terminal function is too complicated in the related art, and some users can only use the smart terminal for simple operation, which is more convenient for the user to operate. , improve the user experience.

Claims (10)

  1. 一种智能终端快捷方式建立方法,包括:A method for establishing a shortcut of a smart terminal, comprising:
    获取应用程序信息列表,从所述应用程序信息列表中确定需要设置快捷方式的应用程序;Obtaining a list of application information, and determining an application that needs to set a shortcut from the list of application information;
    启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中;Launching the application, generating an operation record according to a user operation of the application, and saving the operation record to a path file;
    生成并存储与所述应用程序的操作记录对应的快捷方式。A shortcut corresponding to the operation record of the application is generated and stored.
  2. 如权利要求1所述的方法,其中,所述生成并存储与应用程序的操作记录对应的快捷方式后还包括:The method of claim 1, wherein the generating and storing the shortcut corresponding to the operation record of the application further comprises:
    响应于用户对所述快捷方式的触发,加载所述快捷方式对应的操作记录所在的路径文件,对所述路径文件中的操作记录进行解析,将所述操作记录解析为能执行的操作代码,依次执行所述操作代码。And responding to the triggering of the shortcut by the user, loading a path file of the operation record corresponding to the shortcut, parsing the operation record in the path file, and parsing the operation record into an executable operation code, The operation code is executed in sequence.
  3. 如权利要求1所述的方法,其中,所述生成并存储与所述应用程序的操作记录对应的快捷方式包括:The method of claim 1, wherein the generating and storing a shortcut corresponding to the operation record of the application comprises:
    根据用户选择的图片和设置的图片名称,生成并存储与所述应用程序的操作记录对应的快捷方式的图标;Generating and storing an icon of a shortcut corresponding to the operation record of the application according to the picture selected by the user and the set picture name;
    将所述快捷方式的图标设置于用户指定位置。The icon of the shortcut is set to a user-specified location.
  4. 如权利要求1所述的方法,其中,所述获取应用程序信息列表包括:The method of claim 1 wherein said obtaining a list of application information comprises:
    通过安装包管理类PackageManager的对象获取应用程序信息列表。Obtain a list of application information by installing the object of the package management class PackageManager.
  5. 如权利要求1所述的方法,其中,所述启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中包括:The method of claim 1, wherein the initiating the application, generating an operation record according to a user operation of the application, and saving the operation record to the path file comprises:
    自动启动所述应用程序,并启动UIAutomator框架的事件监听程序,通过所述监听程序捕获用户对所述应用程序的操作,生成操作记录,并将所述操作记录保存到路径文件中。The application is automatically launched, and an event listener of the UIAutomator framework is started, by which the user's operation on the application is captured, an operation record is generated, and the operation record is saved in the path file.
  6. 一种智能终端快捷方式建立装置,设置于智能终端,所述装置包括: A smart terminal shortcut establishing device is disposed on the smart terminal, and the device includes:
    应用选择模块,设置成获取应用程序信息列表,从所述应用程序信息列表中确定需要设置快捷方式的应用程序;An application selection module configured to obtain a list of application information, and determine, from the list of application information, an application that needs to set a shortcut;
    路径设置模块,设置成启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中;a path setting module, configured to start the application, generate an operation record according to a user operation of the application, and save the operation record to a path file;
    存储显示模块,设置成生成并存储与所述应用程序的操作记录对应的快捷方式。A storage display module is configured to generate and store a shortcut corresponding to an operation record of the application.
  7. 如权利要求6所述的装置,还包括:The apparatus of claim 6 further comprising:
    执行控制模块,设置成响应于用户对所述快捷方式的触发,加载所述快捷方式对应的操作记录所在的路径文件,对所述路径文件中的操作记录进行解析,将所述操作记录解析为能执行的操作代码,依次执行所述操作代码。The execution control module is configured to: in response to the triggering of the shortcut by the user, load a path file in which the operation record corresponding to the shortcut is located, parse the operation record in the path file, and parse the operation record into The operation code that can be executed, and the operation code is executed in sequence.
  8. 如权利要求6所述的装置,其中,所述存储显示模块生成并存储与所述应用程序的操作记录对应的快捷方式包括:The device of claim 6, wherein the storage display module generates and stores a shortcut corresponding to the operation record of the application, including:
    所述存储显示模块根据用户选择的图片和设置的图片名称,生成与所述应用程序的操作记录对应的快捷方式的图标;The storage display module generates an icon of a shortcut corresponding to the operation record of the application according to the picture selected by the user and the set picture name;
    所述存储显示模块将所述快捷方式的图标设置于用户指定位置。The storage display module sets an icon of the shortcut to a user-specified location.
  9. 如权利要求6所述的装置,其中,所述应用选择模块获取应用程序信息列表包括:The device of claim 6, wherein the obtaining, by the application selection module, the list of application information comprises:
    所述应用选择模块通过安装包管理类PackageManager的对象获取应用程序信息列表。The application selection module acquires a list of application information by installing an object of the package management class PackageManager.
  10. 如权利要求6所述的装置,其中,所述路径设置模块启动所述应用程序,根据用户对所述应用程序的操作生成操作记录,并将所述操作记录保存到路径文件中:The apparatus of claim 6, wherein the path setting module starts the application, generates an operation record according to a user operation of the application, and saves the operation record to a path file:
    所述路径设置模块自动启动所述应用程序,并启动UIAutomator框架的事件监听程序,通过所述监听程序捕获用户对所述应用程序的操作,生成操作记录,并将所述操作记录保存到路径文件中。 The path setting module automatically starts the application, and starts an event listener of the UIAutomator framework, captures a user operation of the application by the listener, generates an operation record, and saves the operation record to a path file. in.
PCT/CN2016/078327 2015-10-23 2016-04-01 Intelligent terminal shortcut establishment method and device WO2016188227A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510697233.6 2015-10-23
CN201510697233.6A CN106610825A (en) 2015-10-23 2015-10-23 Shortcut establishment method and apparatus for intelligent terminal

Publications (1)

Publication Number Publication Date
WO2016188227A1 true WO2016188227A1 (en) 2016-12-01

Family

ID=57392488

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078327 WO2016188227A1 (en) 2015-10-23 2016-04-01 Intelligent terminal shortcut establishment method and device

Country Status (2)

Country Link
CN (1) CN106610825A (en)
WO (1) WO2016188227A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445790A (en) * 2018-10-29 2019-03-08 五八有限公司 Implementation method, device, terminal and the storage medium fast instructed in application program
CN110221876A (en) * 2019-05-30 2019-09-10 维沃移动通信有限公司 A kind of reminding method and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645966A (en) * 2009-09-04 2010-02-10 三星电子(中国)研发中心 Automation operating system on mobile phone terminal
CN101901111A (en) * 2010-07-30 2010-12-01 中兴通讯股份有限公司 Method and device for realizing automatic operation on mobile terminal
CN102098380A (en) * 2010-12-22 2011-06-15 中兴通讯股份有限公司 Method and device for customizing shortcut in mobile terminal
CN102999344A (en) * 2012-11-30 2013-03-27 广东欧珀移动通信有限公司 Intelligent terminal and method and device for user-defined operation set thereof
US20130219337A1 (en) * 2012-02-16 2013-08-22 Chi Mei Communication Systems, Inc. Electronic device, storage medium and method for arranging icons of applications of the electronic device
CN104021066A (en) * 2014-04-23 2014-09-03 惠州Tcl移动通信有限公司 Mobile terminal operation information recording method, operation method and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102519514B (en) * 2011-11-16 2015-01-14 中国电子科技集团公司第四十一研究所 One-click automatic testing realization method of electronic test instrument
CN102841789B (en) * 2012-06-29 2016-05-25 北京奇虎科技有限公司 A kind of method and apparatus of recording with playback that user in browser is operated
CN103853658B (en) * 2012-12-04 2017-07-21 腾讯科技(深圳)有限公司 The automated testing method and Android device of recording and playback are carried out in Android device
CN103034537B (en) * 2012-12-17 2017-11-17 北京奇虎科技有限公司 The method and device of prompt operation is performed in iOS system
CN103049208A (en) * 2012-12-31 2013-04-17 广东欧珀移动通信有限公司 Method, device and mobile terminal for customizing rapid touch operation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645966A (en) * 2009-09-04 2010-02-10 三星电子(中国)研发中心 Automation operating system on mobile phone terminal
CN101901111A (en) * 2010-07-30 2010-12-01 中兴通讯股份有限公司 Method and device for realizing automatic operation on mobile terminal
CN102098380A (en) * 2010-12-22 2011-06-15 中兴通讯股份有限公司 Method and device for customizing shortcut in mobile terminal
US20130219337A1 (en) * 2012-02-16 2013-08-22 Chi Mei Communication Systems, Inc. Electronic device, storage medium and method for arranging icons of applications of the electronic device
CN102999344A (en) * 2012-11-30 2013-03-27 广东欧珀移动通信有限公司 Intelligent terminal and method and device for user-defined operation set thereof
CN104021066A (en) * 2014-04-23 2014-09-03 惠州Tcl移动通信有限公司 Mobile terminal operation information recording method, operation method and mobile terminal

Also Published As

Publication number Publication date
CN106610825A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
US20170357432A1 (en) Image creation app in messaging app
RU2618937C2 (en) Updating method, device and unit for updates
US11416112B2 (en) Method and device for displaying an application interface
RU2673697C2 (en) Seamless call transitions
US20120260202A1 (en) Customized launching of applications
AU2014293763B2 (en) Method and apparatus for providing Graphic User Interface
US10481752B2 (en) Method and device for a guided application to enhance a user interface
US10637804B2 (en) User terminal apparatus, communication system, and method of controlling user terminal apparatus which support a messenger service with additional functionality
RU2643486C2 (en) Method and device for information accumulation
WO2017113666A1 (en) Application interface switching method and device
US10001919B2 (en) Apparatus for providing integrated functions of dial and calculator and method thereof
CN107748615B (en) Screen control method and device, storage medium and electronic equipment
US10606398B2 (en) Method and apparatus for generating preview data
CN106547547B (en) data acquisition method and device
WO2016065760A1 (en) Device connection prompt method and apparatus
WO2020253386A1 (en) Application processing method and apparatus, electronic device, and storage medium
US9641913B2 (en) Smart terminal information display method and smart terminal
WO2016150104A1 (en) App theme loading method and device
WO2019080622A1 (en) Method and apparatus for realizing function of application, and terminal, storage medium and processor
CN114741292A (en) Test script management method and device, electronic equipment and storage medium
CN110933772A (en) Connection method of wireless device, mobile terminal and computer readable storage medium
WO2016188227A1 (en) Intelligent terminal shortcut establishment method and device
CN108958824A (en) Starting method, apparatus, electronic equipment and the storage medium of application program
CN109491655B (en) Input event processing method and device
WO2016061921A1 (en) Method, device, terminal and computer storage medium for combining multiple application operations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16799116

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16799116

Country of ref document: EP

Kind code of ref document: A1