WO2017101663A1 - 应用的引导方法及装置、终端 - Google Patents

应用的引导方法及装置、终端 Download PDF

Info

Publication number
WO2017101663A1
WO2017101663A1 PCT/CN2016/107319 CN2016107319W WO2017101663A1 WO 2017101663 A1 WO2017101663 A1 WO 2017101663A1 CN 2016107319 W CN2016107319 W CN 2016107319W WO 2017101663 A1 WO2017101663 A1 WO 2017101663A1
Authority
WO
WIPO (PCT)
Prior art keywords
displayed
floating window
control
application
information
Prior art date
Application number
PCT/CN2016/107319
Other languages
English (en)
French (fr)
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 WO2017101663A1 publication Critical patent/WO2017101663A1/zh

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present invention relates to the field of communications, and in particular to a method, device, and terminal for guiding an application.
  • buttons in the process of using the terminal, it may be necessary to guide the user to perform certain operations, such as an application upgrade (a new function is added), and the user needs to be guided to click a new function experience; or there is a reminder that the user needs to click on a certain
  • some features need to be introduced.
  • the first way is to add a small red dot prompt or a shaking button next to the button of the new function.
  • the icon prompts the user to operate
  • the second way is to pop up a translucent overall interface for an introduction to the operation instructions.
  • the first method described above is simple and the amount of information to be presented is not large, how to operate the instructions after entering the interface is not detailed enough.
  • the second method is because a new interface pops up, and the user needs to close the interface before the application can be operated. It is not convenient to use. Both of these methods require the application to perform more programming. In particular, the second method also requires the entire writing interface, the programming complexity is high, and the visual effects of the guiding prompts of each application cannot be unified, and if the user experience is to be realized.
  • the friendly and interesting complex animation guides the programming responsibility of each application is higher, and the user experience is not good.
  • the embodiment of the invention provides a method, a device and a terminal for guiding the application, so as to at least solve the problem of poor user experience caused by the guiding function of guiding the user operation in the terminal in the related art.
  • a method for guiding an application including: acquiring a configuration file of a specified application in a configuration file of a plurality of applications on a terminal, where the configuration file of the specified application includes: a control identifier ID
  • the guiding information to be displayed corresponding to the control ID is used to guide the user to operate the control corresponding to the control ID; and the guiding information to be displayed is displayed in the form of a floating window at a predetermined position on the interface of the specified application.
  • the method before acquiring the configuration file of the specified application in the configuration file of the multiple applications on the terminal, the method includes: receiving update setting information for the configuration file of the specified application, where the update setting information is used to indicate the specified application
  • the control ID in the configuration file and the boot information to be displayed are updated.
  • the method before displaying the guidance information to be displayed in the form of a floating window, the method further includes: determining whether the floating window on the interface is in a display state, wherein, when the floating window is not in the display state, triggering The floating window is displayed.
  • the method further includes at least one of: determining whether the position of the floating window in the interface is consistent with the predetermined position when the floating window is in the display state; and in the case of inconsistency, moving the floating window to In the case where the floating window is in the display state, it is judged whether the content displayed by the floating window and the guiding information to be displayed are consistent, and in the case of inconsistency, the guiding information to be displayed is displayed on the floating window after the movement.
  • the method further includes: deleting the control ID in the configuration file of the specified application and the boot information to be displayed.
  • the method before the guiding information to be displayed is displayed in the form of a floating window at a predetermined position of the interface of the application, the method further includes: determining whether the control is in a display state; and triggering when the control is in the display state The instruction to display the floating window.
  • the configuration file of the specified application further includes a control information list
  • the method further includes: if the control is not in the display state and only the control exists in the control information list, Hide the floating window.
  • an application guiding device including: an application state monitoring module, a guiding display module, and an application state monitoring module configured to acquire a specified application in a configuration file of multiple applications on the terminal.
  • the configuration file wherein the configuration file of the specified application includes: a control identifier ID, and boot information corresponding to the control ID to be displayed; the boot information is used to guide the user to operate the control corresponding to the control ID; and the boot display module is set to At a predetermined position on the interface of the specified application, the guidance information to be displayed is displayed in the form of a floating window.
  • the application state monitoring module is further configured to receive update setting information of the configuration file of the specified application, where the update setting information is used to indicate that the control ID in the configuration file of the specified application and the guidance information to be displayed are performed. Update settings.
  • the guiding display module includes: a determining unit, configured to determine whether the floating window on the interface is in a display state; and the first display unit is configured to display the floating on the interface when the floating window is not in the display state The window and the guidance information to be displayed are displayed on the floating window.
  • the guidance display module further includes at least one of the following: the second display unit is configured to determine whether the position of the floating window in the interface is consistent with the predetermined position when the floating window is in the display state; In the case that the floating window is moved to the predetermined position; the third display unit is configured to determine whether the content displayed by the floating window and the guiding information to be displayed are consistent when the floating window is in the display state, in case of inconsistency The guide information to be displayed is displayed on the floating window after the movement.
  • the boot status monitoring module is further configured to delete the control ID in the configuration file of the specified application and the boot information to be displayed.
  • a terminal comprising: an application and the above-described guiding device, wherein the application is an application requiring a guiding operation.
  • Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing one or a combination of the steps in the above embodiments.
  • the configuration file of the specified application in the configuration file of the multiple applications on the terminal is obtained, where the configuration file of the specified application includes: a control identifier ID, a guide information to be displayed corresponding to the control ID, and a boot information. It is used to guide the user to operate the control corresponding to the control ID; at a predetermined position on the interface of the specified application, the guidance information to be displayed is displayed in the form of a floating window, that is, the guidance information is displayed in the vicinity of the control by using a floating window.
  • the method solves the problem of poor user experience caused by the guiding function of guiding the user operation in the terminal in the related art, and improves the user experience.
  • FIG. 1 is a flow chart 1 of a method of guiding an application according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a booting method of an application according to an embodiment of the present invention.
  • FIG. 3 is a third flowchart of a booting method of an application according to an embodiment of the present invention.
  • FIG. 4 is a flowchart 4 of a method of guiding an application according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a guiding device of an application according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a boot display module 54 according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of a guiding device of an application provided according to an alternative embodiment of the present invention.
  • FIG. 8 is a flow chart of a process of a boot display module in accordance with an alternative embodiment of the present invention.
  • FIG. 9 is a process flow diagram of an application state monitoring module in accordance with an alternate embodiment of the present invention.
  • FIG. 1 is a flowchart 1 of a method for guiding an application according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 Acquire a configuration file of the specified application in the configuration file of the multiple applications on the terminal, where the configuration file of the specified application includes: a control identifier ID, and boot information to be displayed corresponding to the control ID; the boot information is used to guide The user operates on the control corresponding to the control ID;
  • Step S104 displaying the guidance information to be displayed in the form of a floating window at a predetermined position on the interface of the designated application.
  • the manner of displaying the guidance information in the vicinity of the control in the form of a floating window overcomes the information of the prompts caused by the small red dot prompt, the shaking button prompting the user operation or popping up a new interface to guide the user operation in the related art.
  • the operation application is incompatible, that is, the inconvenient defect is used, thereby solving the problem of poor user experience caused by the guiding function of guiding the user operation in the terminal in the related art, and improving the user experience.
  • step S102 that is, by acquiring the configuration file of the specified application in the configuration file of the multiple applications, unified guiding of multiple applications can be implemented, that is, unified guiding of multiple applications can be implemented through configuration files of multiple applications. .
  • the foregoing predetermined position may be calculated according to the position of the control on the interface, and the positions of the controls to be guided are different, and the predetermined positions are different, but are not limited thereto.
  • the predetermined position may be fixed as long as the floating window displayed at the predetermined position cannot cover the control that needs to be guided.
  • the above floating window can be set to be suspended by setting the window to be higher than the normal application window level.
  • the above steps can be completed by a boot module independent of each application, which can guide the operations that need to be guided by the application.
  • a boot module independent of each application, which can guide the operations that need to be guided by the application.
  • other applications need to guide the boot function of the module, only one configuration file needs to be added to describe the need to boot.
  • the information about the control is relatively simple to program.
  • the boot module can also be embedded in a piece of software or integrated into the terminal frame.
  • FIG. 2 is a flowchart 2 of a method for guiding an application according to an embodiment of the present invention.
  • the method further includes: Step S202, receiving an update setting of a configuration file of the specified application.
  • the information, update setting information is used to indicate that the control ID in the configuration file of the specified application and the boot information to be displayed are updated. In this way, when the information content that is booted after the application upgrade version changes, only the application needs to modify its own configuration file, which becomes relatively simple.
  • the method may further include: determining whether the floating window on the interface is in a display state, wherein the floating window is triggered when the floating window is not in the display state.
  • the floating window is in the display state, it is determined whether the position of the floating window displayed on the interface is consistent with the predetermined position; in the case of inconsistency, the floating window is moved to the predetermined position; and/or, when the floating window is in the display state
  • the embodiment embodies the unification of the guiding visual effect, that is, in the case that the floating window is in the display state, the position of the floating window displayed on the interface is inconsistent with the predetermined position, and/or the content displayed by the floating window is inconsistent with the guiding information to be displayed.
  • the animation is guided without modifying the respective application. , better to improve the user experience.
  • FIG. 3 is a flowchart 3 of a method for guiding an application according to an embodiment of the present invention.
  • the method further includes: step S302, deleting the specified application.
  • the information related to the control in the configuration file of the specified application is deleted, indicating that the control has been booted, and thus the same boot information as before is not used.
  • the same boot operation situation improves the efficiency of booting and saves storage space.
  • FIG. 4 is a flowchart of a method for guiding an application according to an embodiment of the present invention. As shown in FIG. 4, before the step S104, the method further includes:
  • Step S402 determining whether the control is in a display state
  • Step S404 in the case that the control is in the display state, triggering an instruction to display the floating window.
  • the foregoing configuration file may have a list of control information, or there may be no control information list.
  • the method further includes: the control is not in the display state and the control information is The floating window is hidden if there is only a control in the list, or if the control information list is empty.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • an application guiding device is also provided, which is used to implement the above-mentioned embodiments and optional embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware It is also possible and conceived.
  • FIG. 5 is a structural block diagram of a guiding device according to an embodiment of the present invention, as shown in FIG. 5, the device includes: an application state monitoring module 52, a guiding display module 54;
  • the application status monitoring module 52 is configured to acquire a configuration file of the specified application in the configuration file of the plurality of applications on the terminal, where the configuration file of the specified application includes: a control identifier ID, and boot information to be displayed corresponding to the control ID; The boot information is used to guide the user to operate on the control corresponding to the control ID;
  • the guidance display module 54 is connected to the application state monitoring module 52 described above, and is configured to display the guidance information to be displayed in the form of a floating window at a predetermined position on the interface of the designated application.
  • the manner of displaying the guiding information in the vicinity of the control in the form of a floating window overcomes the information of the prompt caused by the small red dot prompt, the shaking button prompting the user operation or popping up a new interface to guide the user operation in the related art. It is incompatible with the operation application, that is, the use of inconvenient defects, thereby solving the problem of poor user experience caused by the guidance function guiding the user operation in the terminal in the related art, and improving the user experience.
  • the application state monitoring module 52 can implement unified guiding of multiple applications through configuration files of multiple applications.
  • the predetermined position may be determined by the application state monitoring module 52 according to the position of the control on the interface, and then notified to the guiding display module 54. Therefore, the positions of the controls that need to be guided are different, and the predetermined positions are different, but Not limited to this, for example, the predetermined position may be fixed as long as the floating window displayed at the predetermined position cannot cover the control that needs to be guided.
  • the foregoing guiding device can be independent of each application and can be applied to the application.
  • the guided operation is uniformly guided.
  • other applications need to guide the boot function of the device, only one configuration file needs to be added to describe the related information of the control to be booted, and the programming is relatively simple.
  • the application status monitoring module 52 may be further configured to receive update setting information for a configuration file of the specified application, where the update setting information is used to indicate a control ID and a to-be-displayed in the configuration file of the specified application.
  • the boot information is updated. In this way, when the information content that is booted after the application upgrade version changes, only the application needs to modify its own configuration file, which becomes relatively simple.
  • FIG. 6 is a structural block diagram of a boot display module 54 according to an embodiment of the present invention.
  • the boot display module 54 may include: a determining unit 62 configured to determine that the interface is suspended. Whether the window is in the display state; the first display unit 64 is connected to the determining unit 62, and is configured to display the floating window on the interface and display the guiding information to be displayed on the floating window if the floating window is not in the display state.
  • the guiding display module 54 may further include: a second display unit 66 connected to the determining unit 62, configured to determine that the floating window is displayed on the interface when the floating window is in the display state. Whether the position is consistent with the predetermined position; in the case of inconsistency, the floating window is moved to the predetermined position; the third display unit 68 is connected to the determining unit 62, and is set to determine the floating window when the floating window is in the display state. Whether the displayed content and the guidance information to be displayed are consistent, and in the case of inconsistency, the guidance information to be displayed is displayed on the floating window after the movement.
  • the uniformity of the guiding visual effect is embodied, that is, in the case that the floating window is in the display state, the position of the floating window displayed on the interface is inconsistent with the predetermined position, and/or the content displayed by the floating window and the to-be-displayed If the guiding information is inconsistent, the floating window is moved to the predetermined position, and/or the guiding information to be displayed is displayed on the moving floating window, that is, when the guiding visual effect needs to be adjusted, the animation is guided without Individual applications are modified to better enhance the user experience.
  • the second display unit 66 and the third display unit 68 may be the same unit or different units.
  • the application status monitoring module 52 is further configured to delete the control ID and the guidance information to be displayed in the configuration file of the specified application. After the booting of the control ID, the application state monitoring module 52 deletes the information related to the control in the configuration file, and indicates that the control has been booted, so that the same boot information as before is not used. The same boot operation of the control improves the efficiency of the boot and saves storage space.
  • the application state monitoring module 52 is further configured to: determine whether the control is in a display state; and trigger an instruction to display the floating window when the control is in the display state.
  • the foregoing configuration file may have a list of control information, or there may be no control information list.
  • the method further includes: the control is not in the display state and the control information is The floating window is hidden if there is only a control in the list, or if the control information list is empty.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • a terminal which includes an application and a guiding device in the embodiment shown in FIG. 5.
  • the application may be an application that needs to perform a guiding operation, and the application may be one or multiple.
  • the manner of displaying the guidance information in the vicinity of the control in the form of a floating window can be realized, and the prompts caused by using a small red dot prompt, a shaking button to prompt the user operation, or popping up a new interface to guide the user operation are overcome in the related art.
  • the information and the operation application are incompatible, that is, the inconvenient defect is used, thereby solving the problem of poor user experience caused by the guiding function of guiding the user operation in the terminal in the related art, and improving the user experience.
  • unified guidance for multiple applications can also be achieved. Achieve the unity of guiding visual effects.
  • FIG. 7 is a structural block diagram of a guiding device for an application according to an alternative embodiment of the present invention.
  • the method includes: a guiding display module (equivalent to The guidance display module 54) of the embodiment shown in FIG. 5, the application status monitoring module (corresponding to the application status monitoring module 52 of the embodiment shown in FIG. 5), and a plurality of applications requiring the guiding operation (eg, application 1, application 2, application) 3).
  • the application that needs to guide the operation adds a configuration file (corresponding to the configuration file of the embodiment shown in FIG. 1), which includes related operation information that needs to be guided, including the interface name, button ID, and need of the button that needs to guide the user to click.
  • the text information (corresponding to the guidance information to be displayed in the embodiment shown in Fig. 1) displayed to the user, and the like.
  • the application status monitoring module needs to read the configuration information of the application, and monitor the display status of the application interface.
  • the interface included in the configuration information is displayed, obtain the position of the corresponding button ID on the screen of the mobile phone, and notify the guiding display module to display.
  • the guidance display module displays a floating window above or below the button position to direct the user to operate the button (not obscuring the button that the user needs to click).
  • the application status monitoring module monitors the interface switching, or after the user operates the button, or after the user does not operate for a period of time, it determines whether the current interface has a button or a control that needs to be guided, and if so, the guiding display module will guide the floating window to The animation mode moves to the new button to display the new prompt information, and if the interface has no buttons or controls to be guided, the guidance display module is notified to close the guide floating window.
  • the boot display is displayed in a floating window form, and the floating window is a window displayed on the application interface window level, taking the Android mobile phone system as an example, in an Android mobile phone system.
  • the implementation method is that the window can be displayed at the specified position of the screen through the window manager (adding window), and the floating effect can be realized by setting the window to a type higher than the normal application window level; Remove the child view (removeView) method to hide the previous display
  • the floating window is shown; the floating window can be moved to a specified position (corresponding to the predetermined position of the embodiment shown in FIG. 1) by the WindowManager's upgraded view layout (updateViewLayout) method.
  • FIG. 8 is a flowchart of a process of guiding a display module according to an alternative embodiment of the present invention. As shown in FIG. 8, the process includes the following steps:
  • Step S801 Waiting for the application status monitoring module to send a message
  • Step S802 When receiving the message sent by the application state monitoring module, determining whether the message is a guide navigation floating window or a hidden navigation floating window message; if it is a hidden navigation floating window message, step S803 is performed, otherwise step S804 is performed;
  • Step S803 closing the floating window, performing step S801;
  • Step S804 The message sent by the application status monitoring module is a display guide floating window, and the message is accompanied by the position of the screen to be displayed by the navigation window and the content to be displayed (corresponding to the guidance information to be displayed in the embodiment shown in FIG. 1) , determining whether the current floating window is a display state or a hidden state (ie, determining whether the current navigation floating window has been displayed), if it is a hidden state (ie, not displayed), step S805 is performed, otherwise step S806 is performed;
  • Step S805 display a floating window at the location specified by the message, and display the message content, step S801;
  • Step S806 determining whether the current floating window display position and content is the same as the received message accompanying information location and content, if not, step S807 is performed, otherwise step S801 is performed;
  • Step S807 moving the floating window to the new display position in an animated manner, and updating the display content, and executing step S801.
  • steps S804 to S807 correspond to step S104 of the embodiment shown in FIG. 1.
  • the application status monitoring module in the optional embodiment of the present invention is described below.
  • the application status monitoring module may include: displaying the display of the application interface, identifying the display position of the specific interface of the application interface, and reading the configuration information of the application. And determining, according to the application configuration information, whether the display needs to be displayed, and notifying the guiding display module to perform a display hiding operation.
  • the monitoring application interface displays and recognizes the display position of the specific interface of the application interface on the screen, and can be implemented by the auxiliary service AccessibilityService, creating a service that inherits the auxiliary service, and starting the service;
  • the auxiliary service's onAccessibilityEvent(AccessibilityEvent event) function will be called and pass the current interface related information;
  • the event.getPackageName() function can get the package name of the currently launched application;
  • the event.getClassName() function can get the current startup.
  • the application configuration information function needs to be read and the application configuration information is written into the reading mode and the fixed format, and a specific configuration file can be agreed upon.
  • the SharePreference can be used to write and read the control information that needs to be booted.
  • the application status monitoring device obtains the specific SharePreference file "GUIDE" by using the package name of the application, and obtains the configuration file by using the following function: context.createPackageContext("package name”, Context.CONTEXT_IGNORE_SECURITY).getSharedPreferences("GUIDE", Context.MODE_MULTI_PROCESS) Get the control ID of the corresponding interface through the getPset(String key, Set ⁇ String>defValues) function of SharePreference, specify the Activity class name of the key input interface, and return the control ID that needs to be booted; getString(String key, String defValue) through SharePreference
  • the function obtains the description text corresponding to the control id, the convention key is passed to the control ID, and the description text is returned.
  • FIG. 9 is a process flowchart of an application state monitoring module according to an alternative embodiment of the present invention. As shown in FIG. 9, the process includes the following steps:
  • Step S901 Start an application monitoring service.
  • Step S902 Waiting for the application state change message, if there is a timer waiting for the timer to arrive the message; when there is an application state change message or the timer expires the message, step S903 is performed;
  • Step S903 Obtain a package name and a class name of the current display interface.
  • Step S904 Query whether there is a pair of the class name in the specific configuration file of the application corresponding to the package name.
  • the guide control information list if the list does not exist or is empty, step S913 is performed, otherwise step S905 is performed;
  • Step S905 taking the first control ID in the list
  • Step S906 determining whether the control corresponding to the control ID is displayed, if not displayed, executing step S907, if so, executing step S908;
  • Step S907 determining whether there is a next control ID in the list, if it does not exist, step S913 is performed, otherwise taking the next control ID, step S906 is performed;
  • Step S908 Find the description text corresponding to the control ID in the configuration file, and if not, use the default description text, such as “please click the button”;
  • Step S909 Querying the display position of the control ID corresponding to the control on the screen;
  • Step S910 Send a display guide floating window message to the boot display module, and display the display position and the display content information.
  • the display position needs to be calculated according to the current screen position of the control. Around the control, the display floating window cannot block the user from clicking. Control
  • Step S911 deleting the related information of the control in the application configuration file, indicating that the control has been booted;
  • Step S912 Start the timer if the timer is not started, otherwise restart the timer, so that the next boot information is displayed after the timer expires. Step S902 is performed;
  • Step S913 Send a hidden boot floating window message to the boot display module.
  • Step S914 Turning off the timer; and executing step S902.
  • the configuration file needs to be written according to the button or control information that needs to be booted.
  • the foregoing has explained that the configuration information needs to be written and read by the application state monitoring module and the fixed format.
  • the configuration method of the boot module and the application contract can be replaced by the way of reading and writing the ordinary file, or the way the application sends the message to the boot module, or the file including the information of the boot control needs to be written according to the application version in advance.
  • the boot module obtains the boot information by downloading the corresponding file according to the version number of the application.
  • the information of the control that needs to be booted can be written and read by the SharePreference method.
  • the application obtains the SharePreference file "GUIDE” through the context.getSharedPreferences("GUIDE", Context.MODE_MULTI_PROCESS) function; sets the control id information to be booted by the SharePreference's edit().putStringSet(key,value).commit() function, and the convention key
  • the name of the Activity class of the incoming interface the value is passed to the list of control ids that need to be booted; the edit(), getString(key, value).commit() function of SharePreference sets the description text corresponding to the control id, and the key is passed to the control id. , value passed in the description text.
  • the embodiment of the present invention focuses on uniformly displaying the display of the terminal application guidance to the boot module. If other applications need to use the boot function, only one configuration file is needed to describe the related information of the control to be booted, and the programming is simple.
  • the guiding module is unified, the guiding visual effect is unified, and when the guiding visual effect needs to be adjusted, only the relevant code of the guiding module needs to be modified, and the animation guidance with high complexity and high interest can be realized, and the application is not required to be modified, and the application is applied.
  • the application module needs to modify its own configuration file.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • S1 Obtain a configuration file of the specified application in the configuration file of the multiple applications on the terminal, where the configuration file of the specified application includes: a control identifier ID, and boot information to be displayed corresponding to the control ID; the boot information is used to guide The user operates on the control corresponding to the control ID;
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the present invention adopts the form of a floating window to display the guiding information in the vicinity of the control, and overcomes the prompts caused by the small red dot prompt, the shaking button prompting the user operation or popping up a new interface to guide the user operation in the related art.
  • the information and the operation application are incompatible, that is, the inconvenient defect is used, thereby solving the problem of poor user experience caused by the guiding function of guiding the user operation in the terminal in the related art, and improving 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)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供了一种应用的引导方法及装置、终端,其中,该方法包括:获取终端上多个应用的配置文件中的指定应用的配置文件,其中,指定应用的配置文件中包括:控件标识ID、与控件ID对应的待显示的引导信息;引导信息用于引导用户对控件ID对应的控件进行操作;在指定应用的界面上的预定位置处,以悬浮窗的形式显示待显示的引导信息;通过本发明,解决了相关技术中终端中引导用户操作的引导功能带来的用户体验度差的问题,提高了用户的体验度。

Description

应用的引导方法及装置、终端 技术领域
本发明涉及通信领域,具体而言,涉及一种应用的引导方法及装置、终端。
背景技术
在相关技术中,在使用终端的过程中,可能需要引导用户进行某些操作,比如应用升级(新增了某个功能),需要引导用户点击新功能体验;或者有一个提醒,需要用户点击某个按钮查看详情,或者是用户初次使用该应用,需要对某些功能做介绍。引导用户进行上述操作时,需要引导或者指引用户操作应用特定的按钮或者控件,在相关技术中常用的做法有两种:第一种方式是在新功能的按钮旁边添加小红点提示或者晃动按钮图标提示用户操作,第二种方式是弹出一个半透明的整体界面,进行操作说明介绍。
但是,上述第一种方式虽然简单且提示的信息量不大,但进入界面后如何操作说明的不够详细,第二种方式由于是弹出了一个新的界面,需要用户关闭该界面后才能操作应用,使用上并不方便。这两种方法都需要应用进行较多的编程,特别是第二种方法还需要整个编写界面,编程复杂度较高,而且各个应用的引导提示视效也无法统一,此外若是要实现对用户体验比较友好和富有趣味性的复杂动画引导,各应用的编程负责度就更高了,用户体验欠佳。
针对相关技术中,终端中引导用户操作的引导功能带来的用户体验度差的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种应用的引导方法及装置、终端,以至少解决相关技术中终端中引导用户操作的引导功能带来的用户体验度差的问题。
根据本发明实施例的一个方面,提供了一种应用的引导方法,包括:获取终端上多个应用的配置文件中的指定应用的配置文件,其中,指定应用的配置文件中包括:控件标识ID、与控件ID对应的待显示的引导信息;引导信息用于引导用户对控件ID对应的控件进行操作;在指定应用的界面上的预定位置处,以悬浮窗的形式显示待显示的引导信息。
在本发明实施例中,在获取终端上多个应用的配置文件中的指定应用的配置文件之前,包括:接收对指定应用的配置文件的更新设置信息,更新设置信息用于指示对指定应用的配置文件中的控件ID和待显示的引导信息进行更新设置。
在本发明实施例中,预定位置与控件在界面上的显示位置不存在重叠区域。
在本发明实施例中,在以悬浮窗的形式显示待显示的引导信息之前,该方法还包括:判断界面上悬浮窗是否处于显示状态,其中,在悬浮窗未处于显示状态的情况下,触发显示悬浮窗。
在本发明实施例中,方法还包括以下至少之一:在悬浮窗处于显示状态的情况下,判断悬浮窗在界面显示的位置与预定位置是否一致;在不一致的情况下,将悬浮窗移至预定位置处;在悬浮窗处于显示状态的情况下,判断悬浮窗显示的内容和待显示的引导信息是否一致,在不一致的情况下,在移动后的悬浮窗上显示待显示的引导信息。
在本发明实施例中,在应用的界面的预定位置处,以悬浮窗的形式显示待显示的引导信息之后,方法还包括:删除指定应用的配置文件中的控件ID和待显示的引导信息。
在本发明实施例中,在应用的界面的预定位置处,以悬浮窗的形式显示待显示的引导信息之前,方法还包括:判断控件是否处于显示状态;在控件处于显示状态的情况下,触发显示悬浮窗的指令。
在本发明实施例中,指定应用的配置文件中还包括控件信息列表,方法还包括:在控件未处于显示状态且控件信息列表中仅存在控件的情况下, 隐藏悬浮窗。
根据本发明实施例的另一方面,提供了一种应用的引导装置,包括:应用状态监控模块,引导显示模块;应用状态监控模块,设置为获取终端上多个应用的配置文件中的指定应用的配置文件,其中,指定应用的配置文件中包括:控件标识ID、与控件ID对应的待显示的引导信息;引导信息用于引导用户对控件ID对应的控件进行操作;引导显示模块,设置为在指定应用的界面上的预定位置处,以悬浮窗的形式显示待显示的引导信息。
在本发明实施例中,应用状态监控模块还设置为,接收对指定应用的配置文件的更新设置信息,更新设置信息用于指示对指定应用的配置文件中的控件ID和待显示的引导信息进行更新设置。
在本发明实施例中,预定位置与控件在界面上的显示位置不存在重叠区域。
在本发明实施例中,引导显示模块包括:判断单元,设置为判断界面上悬浮窗是否处于显示状态;第一显示单元,设置为在悬浮窗未处于显示状态的情况下,在界面上显示悬浮窗以及在悬浮窗上显示待显示的引导信息。
在本发明实施例中,引导显示模块还包括以下至少之一:第二显示单元,设置为在悬浮窗处于显示状态的情况下,判断悬浮窗在界面显示的位置与预定位置是否一致;在不一致的情况下,将悬浮窗移至预定位置处;第三显示单元,设置为在悬浮窗处于显示状态的情况下,判断悬浮窗显示的内容和待显示的引导信息是否一致,在不一致的情况下,在移动后的悬浮窗上显示待显示的引导信息。
在本发明实施例中,引导状态监控模块还设置为删除指定应用的配置文件中的控件ID和待显示的引导信息。
根据本发明实施例的另一方面,提供了一种终端,包括:应用和上述引导装置,上述应用为需要进行引导操作的应用。
本发明另一实施例提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述实施例中的步骤之一或其组合。
通过本发明实施例,获取终端上多个应用的配置文件中的指定应用的配置文件,其中,指定应用的配置文件中包括:控件标识ID、与控件ID对应的待显示的引导信息;引导信息用于引导用户对控件ID对应的控件进行操作;在指定应用的界面上的预定位置处,以悬浮窗的形式显示待显示的引导信息,即通过采用悬浮窗的形式在控件附近显示引导信息的方式,解决了相关技术中终端中引导用户操作的引导功能带来的用户体验度差的问题,提高了用户的体验度。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的应用的引导方法的流程图一;
图2是根据本发明实施例的应用的引导方法的流程图二;
图3是根据本发明实施例的应用的引导方法的流程图三;
图4是根据本发明实施例的应用的引导方法的流程图四;
图5是根据本发明实施例的应用的引导装置的结构框图;
图6是根据本发明实施例的引导显示模块54的结构框图;
图7是根据本发明可选实施例提供的应用的引导装置的结构框图;
图8是根据本发明可选实施例的引导显示模块处理的流程图;
图9是根据本发明可选实施例的应用状态监控模块的处理流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是, 在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种应用的引导方法,图1是根据本发明实施例的应用的引导方法的流程图一,如图1所示,该流程包括如下步骤:
步骤S102,获取终端上多个应用的配置文件中的指定应用的配置文件,其中,指定应用的配置文件中包括:控件标识ID、与控件ID对应的待显示的引导信息;引导信息用于引导用户对控件ID对应的控件进行操作;
步骤S104,在指定应用的界面上的预定位置处,以悬浮窗的形式显示待显示的引导信息。
通过上述步骤,采用悬浮窗的形式在控件附近显示引导信息的方式,克服了相关技术中采用小红点提示、晃动按钮提示用户操作或者弹出一个新的界面引导用户操作等引起的提示的信息和操作应用不能兼容,即使用不方便的缺陷,进而解决了相关技术中终端中引导用户操作的引导功能带来的用户体验度差的问题,提高了用户的体验度。
另外,通过步骤S102,即通过获取多个应用的配置文件中的指定应用的配置文件,可以实现对多个应用进行统一引导,即通过多个应用的配置文件可以实现对多个应用的统一引导。
需要说明的是,上述预定位置与控件在界面上的显示位置不存在重叠区域。即在界面显示的悬浮窗不能遮挡需要用户操作的控件,这样,在引导用户操作控件时,可以在通过悬浮窗显示的引导信息对该控件进行操作,能够兼顾提示的信息和操作应用,使用较方便,更好地提高了用户的体验度。
需要说明的是,上述预定位置可以是根据控件在界面上的位置进行计算得出的,需要引导的控件的位置不同,上述预定位置不同,但并不限于 此,比如上述预定位置也可以是固定的,只要满足在该预定位置处显示的悬浮窗不能覆盖需要引导的控件即可。
上述悬浮窗可以通过设置窗口比普通的应用窗口层级高,来实现设置的窗口是悬浮的。
上述步骤可以通过一个独立于各个应用的一个引导模块完成,可以对应用需要引导的操作进行统一指引,当其他的应用需要引导模块的引导功能时,只需要添加一个配置文件,来描述需要引导的控件的相关信息,编程比较简单。也可以将引导模块嵌入到某个软件中,也可以集成到终端框架中。
在本发明的一个实施例中,图2是根据本发明实施例的应用的引导方法的流程图二,在步骤S102之前,上述方法还包括:步骤S202,接收对指定应用的配置文件的更新设置信息,更新设置信息用于指示对指定应用的配置文件中的控件ID和待显示的引导信息进行更新设置。通过这种方式在应用升级版本后引导的信息内容发生变化时,只需要应用来修改自身的配置文件即可,变成比较简单。
在本发明的一个实施例中,在上述步骤S104之前,上述方法还可以包括:判断界面上悬浮窗是否处于显示状态,其中,在悬浮窗未处于显示状态的情况下,触发显示悬浮窗。在悬浮窗处于显示状态的情况下,判断悬浮窗在界面显示的位置与预定位置是否一致;在不一致的情况下,将悬浮窗移至预定位置处;和/或,在悬浮窗处于显示状态的情况下,判断悬浮窗显示的内容和待显示的引导信息是否一致,在不一致的情况下,在移动后的悬浮窗上显示待显示的引导信息。该实施例体现了引导视效的统一,即在悬浮窗处于显示状态的情况下,悬浮窗在界面显示的位置与预定位置不一致,和/或,悬浮窗显示的内容和待显示的引导信息不一致的情况下,将悬浮窗移至预定位置处,和/或,在移动后的悬浮窗上显示待显示的引导信息,即在需要调整引导视效时,通过动画引导而无需对各个应用进行修改,更好地提高了用户的体验。
在本发明的一个实施例中,图3是根据本发明实施例的应用的引导方法的流程图三,如图3所示,在步骤S104之后,上述方法还包括:步骤S302,删除指定应用的配置文件中的控件ID和待显示的引导信息。在对该控件ID进行引导之后,删除该指定应用的配置文件中与该控件有关的信息,用于表示已经对该控件进行过引导操作,因而不会出现采用与之前相同的引导信息,对控件的相同的引导操作的情况,提高了引导的效率,节省存储空间。
在本发明的一个实施例中,图4是根据本发明实施例的应用的引导方法的流程图四,如图4所示,在步骤S104之前,上述方法还包括:
步骤S402,判断控件是否处于显示状态;
步骤S404,在控件处于显示状态的情况下,触发显示悬浮窗的指令。
需要说明的是,上述配置文件可能存在控件信息列表,也可能不存在该控件信息列表,在上述配置文件中包括控件信息列表的情况下,上述方法还包括:在控件未处于显示状态且控件信息列表中仅存在控件,或者该控件信息列表为空的情况下,隐藏悬浮窗。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种应用的引导装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实 现也是可能并被构想的。
图5是根据本发明实施例的应用的引导装置的结构框图,如图5所示,该装置包括:应用状态监控模块52,引导显示模块54;
应用状态监控模块52,设置为获取终端上多个应用的配置文件中的指定应用的配置文件,其中,指定应用的配置文件中包括:控件标识ID、与控件ID对应的待显示的引导信息;引导信息用于引导用户对控件ID对应的控件进行操作;
引导显示模块54,与上述应用状态监控模块52连接,设置为在指定应用的界面上的预定位置处,以悬浮窗的形式显示待显示的引导信息。
通过上述引导装置,采用悬浮窗的形式在控件附近显示引导信息的方式,克服了相关技术中采用小红点提示、晃动按钮提示用户操作或者弹出一个新的界面引导用户操作等引起的提示的信息和操作应用不能兼容,即使用不方便的缺陷,进而解决了相关技术中终端中引导用户操作的引导功能带来的用户体验度差的问题,提高了用户的体验度。
上述应用状态监控模52可以通过多个应用的配置文件实现对多个应用的统一引导。
需要说明的是,上述预定位置与控件在界面上的显示位置不存在重叠区域。即在界面显示的悬浮窗不能遮挡需要用户操作的控件,这样,在引导用户操作控件时,可以在通过悬浮窗显示的引导信息对该控件进行操作,能够兼顾提示的信息和操作应用,使用较方便,更好地提高了用户的体验度。
上述预定位置可以是上述应用状态监控模块52根据控件在界面上的位置进行计算得出后,再通知给引导显示模块54的,因而需要引导的控件的位置不同,上述预定位置也不同,但并不限于此,比如上述预定位置也可以是固定的,只要满足在该预定位置处显示的悬浮窗不能覆盖需要引导的控件即可。
需要说明的是,上述引导装置可以独立于各个应用,可以对应用需要 引导的操作进行统一指引,当其他的应用需要引导装置的引导功能时,只需要添加一个配置文件,来描述需要引导的控件的相关信息,编程比较简单。
在本发明的一个实施例中,应用状态监控模块52还可以设置为,接收对指定应用的配置文件的更新设置信息,更新设置信息用于指示对指定应用的配置文件中的控件ID和待显示的引导信息进行更新设置。通过这种方式在应用升级版本后引导的信息内容发生变化时,只需要应用来修改自身的配置文件即可,变成比较简单。
在本发明的一个实施例中,图6是根据本发明实施例的引导显示模块54的结构框图,如图6所示,上述引导显示模块54可以包括:判断单元62,设置为判断界面上悬浮窗是否处于显示状态;第一显示单元64,与上述判断单元62连接,设置为在悬浮窗未处于显示状态的情况下,在界面上显示悬浮窗以及在悬浮窗上显示待显示的引导信息。
在本发明的一个实施例中,上述引导显示模块54还可以包括:第二显示单元66,与上述判断单元62连接,设置为在悬浮窗处于显示状态的情况下,判断悬浮窗在界面显示的位置与预定位置是否一致;在不一致的情况下,将悬浮窗移至预定位置处;第三显示单元68,与上述判断单元62连接,设置为在悬浮窗处于显示状态的情况下,判断悬浮窗显示的内容和待显示的引导信息是否一致,在不一致的情况下,在移动后的悬浮窗上显示待显示的引导信息。在本实施例中,体现了引导视效的统一,即在在悬浮窗处于显示状态的情况下,悬浮窗在界面显示的位置与预定位置不一致,和/或,悬浮窗显示的内容和待显示的引导信息不一致的情况下,将悬浮窗移至预定位置处,和/或,在移动后的悬浮窗上显示待显示的引导信息,即在需要调整引导视效时,通过动画引导而无需对各个应用进行修改,更好地提高了用户的体验。
需要说明的是,上述第二显示单元66与上述第三显示单元68可以是同一个单元,也可以是不同的单元。
在本发明的一个实施例中,上述应用状态监控模块52还设置为删除指定应用的配置文件中的控件ID和待显示的引导信息。上述应用状态监控模块52在对该控件ID进行引导之后,删除该配置文件中与该控件有关的信息,用于表示已经对该控件进行过引导操作,因而不会出现采用与之前相同的引导信息,对控件的相同的引导操作的情况,提高了引导的效率,节省了存储空间。
在本发明的一个实施例中,上述应用状态监控模块52还设置为,判断控件是否处于显示状态;以及在控件处于显示状态的情况下,触发显示悬浮窗的指令。
需要说明的是,上述配置文件可能存在控件信息列表,也可能不存在该控件信息列表,在上述配置文件中包括控件信息列表的情况下,上述方法还包括:在控件未处于显示状态且控件信息列表中仅存在控件,或者该控件信息列表为空的情况下,隐藏悬浮窗。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
在本实施例中还提供了一种终端,包括应用和图5所示实施例中的引导装置,上述应用可以为需要进行引导操作的应用,该应用可以是一个,也可以是多个。
通过上述终端,可以实现采用悬浮窗的形式在控件附近显示引导信息的方式,克服了相关技术中采用小红点提示、晃动按钮提示用户操作或者弹出一个新的界面引导用户操作等引起的提示的信息和操作应用不能兼容,即使用不方便的缺陷,进而解决了相关技术中终端中引导用户操作的引导功能带来的用户体验度差的问题,提高了用户的体验度。并且,也能够实现对多个应用的统一引导。实现了引导视效的统一。
对终端中的引导装置也可以实现图6所示实施例中的功能,详见图6所示实施例的描述,此处不再赘述。
为了更好的理解本发明,以下结合可选的实施例对本发明做进一步地解释。
本发明实施例提供了一种可选的应用的引导装置,图7是根据本发明可选实施例提供的应用的引导装置的结构框图,如图7所示,包括:引导显示模块(相当于图5所示实施例的引导显示模块54)、应用状态监控模块(相当于图5所示实施例的应用状态监控模块52)和多个需要引导操作的应用(如应用1、应用2、应用3…)。
需要引导操作的应用添加一个配置文件(相当于图1所示实施例的配置文件),该文件包括需要引导的相关操作信息,包括需要引导用户点击的按钮所在的界面名,按钮ID,和需要显示给用户的文字信息(相当于图1所示实施例的待显示的引导信息)等。
应用状态监控模块需要读取应用的配置信息,并且监控应用界面的显示情况,当配置信息包括的界面显示时,获取对应按钮ID在手机屏幕的位置,通知引导显示模块进行显示。
引导显示模块在按钮位置的上方或者下方显示悬浮窗,指引用户操作按钮(不可遮挡需用户点击的按钮)。
应用状态监控模块监控到界面切换、或者用户操作完按钮后、或者一段时间用户都没有操作后,判断当前界面是否还有需要引导的按钮或者控件,有的话通知引导显示模块将引导悬浮窗以动画的方式移动到新的按钮旁显示新提示信息,若是该界面没有待引导的按钮或者控件时则通知引导显示模块关闭引导悬浮窗。
以下介绍本发明可选实施例中的引导显示模块,引导显示采用悬浮窗形式展示,悬浮窗是在应用界面窗口层级上显示的一个窗口,以安卓手机系统为例,在安卓(android)手机系统中的实现方法为,可以通过窗口管理(WindowManager)的添加子识图(addView)方法在屏幕指定位置显示窗口,通过设置窗口为比普通应用窗口层级高的类型即可实现悬浮效果;通过WindowManager的移除子识图(removeView)方法可以隐藏之前显 示的悬浮窗;通过WindowManager的升级子识图布局(updateViewLayout)方法可以移动悬浮窗到指定位置(相当于图1所示实施例的预定位置)。
图8是根据本发明可选实施例的引导显示模块处理的流程图,如图8所示,该流程包括以下步骤:
步骤S801:等待应用状态监控模块发送消息;
步骤S802:当收到应用状态监控模块发送的消息时,判断该消息是显示引导悬浮窗还是隐藏引导悬浮窗消息;若是隐藏引导悬浮窗消息,执行步骤S803,否则执行步骤S804;
步骤S803:关闭悬浮窗,执行步骤S801;
步骤S804:应用状态监控模块发送的消息是显示引导悬浮窗,该消息会同时附带引导悬浮窗将显示的屏幕位置和需要显示的内容(相当于图1所示实施例的待显示的引导信息),判断当前悬浮窗是显示状态还是隐藏状态(即判断当前引导悬浮窗是否已经显示),若是隐藏状态(即未显示),执行步骤S805,否则执行步骤S806;
步骤S805:在消息指定的位置显示悬浮窗,并显示消息内容,执行步骤S801;
步骤S806:判断当前悬浮窗显示的位置和内容是否和收到的消息附带信息位置和内容相同,若是不相同,执行步骤S807,否则执行步骤S801;
步骤S807:将悬浮窗以动画的方式移动到新的显示位置,并更新显示内容,执行步骤S801。
需要说明的是,上述步骤S804至步骤S807相当于图1所示实施例的步骤S104。
以下介绍本发明可选实施例中的应用状态监控模块,该应用状态监控模块包括的功能可以有:监控应用界面的显示,识别出应用界面具体控件在屏幕的显示位置,读取应用的配置信息、根据应用配置信息确定是否需要显示引导,通知引导显示模块进行显示隐藏操作。以android手机系统 为例,在android手机系统中,1)监控应用界面显示和识别出应用界面具体控件在屏幕的显示位置,可以通过辅助服务AccessibilityService来实现,创建继承辅助服务的service,启动该服务;当手机应用界面切换时,辅助服务的onAccessibilityEvent(AccessibilityEvent event)函数将被调用,并传递当前界面相关信息;event.getPackageName()函数可以获得当前启动的应用的包名;event.getClassName()函数可获得当前启动界面的类名;event.getSource().findAccessibilityNodeInfosByText(id)函数可以根据控件id查询到控件的节点AccessibilityNodeInfo,在通过节点的getBoundsInScreen函数获取到控件在屏幕中的位置。2)读取应用的配置信息功能需要和应用约定配置信息写入读取方式以及固定的格式,可以约定一个特定的配置文件。在android手机系统中可通过SharePreference的方式来写入和读取需要引导的控件信息。应用状态监控装置通过应用的包名获取特定SharePreference文件“GUIDE”,使用如下函数即可获取配置文件:context.createPackageContext("包名",Context.CONTEXT_IGNORE_SECURITY).getSharedPreferences("GUIDE",Context.MODE_MULTI_PROCESS);通过SharePreference的getStringSet(String key,Set<String>defValues)函数获取对应界面的控件ID,约定key传入界面的Activity类名,返回需要引导的控件ID;通过SharePreference的getString(String key,String defValue)函数获取控件id对应的说明文字,约定key传入控件ID,返回说明文字。
图9是根据本发明可选实施例的应用状态监控模块的处理流程图,如图9所示,该流程包括以下步骤:
步骤S901:启动应用监控服务;
步骤S902:等待应用状态变化消息,若有定时器等待定时器到时消息;当有应用状态变化消息或者定时器到时消息后,执行步骤S903;
步骤S903:获取当前显示界面的包名和类名;
步骤S904:查询包名对应的应用的特定配置文件中是否有该类名对 应的引导控件信息列表;若是列表不存在或者为空,则执行步骤S913,否则执行步骤S905;
步骤S905:取列表中的第一控件ID;
步骤S906:判断控件ID对应的控件是否显示,若是没有显示则执行步骤S907,若显示着,执行步骤S908;
步骤S907:判断列表中是否存在下一控件ID,若是不存在,执行步骤S913,否则取下一控件ID,执行步骤S906;
步骤S908:在配置文件中查找控件ID对应的说明文字,若没有查找到则使用默认说明文字,比如“请点击该按钮”;
步骤S909:查询控件ID对应控件在屏幕上的显示位置;
步骤S910:向引导显示模块发送显示引导悬浮窗消息,并附带显示位置和显示内容信息,显示位置需要根据控件当前在屏幕位置计算得出,在控件的周围,显示悬浮窗不能遮挡需要用户点击的控件;
步骤S911:删除应用配置文件中该控件相关信息,表明已经对该控件进行过引导操作;
步骤S912:若定时器没有启动则启动定时器,否则重启定时器,以便定时器到时后进行下一个引导信息显示。执行步骤S902;
步骤S913:向引导显示模块发送隐藏引导悬浮窗消息;
步骤S914:关闭定时器;执行步骤S902。
对于应用侧,需要根据自身需要引导的按钮或者控件信息进行配置文件写入,前面已经说明需要和应用状态监控模块约定配置信息写入读取方式以及固定的格式。此外引导模块和应用约定的配置文件编写方法也可以替换为读写普通文件的方式,或者应用发送消息给引导模块的方式,或者是预先根据应用版本编写好包括需要引导控件信息的文件,将其放到网络服务器中,引导模块根据应用的版本号下载对应文件的方式来获取引导信息。
以android手机系统为例,在android手机系统中,可通过SharePreference的方式来写入和读取需要引导的控件信息。应用通过context.getSharedPreferences("GUIDE",Context.MODE_MULTI_PROCESS)函数获取SharePreference文件“GUIDE”;通过SharePreference的edit().putStringSet(key,value).commit()函数设置需要引导的控件id信息,约定key传入界面的Activity类名,value传入需要引导的控件id列表;通过SharePreference的edit().getString(key,value).commit()函数设置控件id对应的说明文字,约定key传入控件id,value传入说明文字。在应用安装后或者升级后第一次启动时使用以上方法,写入需要引导的控件信息即可。
本发明实施例侧重于将终端应用引导的显示统一放到引导模块进行,其他的应用若需要使用该引导功能,则只需添加一个配置文件,描述需要引导的控件的相关信息,编程简单。而引导模块统一后,引导视效统一,并且当需要调整引导视效时,仅需修改引导模块相关代码,也可以实现复杂度高、趣味性强的动画引导,无需各个应用进行修改,而应用升级版本后引导的内容发生变化后,也只需要应用模块修改自身的配置文件即可。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,获取与终端上多个应用的配置文件中的指定应用的配置文件,其中,指定应用的配置文件中包括:控件标识ID、与控件ID对应的待显示的引导信息;引导信息用于引导用户对控件ID对应的控件进行操作;
S2,在指定应用的界面上的预定位置处,以悬浮窗的形式显示待显示的引导信息。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
通过上述描述可知,本发明采用悬浮窗的形式在控件附近显示引导信息的方式,克服了相关技术中采用小红点提示、晃动按钮提示用户操作或者弹出一个新的界面引导用户操作等引起的提示的信息和操作应用不能兼容,即使用不方便的缺陷,进而解决了相关技术中终端中引导用户操作的引导功能带来的用户体验度差的问题,提高了用户的体验度。

Claims (15)

  1. 一种应用的引导方法,包括:
    获取终端上多个应用的配置文件中的指定应用的配置文件,其中,所述指定应用的配置文件中包括:控件标识ID、与所述控件ID对应的待显示的引导信息;所述引导信息用于引导用户对所述控件ID对应的控件进行操作;
    在所述指定应用的界面上的预定位置处,以悬浮窗的形式显示所述待显示的引导信息。
  2. 根据权利要求1所述的方法,其中,获取终端上多个应用的配置文件中的指定应用的配置文件之前,包括:
    接收对所述指定应用的配置文件的更新设置信息,所述更新设置信息用于指示对所述指定应用的配置文件中的所述控件ID和所述待显示的引导信息进行更新设置。
  3. 根据权利要求1所述的方法,其中,所述预定位置与所述控件在所述界面上的显示位置不存在重叠区域。
  4. 根据权利要求1或3所述的方法,其中,在以悬浮窗的形式显示所述待显示的引导信息之前,所述方法还包括:
    判断所述界面上所述悬浮窗是否处于显示状态,其中,在所述悬浮窗未处于显示状态的情况下,触发显示所述悬浮窗。
  5. 根据权利要求4所述的方法,其中,所述方法还包括以下至少之一:
    在所述悬浮窗处于显示状态的情况下,判断所述悬浮窗在所述界面显示的位置与所述预定位置是否一致;在不一致的情况下,将所述悬浮窗移至所述预定位置处;
    在所述悬浮窗处于显示状态的情况下,判断所述悬浮窗显示的内 容和所述待显示的引导信息是否一致,在不一致的情况下,在移动后的所述悬浮窗上显示所述待显示的引导信息。
  6. 根据权利要求1所述的方法,其中,在所述应用的界面的预定位置处,以悬浮窗的形式显示所述待显示的引导信息之后,所述方法还包括:
    删除所述指定应用的配置文件中的所述控件ID和所述待显示的引导信息。
  7. 根据权利要求1所述的方法,其中,在所述应用的界面的预定位置处,以悬浮窗的形式显示所述待显示的引导信息之前,所述方法还包括:
    判断所述控件是否处于显示状态;
    在所述控件处于显示状态的情况下,触发显示所述悬浮窗的指令。
  8. 根据权利要求7所述的方法,其中,所述指定应用的配置文件中还包括控件信息列表,所述方法还包括:在所述控件未处于显示状态且所述控件信息列表中仅存在所述控件的情况下,隐藏所述悬浮窗。
  9. 一种应用的引导装置,包括:应用状态监控模块,引导显示模块;
    所述应用状态监控模块,设置为获取终端上多个应用的配置文件中的指定应用的配置文件,其中,所述指定应用的配置文件中包括:控件标识ID、与所述控件ID对应的待显示的引导信息;所述引导信息用于引导用户对所述控件ID对应的控件进行操作;
    所述引导显示模块,设置为在所述指定应用的界面上的预定位置处,以悬浮窗的形式显示所述待显示的引导信息。
  10. 根据权利要求9所述的装置,其中,所述应用状态监控模块 还设置为,接收对所述指定应用的配置文件的更新设置信息,所述更新设置信息用于指示对所述指定应用的配置文件中的所述控件ID和所述待显示的引导信息进行更新设置。
  11. 根据权利要求9所述的装置,其中,所述预定位置与所述控件在所述界面上的显示位置不存在重叠区域。
  12. 根据权利要求9所述的装置,其中,所述引导显示模块包括:
    判断单元,设置为判断所述界面上所述悬浮窗是否处于显示状态;
    第一显示单元,设置为在所述悬浮窗未处于显示状态的情况下,在所述界面上显示所述悬浮窗以及在所述悬浮窗上显示所述待显示的引导信息。
  13. 根据权利要求12所述的装置,其中,所述引导显示模块还包括以下至少之一:
    第二显示单元,设置为在所述悬浮窗处于显示状态的情况下,判断所述悬浮窗在所述界面显示的位置与所述预定位置是否一致;在不一致的情况下,将所述悬浮窗移至所述预定位置处;
    第三显示单元,设置为在所述悬浮窗处于显示状态的情况下,判断所述悬浮窗显示的内容和所述待显示的引导信息是否一致,在不一致的情况下,在移动后的所述悬浮窗上显示所述待显示的引导信息。
  14. 根据权利要求9所述的装置,其中,所述引导状态监控模块还设置为删除所述指定应用的配置文件中的所述控件ID和所述待显示的引导信息。
  15. 一种终端,包括:应用和权利要求9至14中任一项所述的装置,所述应用为需要进行引导操作的应用。
PCT/CN2016/107319 2015-12-18 2016-11-25 应用的引导方法及装置、终端 WO2017101663A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510964935.6 2015-12-18
CN201510964935.6A CN106897081A (zh) 2015-12-18 2015-12-18 应用的引导方法及装置、终端

Publications (1)

Publication Number Publication Date
WO2017101663A1 true WO2017101663A1 (zh) 2017-06-22

Family

ID=59055753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/107319 WO2017101663A1 (zh) 2015-12-18 2016-11-25 应用的引导方法及装置、终端

Country Status (2)

Country Link
CN (1) CN106897081A (zh)
WO (1) WO2017101663A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901807A (zh) * 2019-02-25 2019-06-18 努比亚技术有限公司 一种显示方法、穿戴式设备及计算机可读存储介质
CN111258576A (zh) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 界面生成方法、装置、电子设备及计算机存储介质
CN111327756A (zh) * 2018-12-14 2020-06-23 青岛海信移动通信技术股份有限公司 终端的操作引导方法和终端
CN113434075A (zh) * 2021-07-08 2021-09-24 浙江赛思电子科技有限公司 一种信息展示方法、装置及电子设备

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844331B (zh) * 2017-11-23 2021-01-01 腾讯科技(成都)有限公司 生成引导配置文件的方法、装置及设备
CN109324857B (zh) * 2018-09-07 2021-10-08 腾讯科技(武汉)有限公司 一种用户引导实现方法、装置和存储介质
CN109976618B (zh) * 2019-03-11 2021-07-13 北京达佳互联信息技术有限公司 新功能的提示方法和提示装置以及计算机可读存储介质
CN110069177A (zh) * 2019-03-13 2019-07-30 平安普惠企业管理有限公司 电子装置、应用程序操作引导方法及存储介质
CN112231021B (zh) * 2019-06-28 2023-08-15 百度在线网络技术(北京)有限公司 软件新功能的引导方法和装置
CN111752658B (zh) * 2020-06-23 2024-06-25 北京酷讯科技有限公司 管理功能教程的方法、装置、设备以及存储介质
CN112068880A (zh) * 2020-09-10 2020-12-11 工银科技有限公司 导引页面的生成和控制方法、以及生成和控制装置
CN112114925B (zh) * 2020-09-25 2021-09-21 北京字跳网络技术有限公司 用于用户引导的方法、装置、设备和存储介质
CN112587925A (zh) * 2020-12-31 2021-04-02 网易(杭州)网络有限公司 引导信息的显示方法、装置、存储介质及计算机设备
CN113342438A (zh) * 2021-06-10 2021-09-03 网易(杭州)网络有限公司 应用程序的引导方法、装置、设备及介质
CN113867721A (zh) * 2021-09-01 2021-12-31 北京达佳互联信息技术有限公司 页面引导生成方法、装置、设备及存储介质
CN115277455A (zh) * 2022-05-26 2022-11-01 深圳市世强元件网络有限公司 一种应用组件更新的指引方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617082A (zh) * 2013-10-23 2014-03-05 北京奇虎科技有限公司 基于悬浮操作板的应用间通讯方法和装置
CN103763312A (zh) * 2013-12-31 2014-04-30 广州华多网络科技有限公司 功能启动方法、装置及客户端
CN103914288A (zh) * 2012-12-31 2014-07-09 鼎捷软件股份有限公司 判断控件状态的方法
CN104375869A (zh) * 2014-11-28 2015-02-25 北京奇虎科技有限公司 自启动应用控制方法及装置
CN104898952A (zh) * 2015-06-16 2015-09-09 魅族科技(中国)有限公司 一种终端分屏实现方法及终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030048311A1 (en) * 2001-09-07 2003-03-13 Sayling Wen System and method for computer operation guidance
CN102622210B (zh) * 2011-01-27 2015-05-27 腾讯科技(深圳)有限公司 一种显示帮助信息的方法和装置
CN103488375A (zh) * 2012-06-13 2014-01-01 中兴通讯股份有限公司 一种终端交互方法及终端
CN103324390B (zh) * 2013-06-03 2016-12-28 贝壳网际(北京)安全技术有限公司 用于页面浏览的交互方法、浏览器装置以及移动终端
CN104536782B (zh) * 2014-12-17 2018-07-17 广州酷狗计算机科技有限公司 引导内容展示方法、文件生成方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914288A (zh) * 2012-12-31 2014-07-09 鼎捷软件股份有限公司 判断控件状态的方法
CN103617082A (zh) * 2013-10-23 2014-03-05 北京奇虎科技有限公司 基于悬浮操作板的应用间通讯方法和装置
CN103763312A (zh) * 2013-12-31 2014-04-30 广州华多网络科技有限公司 功能启动方法、装置及客户端
CN104375869A (zh) * 2014-11-28 2015-02-25 北京奇虎科技有限公司 自启动应用控制方法及装置
CN104898952A (zh) * 2015-06-16 2015-09-09 魅族科技(中国)有限公司 一种终端分屏实现方法及终端

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258576A (zh) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 界面生成方法、装置、电子设备及计算机存储介质
CN111258576B (zh) * 2018-12-03 2023-04-25 阿里巴巴集团控股有限公司 界面生成方法、装置、电子设备及计算机存储介质
CN111327756A (zh) * 2018-12-14 2020-06-23 青岛海信移动通信技术股份有限公司 终端的操作引导方法和终端
CN109901807A (zh) * 2019-02-25 2019-06-18 努比亚技术有限公司 一种显示方法、穿戴式设备及计算机可读存储介质
CN109901807B (zh) * 2019-02-25 2022-03-25 努比亚技术有限公司 一种显示方法、穿戴式设备及计算机可读存储介质
CN113434075A (zh) * 2021-07-08 2021-09-24 浙江赛思电子科技有限公司 一种信息展示方法、装置及电子设备
CN113434075B (zh) * 2021-07-08 2022-07-19 浙江赛思电子科技有限公司 一种信息展示方法、装置及电子设备

Also Published As

Publication number Publication date
CN106897081A (zh) 2017-06-27

Similar Documents

Publication Publication Date Title
WO2017101663A1 (zh) 应用的引导方法及装置、终端
EP2919496B1 (en) Method for realizing downloading of mobile terminal application program and mobile terminal
TWI497311B (zh) 跨裝置通訊傳輸系統及其方法
RU2673697C2 (ru) Плавные переходы вызовов
KR20220127887A (ko) 생방송 데이터 표시 방법 및 장치, 디바이스 및 저장 매체
US20160188363A1 (en) Method, apparatus, and device for managing tasks in multi-task interface
WO2015123937A1 (zh) 一种分屏处理方法、装置及计算机存储介质
CN104572042A (zh) 移动终端设备的跨平台中间件装置及其实现方法
WO2020221189A1 (zh) 一种管理寄宿程序的方法与设备
WO2013178124A1 (zh) 应用的快捷方式的处理方法及装置
KR102270953B1 (ko) 전자 장치에서 화면을 표시하는 방법 및 이를 위한 전자 장치
JP6820426B2 (ja) デジタルメディアコンテンツ関連イベントに対してパーソナライズされたカレンダ
CN109800135B (zh) 一种信息处理方法及终端
CN103677527A (zh) 适于移动终端的悬浮问题交互控件显示方法和装置
US20190121495A1 (en) Method and device for a guided application to enhance a user interface
WO2018130085A1 (zh) 一种页面展示方法及装置
WO2017201965A1 (zh) 通知消息的显示方法及装置、终端
KR20190032861A (ko) 전자 장치 및 그의 제어 방법
KR102018931B1 (ko) 스타터 애플리케이션에서의 맥락적 권유 기법
WO2016008410A1 (zh) 视频播放方法及系统
CN111143019B (zh) 一种移动终端弹窗的控制方法及系统
US20150149966A1 (en) Method and apparatus for generating an explorer for user interface prototyping
JP2010066835A (ja) 情報処理装置及びプログラム
CN110083407B (zh) 小程序中步骤条的实现方法、装置、电子设备及存储介质
CN113010157A (zh) 一种代码生成方法及装置

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: 16874720

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: 16874720

Country of ref document: EP

Kind code of ref document: A1