WO2020119484A1 - 一种信息提示的方法、装置、电子设备及可读介质 - Google Patents

一种信息提示的方法、装置、电子设备及可读介质 Download PDF

Info

Publication number
WO2020119484A1
WO2020119484A1 PCT/CN2019/122098 CN2019122098W WO2020119484A1 WO 2020119484 A1 WO2020119484 A1 WO 2020119484A1 CN 2019122098 W CN2019122098 W CN 2019122098W WO 2020119484 A1 WO2020119484 A1 WO 2020119484A1
Authority
WO
WIPO (PCT)
Prior art keywords
activity
prompt information
stack
view
information
Prior art date
Application number
PCT/CN2019/122098
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 WO2020119484A1 publication Critical patent/WO2020119484A1/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
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the embodiments of the present disclosure relate to the field of computer technology, and in particular, to an information prompting method, device, electronic device, and readable medium.
  • information prompting is an indispensable interactive method, such as various prompts such as login failure and sharing success.
  • the omission of prompt information sometimes brings great trouble to users, and even affects users' information security.
  • Activity as one of the four major components of the Android (Andriod) system, is also the parent view carrier of the prompt information. That is to say, the prompt information generated in the Activity can only be displayed in the current Activity. Once it enters another Activity, then The prompt message will not be displayed. How to ensure the timeliness and stability of the information prompt is a technical problem urgently needed to be solved by those skilled in the art.
  • the present disclosure provides an information prompting method, device, electronic equipment and readable medium, which can achieve the effect of ensuring the timeliness and stability of the information prompting.
  • a method of information prompting including:
  • the activity at the top of the stack is not the activity that generates the prompt information, it is determined that the target view of the activity at the top of the stack is the parent view;
  • the method further includes:
  • the activity at the top of the stack is an activity that generates prompt information, it is determined whether there is a pop-up window in the activity that generates the prompt information;
  • the method further includes:
  • the activity at the top of the stack is an activity that generates prompt information, it is determined whether the activity at the top of the stack is an activity to be updated;
  • the prompt information in the cache module is displayed.
  • storing the prompt information in the cache module includes:
  • the prompt information is stored in the cache module.
  • the prompt information in the cache module is displayed, including:
  • top-of-stack activity After the top-of-stack activity is updated, identify whether the updated top-of-stack activity is an activity that interacts with the user;
  • the prompt information is obtained from the cache module, and the prompt information is displayed.
  • an information prompting device which includes:
  • the stack top reading module is configured to read the top activity of the activity stack
  • the first parent view determination module is configured to determine that the target view of the stack top activity is the parent view if the stack top activity is not an activity that generates prompt information;
  • the prompt information display module is configured to add the view of the prompt information to the parent view for display.
  • the device further includes:
  • the pop-up window recognition module is configured to determine whether a pop-up window exists in the activity that generates the prompt information if the activity at the top of the stack is an activity that generates the prompt information;
  • the second parent view determination module is configured to determine that the target view of the window where the pop-up window is located is the parent view if the pop-up window recognition module recognizes as being present;
  • the prompt information display module is configured to add the view of the prompt information to the parent view for display.
  • the prompt information display module includes:
  • the customized content layout obtaining unit is configured to obtain the customized content layout of the prompt information
  • the prompt information display unit is configured to establish a view instance of a customized content layout, and add the view instance to a parent view for display.
  • the device further includes:
  • the stack top update identification module is configured to determine whether the stack top activity is an activity to be updated if the stack top activity is an activity that generates prompt information;
  • the prompt information is stored in the module, and it is configured to store the prompt information in the cache module if the stack top update identification module recognizes that the top stack activity is the Activity to be updated;
  • the cache prompt information reading module is configured to display the prompt information in the cache module after the activity at the top of the stack is updated.
  • storing the prompt information in the module includes:
  • the stored prompt information judgment unit is configured to judge whether there is stored prompt information in the cache module
  • the cache replacement unit is configured to delete the stored prompt information and store the prompt information in the cache module if the stored prompt information judgment unit judges that there is.
  • the cache unit is configured to store the prompt information in the cache module if the prompt information judgment unit judges that there is no.
  • the cache prompt information reading module includes:
  • the stack top state determination unit is configured to identify whether the updated stack top activity is an activity that interacts with the user after the stack top activity is updated;
  • the cache prompt information reading unit is configured to obtain prompt information from the cache module and display the prompt information if the stack top state determination unit determines that it is yes.
  • an electronic device including a memory, a processor, and a computer program stored on the memory and executable by the processor, and the processor is implemented as implemented in the present disclosure when the processor executes the computer program Examples of information prompting method.
  • a computer-readable medium on which a computer program is stored, which when executed by a processor implements the method of information prompting as described in an embodiment of the present disclosure.
  • the technical solution provided by the present disclosure is to read the activity on the top of the stack of the activity stack; if the activity on the top of the stack is not the activity that generates the prompt information, determine that the target view of the activity on the top of the stack is the parent view; add the view of the prompt information to Displayed in the parent view.
  • FIG. 1 is a flowchart of a method of information prompting according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method of information prompting according to another embodiment of the present disclosure.
  • FIG. 3 is a flowchart of a method of information prompting according to yet another embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an information prompting device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • each embodiment also provides optional features and examples.
  • the various features described in the embodiments can be combined to form multiple optional solutions.
  • Each numbered embodiment should not be regarded as As a technical solution.
  • FIG. 1 is a flowchart of an information prompting method according to an embodiment of the present disclosure. This embodiment is applicable to information prompting.
  • the method may be performed by an information prompting apparatus provided by an embodiment of the present disclosure.
  • the apparatus may be implemented by software and/or Or hardware, and can be integrated in electronic devices such as clients, terminals, servers, and other Android systems.
  • the information prompting method includes:
  • the Activity stack can be a pre-built Activity monitoring module by building a base class Activity, and let all Activities inherit from the base class Activity, monitoring the creation and destruction of the Activity, thereby maintaining the Activity stack of the process.
  • BaseActivity the business-side activities that actually need to be monitored all inherit from BaseActivity; BaseActivity rewrites the onCreate, onResume, and onDestroy methods of the system's own Activity. In this way, you can implement the instantiation of the Activity object and the synchronization of the Activity stack in the BaseActivity method, and simultaneously monitor and detect whether each Activity is an activity that interacts with the user.
  • the activity interacting with the user can be realized by detecting whether the on-stack activity is executing the onResume method.
  • the onCreate method of BaseActivity is executed to push the new Actvity into the Activity stack; when an Activity is destroyed, the onDestroy method of BaseActivity is executed to move the Activity from the top of the Actvity stack pop up.
  • the onCreate method corresponds to the onDestroy method, which is called when the Activity is created and destroyed, and the onResume method is called when the Activity interacts with the user.
  • the prompt information may be Snackbar (a kind of prompt information control in the Android system). If the Activity that generates the prompt information is not the current top of the stack, it can be determined that the current stack top is after the Activity that generates the prompt information is overwritten or popped up Activity. In this case, the target view of the top-of-stack activity, such as the DecorView of the top-of-stack activity, is used as the parent view of the prompt information. Since the prompt information in the prior art relies on the DecorView of the Activity that generates the prompt information, the technical solution decouples the prompt information from the Activity that generated the prompt information, so that the prompt information can still be displayed after the Activity is destroyed or overwritten .
  • Snackbar a kind of prompt information control in the Android system.
  • the prompt information can be displayed in the current Activity view at the top of the stack according to the original format or other formats. In this way, the user can view the prompt information when the Activity that generates the prompt information is no longer on the top of the Activity stack, to avoid repeated operations or improper operations caused by the failure to receive the prompt information during the user's use, which affects the user's information security. Wait.
  • the technical solution provided by the embodiment of the present disclosure reads the activity on the top of the stack of the activity; if the activity on the top of the stack is not the activity that generates the prompt information, the target view of the activity on the top of the stack is determined to be the parent view; the view of the prompt information Add to the parent view.
  • FIG. 2 is a flowchart of an information prompting method according to another embodiment of the present disclosure.
  • This technical solution can be combined with the optional solutions of the above technical solutions.
  • the method further includes: if the activity on the top of the stack is an activity that generates prompt information, determine whether there is a pop-up window in the activity that generates the prompt information; if it exists, determine The target view of the window where the pop-up window is located is the parent view; the view of the prompt information is added to the parent view for display.
  • the method for prompting information includes:
  • the pop-up window may be the Window where Dialog or PopUpWindow is located. Since the display of the prompt information is based on the view of the activity that generated the prompt information, when the current top of the stack is the activity that generates the prompt information, it is necessary to determine whether the activity that generates the prompt information has a pop-up window, because the pop-up window is in It is displayed on the view of the Activity that generates the prompt information. If the prompt information is displayed when there is a pop-up window, it will cause the information to be blocked, thereby affecting the user's reading of the prompt information. Therefore, in order to solve this technical problem, we need to judge whether the pop-up window of the Activity that generates the prompt information exists.
  • the specific judgment can be whether the pop-up window information is generated by the interceptor or whether it is intercepted by the pop-up window.
  • the displayed method is being executed. If it is intercepted, it can be determined that the Activity that generates the prompt message has a pop-up window.
  • the DecorView of the Window where the Dialog or PopUpWindow is located can be obtained as the parent view of the prompt information.
  • the prompt information may be SnackBar.
  • the DecorView of the Activity that generates the prompt information can be directly used as the parent view of the prompt information.
  • this technical solution provides a method for displaying the prompt information when there is a pop-up window in the Activity that generates the prompt information.
  • the view of the pop-up window is used as the parent view of the prompt information.
  • a view of the prompt information to the parent view for display, including: obtaining a customized content layout of the prompt information; establishing a view instance of the customized content layout, and adding the view instance To the parent view.
  • the customized content layout may be customized by developers or users before using the electronic device, such as changing the display format and display font of the prompt information. You can create a view instance of the customized content layout and display the view instance.
  • the advantage of this setting is to provide users with prompt information with a customizable content layout, thereby improving the readability of the information and playing a prompt role. It is conducive to improving the user experience of using electronic devices.
  • FIG. 3 is a flowchart of a method for information prompting according to yet another embodiment of the present disclosure.
  • This technical solution can be combined with the optional solutions of the above technical solutions.
  • the method further includes: if the activity on the top of the stack is an activity that generates prompt information, determine whether the activity on the top of the stack is an activity to be updated; The prompt information is stored in the cache module; after the activity at the top of the stack is updated, the prompt information in the cache module is displayed.
  • the information prompting method includes:
  • the Activity to be updated includes two situations, one is to pop the Activity that generates the prompt information from the top of the stack, that is, to destroy, and the other is to put a new Activity on the stack and generate the Activity that prompts the information.
  • it may be to detect the update activity of the activity stack of the business party, which may specifically depend on the business party informing whether the module will disappear immediately.
  • it is not limited to determine whether the activity at the top of the stack is the activity to be updated in this way, and can also be determined by any other technical means. As long as it can be determined that the activity at the top of the stack is about to be updated, this technical solution can be adopted .
  • this solution adopts a preset cache module and uses the cache module to cache the prompt information.
  • the prompt content and duration of the prompt information may be stored by the cache module.
  • storing the prompt information in the cache module includes: judging whether there is stored prompt information in the cache module; if there is, deleting the stored prompt information, and Store the prompt information in the cache module; if not, store the prompt information in the cache module.
  • the cache module provided by this technical solution adopts a method of storing only one prompt information, that is, if If there is cached information before the prompt information is stored, the cached information is replaced with the prompt information. The advantage of this setting is that the prompt information can be displayed more accurately without causing a longer delay of the prompt information.
  • the updated view of the activity at the top of the stack can be used as a parent view to read and display the prompt information from the cache module.
  • the top-of-stack activity it is detected whether the activity that generates the prompt information has been destroyed or overwritten, and if so, the current view of the top-of-stack activity is acquired as the parent view. If not, the generated prompt information is cached.
  • the cached prompt information is extracted and displayed, and the Snackbar can be popped up.
  • This technical solution provides a method for caching the prompt information based on the above technical solutions.
  • This method relies on the pre-set cache module.
  • the advantage of this setting is that the prompt information can be displayed during the activity update process. , At the same time, it avoids the problem that the prompt information cannot be displayed normally due to Activity update, and improves the stability of the prompt information display.
  • the information prompting device includes:
  • the stack top reading module 410 reads the top activity of the activity stack
  • the first parent view determining module 420 determines that the target view of the activity at the top of the stack is the parent view;
  • the prompt information display module 430 adds the view of the prompt information to the parent view for display.
  • the technical solution provided by the embodiment of the present disclosure reads the activity on the top of the stack of the activity; if the activity on the top of the stack is not the activity that generates the prompt information, the target view of the activity on the top of the stack is determined to be the parent view; the view of the prompt information Add to the parent view.
  • the device further includes:
  • a pop-up window recognition module if the activity at the top of the stack is an activity that generates prompt information, it is determined whether there is a pop-up window for the activity that generates the prompt information;
  • a second parent view determination module if the pop-up window recognition module recognizes that it exists, it determines that the target view of the window where the pop-up window is located is the parent view;
  • the prompt information display module adds the view of the prompt information to the parent view for display.
  • the prompt information display module includes:
  • a custom content layout obtaining unit which obtains the custom content layout of the prompt information
  • the prompt information display unit establishes a view instance of the customized content layout, and adds the view instance to the parent view for display.
  • the device further includes:
  • a stack top update identification module if the stack top activity is an activity that generates prompt information, it is determined whether the stack top activity is an activity to be updated;
  • the prompt information is stored in the module, and if the stack top update identification module recognizes that the top stack activity is the Activity to be updated, the prompt information is stored in the cache module;
  • the cache prompt information reading module displays the prompt information in the cache module after the activity at the top of the stack is updated.
  • storing the prompt information in the module includes:
  • the stored prompt information judgment unit judges whether there is stored prompt information in the cache module
  • the cache replacement unit if the stored prompt information judgment unit judges that there is, deletes the stored prompt information, and stores the prompt information in the cache module;
  • the cache unit if the prompt information judging unit has stored the judgment as none, then the prompt information is stored in the cache module.
  • the cache prompt information reading module includes:
  • the stack top state determination unit after the stack top activity is updated, identifies whether the updated stack top activity is an activity that interacts with the user;
  • the cache prompt information reading unit if the stack top state determination unit determines yes, then obtains prompt information from the cache module and displays the prompt information.
  • the above-mentioned products can execute the method provided by any embodiment of the present disclosure, and have function modules and beneficial effects corresponding to the execution method.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle electronic devices ( For example, electronic devices such as car navigation electronic devices) and fixed electronic devices such as digital TVs, desktop computers, and the like.
  • the electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the functions and use scope of the embodiments of the present disclosure.
  • the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be loaded into random access according to a program stored in a read-only memory (ROM) 502 or from the storage device 508
  • the program in the memory (RAM) 503 performs various appropriate operations and processes.
  • various programs and data necessary for the operation of the electronic device 500 are also stored.
  • the processing device 501, ROM 502, and RAM 503 are connected to each other via a bus 504.
  • An input/output (I/O) interface 505 is also connected to the bus 504.
  • the following devices can be connected to the I/O interface 505: including input devices 506 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speaker, vibration
  • input devices 506 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.
  • An output device 507 such as a storage device; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509.
  • the communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 5 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or provided instead.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 509, or from the storage device 508, or from the ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiments of the present disclosure are executed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable medium or any combination of the two.
  • the computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer readable media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable Read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • the computer-readable medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal that is propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable medium, and the computer-readable signal medium may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: electric wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device When the one or more programs are executed by the electronic device, the electronic device is caused to: read the top activity of the activity stack; if the top activity of the stack is not a prompt Information Activity, determine the target view of the activity on the top of the stack as the parent view; add the view of the prompt information to the parent view for display.
  • the computer-readable medium carries one or more programs.
  • the electronic device When the one or more programs are executed by the electronic device, the electronic device is caused to: read the top activity of the activity stack; if the top activity is not To generate the activity of the prompt information, determine the target view of the activity at the top of the stack as the parent view; add the view of the prompt information to the parent view for display.
  • the computer program code for performing the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
  • the above programming languages include object-oriented programming languages such as Java, Smalltalk, C++, as well as conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code may be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code that contains one or more logic functions Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks represented in succession may actually be executed in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.
  • each block in the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented with dedicated hardware-based systems that perform specified functions or operations Or, it can be realized by a combination of dedicated hardware and computer instructions.
  • the units described in the embodiments of the present disclosure may be implemented in software or hardware. Among them, the name of the module or unit does not constitute a restriction on the module or unit itself under certain circumstances.

Landscapes

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

Abstract

本公开涉及一种信息提示的方法、装置、电子设备及可读介质。该方法包括:读取Activity栈的栈顶Activity;若该栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;将提示信息的视图添加到父视图中进行显示。通过采用本公开所提供的技术方案,可以实现保证信息提示的及时性和稳定性的效果。

Description

一种信息提示的方法、装置、电子设备及可读介质
相关申请的交叉引用
本申请要求2018年12月10日在中国知识产权局提交的中国专利申请No.201811505062.2的优先权,通过引用将该中国专利申请公开的全部内容并入本文。
技术领域
本公开实施例涉及计算机技术领域,尤其涉及一种信息提示的方法、装置、电子设备及可读介质。
背景技术
随着社会经济的不断发展,各式各样的终端应运而生,在用户与终端交互的过程中,提示信息成为了简单而又重要的信息反馈方式。
在终端侧,信息提示是一个必不可少的交互方式,例如登陆失败、分享成功等多种提示。提示信息的遗漏有时会给用户带来巨大的困扰,甚至影响用户的信息安全。而Activity作为安卓(Andriod)系统的四大组件之一,也是提示信息的父视图载体,也就是说,在Activity中生成的提示信息,只能在当前Activity中进行显示,一旦进入其他Activity,则提示信息将无法显示出来。如何能够保证信息提示的及时性和稳定性,是本领域技术人员亟待解决的技术问题。
发明内容
本公开提供一种信息提示的方法、装置、电子设备及可读介质,可以实现保证信息提示的及时性和稳定性的效果。
根据本公开的第一方面,提供了一种信息提示的方法,该方法包括:
读取Activity栈的栈顶Activity;
若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;以及
将提示信息的视图添加到父视图中显示。
进一步的,在读取Activity栈的栈顶Activity之后,所述方法还包括:
若所述栈顶Activity是生成提示信息的Activity,则判断生成提示信息的Activity是否存在弹窗;
若存在弹窗,则确定所述弹窗所在窗口的目标视图为父视图;以及
将提示信息的视图添加到父视图中显示。
进一步的,将提示信息的视图添加到父视图中显示,包括:
获取提示信息的定制内容布局;
建立定制内容布局的视图实例,并将所述视图实例添加到所述父视图中进行显示。
进一步的,在读取Activity栈的栈顶Activity之后,所述方法还包括:
若所述栈顶Activity是生成提示信息的Activity,则判断栈顶Activity是否为待更新的Activity;
若是,则将所述提示信息存储到缓存模块中;以及
在栈顶Activity更新后,显示所述缓存模块中的提示信息。
进一步的,将所述提示信息存储到缓存模块中,包括:
判断缓存模块中是否有已存入提示信息;
若有,则将所述已存入提示信息删除,并将提示信息存入缓存模块;
若无,则将提示信息存入缓存模块。
进一步的,在栈顶Activity更新后,显示所述缓存模块中的提示信息,包括:
在栈顶Activity更新后,识别更新后的栈顶Activity是否为与用户交互的Activity;
若是,则从所述缓存模块中获取提示信息,并显示所述提示信息。
根据本公开的第二方面,提供了一种信息提示的装置,该装置包括:
栈顶读取模块,被配置为读取Activity栈的栈顶Activity;
第一父视图确定模块,被配置为若所述栈顶Activity不是生成提示信息 的Activity,则确定栈顶Activity的目标视图为父视图;
提示信息显示模块,被配置为把提示信息的视图添加到父视图中显示。
进一步的,所述装置还包括:
弹窗识别模块,被配置为若所述栈顶Activity是生成提示信息的Activity,则判断生成提示信息的Activity是否存在弹窗;
第二父视图确定模块,被配置为若弹窗识别模块识别为存在,则确定所述弹窗所在窗口的目标视图为父视图;
提示信息显示模块,被配置为把提示信息的视图添加到父视图中显示。
进一步的,所述提示信息显示模块包括:
定制内容布局获取单元,被配置为获取提示信息的定制内容布局;
提示信息显示单元,被配置为建立定制内容布局的视图实例,并将所述视图实例添加到父视图中显示。
进一步的,所述装置还包括:
栈顶更新识别模块,被配置为若所述栈顶Activity是生成提示信息的Activity,则判断栈顶Activity是否为待更新的Activity;
提示信息存储到模块,被配置为若栈顶更新识别模块识别为栈顶Activity为待更新的Activity,则将所述提示信息存储到缓存模块中;
缓存提示信息读取模块,被配置为在栈顶Activity更新后,显示所述缓存模块中的提示信息。
进一步的,所述提示信息存储到模块包括:
已存入提示信息判断单元,被配置为判断缓存模块中是否有已存入提示信息;
缓存替换单元,被配置为若已存入提示信息判断单元判断为有,则将所述已存入提示信息删除,并将提示信息存入缓存模块;
缓存单元,被配置为若已存入提示信息判断单元判断为无,则将提示信息存入缓存模块。
进一步的,所述缓存提示信息读取模块包括:
栈顶状态确定单元,被配置为在栈顶Activity更新后,识别更新后的栈顶Activity是否为与用户交互的Activity;
缓存提示信息读取单元,被配置为若栈顶状态确定单元确定为是,则从所述缓存模块中获取提示信息,并显示所述提示信息。
根据本公开的第三方面,提供了一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本公开实施例所述的信息提示的方法。
根据本公开的第四方面,提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开实施例所述的信息提示的方法。
本公开所提供的技术方案,通过读取Activity栈的栈顶Activity;若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;把提示信息的视图添加到父视图中显示。通过采用本公开所提供的技术方案,可以实现保证信息提示的及时性和稳定性的效果。
附图说明
图1是根据本公开实施例的信息提示的方法的流程图;
图2是根据本公开另一实施例的信息提示的方法的流程图;
图3是根据本公开又一实施例的信息提示的方法的流程图;
图4是根据本公开实施例的信息提示的装置的结构示意图;
图5是根据本公开实施例的一种电子设备的结构示意图。
具体实施方式
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本公开,而非对本公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还 可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
下述各实施例中,每个实施例中同时提供了可选特征和示例,实施例中记载的各个特征可进行组合,形成多个可选方案,不应将每个编号的实施例仅视为一个技术方案。
实施例一
图1是本公开实施例的信息提示的方法的流程图,本实施例可适用信息提示的情况,该方法可以由本公开实施例所提供的信息提示的装置来执行,该装置可以由软件和/或硬件的方式来实现,并可集成于客户端、终端以及服务器等安卓系统的电子设备中。
如图1所示,所述信息提示的方法包括:
S110、读取Activity栈的栈顶Activity。
其中,Activity栈可以是通过预先构建的Activity监控模块通过构建基类Activity,并让所有Activity继承自基类Activity,监控Activity的创建与销毁,从而维护进程的Activity栈。在本技术方案中,具体的,定制BaseActivity,实际需要监控的业务端Activity全部继承自BaseActivity;BaseActivity重写系统本身Activity的onCreate、onResume和onDestroy方法。这样就可以在BaseActivity方法里实现对Activity对象的实例化以及对Activity栈的同步,以及同时监控和检测每一个Activity是否为与用户交互的Activity。其中,与用户交互的Activity可以通过检测栈顶Activity是否在执行onResume方法来实现。新建静态Activity栈实例之后,当一个新的Activity创建时,BaseActivity的onCreate方法被执行,将新Actvity压入Activity栈;当一个Activity被销毁时,BaseActivity的onDestroy方法被执行,将Activity从Actvity栈顶弹出。其中,onCreate方法和onDestroy方法对应,是在创建和销毁Activity时调用的,onResume方法是Activity与用户交互时候调用的。
S120、若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图。
其中,提示信息可以是Snackbar(安卓系统中的一种提示信息控件),生成提示信息的Activity若不是当前的栈顶,那么可以确定当前的栈顶是在 生成提示信息的Activity被覆盖或者弹出之后的Activity。在这种情况下,把栈顶Activity的目标视图,如栈顶Activity的DecorView(多柯视图),作为提示信息的父视图。由于现有技术中提示信息所依赖的是生成提示信息的Activity的DecorView,所以本技术方案通过把提示信息与生成提示信息的Activity解耦,使得提示信息可以在Activity销毁或者被覆盖后依然可以显示。
S130、把提示信息的视图添加到父视图中显示。
在确定父视图后,可以把提示信息按照原有的格式或者其他格式,在当前栈顶Activity的视图中显示。这样用户就可以在生成提示信息的Activity已经不在Activity栈的栈顶时,观看到提示信息,避免在用户使用过程中由于没有接收到提示信息而导致重复操作或者是不当操作,影响用户的信息安全等。
本公开实施例所提供的技术方案,通过读取Activity栈的栈顶Activity;若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;把提示信息的视图添加到父视图中显示。通过采用本公开所提供的技术方案,可以实现保证信息提示的及时性和稳定性的效果。
图2是本公开另一实施例的信息提示的方法的流程图。本技术方案可以与上述技术方案的可选方案进行结合。具体为:在读取Activity栈的栈顶Activity之后,所述方法还包括:若所述栈顶Activity是生成提示信息的Activity,则判断生成提示信息的Activity是否存在弹窗;若存在,则确定所述弹窗所在窗口的目标视图为父视图;把提示信息的视图添加到父视图中显示。
如图2所示,所述信息提示的方法包括:
S210、读取Activity栈的栈顶Activity。
S220、若所述栈顶Activity是生成提示信息的Activity,则判断生成提示信息的Activity是否存在弹窗。
其中,弹窗可以是Dialog或者PopUpWindow所在的Window。由于提示信息的显示是基于生成提示信息的Activity的视图来实现的,所以当当前栈顶为生成提示信息的Activity时,需要对生成提示信息的Activity是否存在弹 窗进行判断,因为弹窗是在生成提示信息的Activity的视图之上进行显示的,如果在有弹窗的时候显示提示信息,会导致信息遮挡的情况,从而影响用户对提示信息的读取。所以,为了解决这一技术问题,我们需要对生成提示信息的Activity的弹窗是否存在进行判断,具体的判断依据可以是通过拦截器拦截是否有弹窗信息生成,或者拦截是否有通过弹窗进行显示的方法在执行,若拦截到,则可以确定生成提示信息的Activity是存在弹窗的。
S230、若存在,则确定所述弹窗所在窗口的目标视图为父视图。
在本技术方案中,可以获取Dialog或者PopUpWindow所在的Window的DecorView作为提示信息的父视图。其中,所述提示信息可以是SnackBar。
在本技术方案中,可以理解的,如果不存在弹窗,则可以直接以生成提示信息的Activity的DecorView作为提示信息的父视图。
S240、把提示信息的视图添加到父视图中显示。
可以构建SnackBar实例,之后将SnackBar信息进行展示。
本技术方案在上述各技术方案的基础上,提供了一种当生成提示信息的Activity存在弹窗的情况下的提示信息的显示方法,具体的是把弹窗的视图作为提示信息的父视图,这样设置的好处是可以避免在生成提示信息的Activity上面显示提示信息时,被弹窗所遮挡,从而影响用户对提示信息的读取。
在上述各技术方案的基础上,可选的,把提示信息的视图添加到父视图中显示,包括:获取提示信息的定制内容布局;建立定制内容布局的视图实例,并将所述视图实例添加到父视图中显示。其中,定制内容布局可以是开发人员或者用户在电子设备的使用之前进行定制的,如更改提示信息的显示格式、显示字体等。可以通过建立定制内容布局的视图实例,把视图实例显示出来,这样设置的好处是可以为用户提供具有可以定制的内容布局的提示信息,从而提高信息的可读性以及可以起到提示作用,有利于提高用户对电子设备的使用体验。
图3是本公开又一实施例的信息提示的方法的流程图。本技术方案可以与上述技术方案的可选方案进行结合。具体为:在读取Activity栈的栈顶Activity之后,所述方法还包括:若所述栈顶Activity是生成提示信息的Activity,则判断栈顶Activity是否为待更新的Activity;若是,则将所述提示 信息存储到缓存模块中;在栈顶Activity更新后,显示所述缓存模块中的提示信息。
如图3所示,所述信息提示的方法包括:
S310、读取Activity栈的栈顶Activity。
S320、若所述栈顶Activity是生成提示信息的Activity,则判断栈顶Activity是否为待更新的Activity。
判断栈顶Activity是否为待更新的Activity,即Activity即将销毁或者被覆盖,另一Activity成为栈顶。具体的,待更新的Activity包括两种情况,一种是把生成提示信息的Activity从栈顶弹出,即销毁,另一种是存在新的Activity入栈,生成提示信息的Activity。例如,可以是检测业务方Activity栈更新行为,具体可以是依赖于业务方告知模块是否会立刻消失。在本技术方案中,并不限定仅以此方式确定栈顶Activity是否为待更新的Activity,还可以通过其他任何技术手段来确定,只要能够确定栈顶Activity即将被更新,则可以采用本技术方案。
S330、若是,则将所述提示信息存储到缓存模块中。
当判断栈顶Activity为待更新的Activity时,则提示信息将无法或者说不能够在栈顶Activity显示,因为如果在显示过程中栈顶Activity消失,则会影响用户对提示信息的读取。为了解决这一技术问题,本方案采取预先设置缓存模块,利用缓存模块将提示信息缓存起来。在本技术方案中,可选的,可以通过缓存模块存储提示信息的提示内容和时长。
在本技术方案中,可选的,将所述提示信息存储到缓存模块中,包括:判断缓存模块中是否有已存入提示信息;若有,则将所述已存入提示信息删除,并将提示信息存入缓存模块;若无,则将提示信息存入缓存模块。其中,为了能够有效的利用这个缓存模块,避免缓存模块内存储的提示信息过多,导致显示后会影响用户的使用体验,本技术方案提供的缓存模块采取仅存储一个提示信息的方式,即如果存入提示信息之前有已缓存信息,则将已缓存信息替换为提示信息。这样设置的好处是可以更加准确的显示提示信息,不会造成提示信息时延较长的情况。
S340、在栈顶Activity更新后,显示所述缓存模块中的提示信息。
在栈顶Activity更新后,可以以更新后的栈顶Activity的视图作为父视图,从缓存模块中读取提示信息并显示。
相应的,当栈顶Activity更新过程中,检测生成提示信息的Activity是否已经销毁或者被覆盖,若是,则获取当前的栈顶Activity的视图作为父视图。如否,则将生成的提示信息缓存,当检测到更新后的栈顶Activity执行onResume方法时,提取缓存的提示信息,并进行显示,即可以弹出Snackbar。
本技术方案在上述各技术方案的基础上,提供了一种将提示信息缓存的方法,这个方法依赖于预先设置有缓存模块,这样设置的好处是可以在Activity更新过程中完成对提示信息的显示,同时避免了提示信息因为Activity更新而无法正常显示的问题,提高了提示信息显示的稳定性。
实施例二
图4是本公开实施例的信息提示的装置的结构示意图。如图4所示,所述信息提示的装置,包括:
栈顶读取模块410,读取Activity栈的栈顶Activity;
第一父视图确定模块420,若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;
提示信息显示模块430,把提示信息的视图添加到父视图中显示。
本公开实施例所提供的技术方案,通过读取Activity栈的栈顶Activity;若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;把提示信息的视图添加到父视图中显示。通过采用本公开所提供的技术方案,可以实现保证信息提示的及时性和稳定性的效果。
在上述各技术方案的基础上,可选的,所述装置还包括:
弹窗识别模块,若所述栈顶Activity是生成提示信息的Activity,则判断生成提示信息的Activity是否存在弹窗;
第二父视图确定模块,若弹窗识别模块识别为存在,则确定所述弹窗所在窗口的目标视图为父视图;
提示信息显示模块,把提示信息的视图添加到父视图中显示。
在上述各技术方案的基础上,可选的,所述提示信息显示模块包括:
定制内容布局获取单元,获取提示信息的定制内容布局;
提示信息显示单元,建立定制内容布局的视图实例,并将所述视图实例添加到父视图中显示。
在上述各技术方案的基础上,可选的,所述装置还包括:
栈顶更新识别模块,若所述栈顶Activity是生成提示信息的Activity,则判断栈顶Activity是否为待更新的Activity;
提示信息存储到模块,若栈顶更新识别模块识别为栈顶Activity为待更新的Activity,则将所述提示信息存储到缓存模块中;
缓存提示信息读取模块,在栈顶Activity更新后,显示所述缓存模块中的提示信息。
在上述各技术方案的基础上,可选的,所述提示信息存储到模块包括:
已存入提示信息判断单元,判断缓存模块中是否有已存入提示信息;
缓存替换单元,若已存入提示信息判断单元判断为有,则将所述已存入提示信息删除,并将提示信息存入缓存模块;
缓存单元,若已存入提示信息判断单元判断为无,则将提示信息存入缓存模块。
在上述各技术方案的基础上,可选的,所述缓存提示信息读取模块包括:
栈顶状态确定单元,在栈顶Activity更新后,识别更新后的栈顶Activity是否为与用户交互的Activity;
缓存提示信息读取单元,若栈顶状态确定单元确定为是,则从所述缓存模块中获取提示信息,并显示所述提示信息。
上述产品可执行本公开任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。
实施例三
图5是本公开实施例的一种电子设备的结构示意图。下面参考图5,其示出了适于用来实现本公开实施例的电子设备500的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播 放器)、车载电子设备(例如车载导航电子设备)等等的电子设备以及诸如数字TV、台式计算机等等的固定电子设备。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读介质或者是上述两者的任意组合。计算机可读介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM 或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:读取Activity栈的栈顶Activity;若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;把提示信息的视图添加到父视图中显示。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:读取Activity栈的栈顶Activity;若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;把提示信息的视图添加到父视图中显示。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算 机。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块、单元的名称在某种情况下并不构成对该模块、单元本身的限定。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。

Claims (10)

  1. 一种信息提示的方法,包括:
    读取Activity栈的栈顶Activity;
    若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;以及
    将提示信息的视图添加到父视图中显示。
  2. 根据权利要求1所述的方法,其中,在读取Activity栈的栈顶Activity之后,所述方法还包括:
    若所述栈顶Activity是生成提示信息的Activity,则判断生成提示信息的Activity是否存在弹窗;
    若存在弹窗,则确定所述弹窗所在窗口的目标视图为父视图;以及
    将提示信息的视图添加到父视图中显示。
  3. 根据权利要求1或2所述的方法,其中,将提示信息的视图添加到父视图中显示,包括:
    获取提示信息的定制内容布局;
    建立定制内容布局的视图实例,并将所述视图实例添加到所述父视图中进行显示。
  4. 根据权利要求1所述的方法,其中,在读取Activity栈的栈顶Activity之后,所述方法还包括:
    若所述栈顶Activity是生成提示信息的Activity,则判断栈顶Activity是否为待更新的Activity;
    若是,则将所述提示信息存储到缓存模块中;以及
    在栈顶Activity更新后,显示所述缓存模块中的提示信息。
  5. 根据权利要求4所述的方法,其中,将所述提示信息存储到缓存模块中,包括:
    判断缓存模块中是否有已存入提示信息;
    若有,则将所述已存入提示信息删除,并将提示信息存入缓存模块;并且
    若无,则将提示信息存入缓存模块。
  6. 根据权利要求4所述的方法,其中,在栈顶Activity更新后,显示所述缓存模块中的提示信息,包括:
    在栈顶Activity更新后,识别更新后的栈顶Activity是否为与用户交互的Activity;
    若是,则从所述缓存模块中获取提示信息,并显示所述提示信息。
  7. 一种信息提示的装置,包括:
    栈顶读取模块,被配置为读取Activity栈的栈顶Activity;
    第一父视图确定模块,被配置为若所述栈顶Activity不是生成提示信息的Activity,则确定栈顶Activity的目标视图为父视图;
    提示信息显示模块,被配置为将提示信息的视图添加到父视图中显示。
  8. 根据权利要求7所述的装置,所述装置还包括:
    弹窗识别模块,被配置为若所述栈顶Activity是生成提示信息的Activity,则判断生成提示信息的Activity是否存在弹窗;
    第二父视图确定模块,被配置为若弹窗识别模块识别为存在,则确定所述弹窗所在窗口的目标视图为父视图;以及
    提示信息显示模块,被配置为将提示信息的视图添加到父视图中显示。
  9. 一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1-6中任一项所述的信息提示的方法。
  10. 一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-6中任一项所述的信息提示的方法。
PCT/CN2019/122098 2018-12-10 2019-11-29 一种信息提示的方法、装置、电子设备及可读介质 WO2020119484A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811505062.2 2018-12-10
CN201811505062.2A CN109634702B (zh) 2018-12-10 2018-12-10 一种信息提示的方法、装置、电子设备及可读介质

Publications (1)

Publication Number Publication Date
WO2020119484A1 true WO2020119484A1 (zh) 2020-06-18

Family

ID=66072586

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122098 WO2020119484A1 (zh) 2018-12-10 2019-11-29 一种信息提示的方法、装置、电子设备及可读介质

Country Status (2)

Country Link
CN (1) CN109634702B (zh)
WO (1) WO2020119484A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634702B (zh) * 2018-12-10 2020-04-24 北京字节跳动网络技术有限公司 一种信息提示的方法、装置、电子设备及可读介质
CN114721754A (zh) * 2021-01-05 2022-07-08 武汉斗鱼网络科技有限公司 一种信息提示视图的实现方法、装置、设备和存储介质
CN113254140A (zh) * 2021-06-21 2021-08-13 杭州涂鸦信息技术有限公司 悬浮窗控制方法、装置、计算机设备和可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306778A1 (en) * 2009-05-26 2010-12-02 Microsoft Corporation Locality-based scheduling in continuation-based runtimes
CN107580105A (zh) * 2017-07-26 2018-01-12 努比亚技术有限公司 一种屏幕分享方法、终端及计算机可读存储介质
CN109634702A (zh) * 2018-12-10 2019-04-16 北京字节跳动网络技术有限公司 一种信息提示的方法、装置、电子设备及可读介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IN2013DE03292A (zh) * 2013-11-08 2015-05-15 Samsung India Electronics Pvt Ltd
CN107203369A (zh) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 基于Android的弹框提示方法及装置
CN106933468A (zh) * 2017-03-13 2017-07-07 深圳市金立通信设备有限公司 一种用户界面切换方法及终端
CN107203308B (zh) * 2017-05-19 2020-07-03 北京字节跳动网络技术有限公司 一种显示方法及终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306778A1 (en) * 2009-05-26 2010-12-02 Microsoft Corporation Locality-based scheduling in continuation-based runtimes
CN107580105A (zh) * 2017-07-26 2018-01-12 努比亚技术有限公司 一种屏幕分享方法、终端及计算机可读存储介质
CN109634702A (zh) * 2018-12-10 2019-04-16 北京字节跳动网络技术有限公司 一种信息提示的方法、装置、电子设备及可读介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Toast and Snackbar", 29 March 2018 (2018-03-29), pages 1 - 5, XP055712314, Retrieved from the Internet <URL:https://blog.csdn.net/MeituanTech/article/details/79748447> *

Also Published As

Publication number Publication date
CN109634702B (zh) 2020-04-24
CN109634702A (zh) 2019-04-16

Similar Documents

Publication Publication Date Title
CN113938456B (zh) 会话消息置顶处理方法和装置
CN110489101B (zh) 接口模拟方法、系统、介质和电子设备
US10970101B2 (en) System and method for dynamically configuring virtual displays and virtual inputs for different remote sessions that each present content for a virtual machine
US11693531B2 (en) Page display position jump method and apparatus, terminal device, and storage medium
WO2020119484A1 (zh) 一种信息提示的方法、装置、电子设备及可读介质
KR20220127872A (ko) 비디오 재생 방법, 장치, 전자기기 및 컴퓨터 판독 가능 매체
WO2015103993A1 (en) Chat window presentation control method and system
WO2020119800A1 (zh) 一种列表显示方法、装置、设备及存储介质
US11287944B2 (en) Application window display method and terminal
US9798512B1 (en) Context-based volume adjustment
CN110362288B (zh) 一种同屏控制方法、装置、设备及存储介质
WO2020216204A1 (zh) 信息获取方法和装置
WO2022257797A1 (zh) 目标内容的显示方法、装置、设备、可读存储介质及产品
KR20190032861A (ko) 전자 장치 및 그의 제어 방법
US20230385080A1 (en) Method and apparatus for presenting information on lock screen interface, terminal, and storage medium
US20240089223A1 (en) Information display method and apparatus, and electronic device
WO2024060943A1 (zh) 评论信息的发布方法、装置、电子设备和存储介质
US11068282B2 (en) Apparatuses, methods and systems for persisting values in a computing environment
WO2020233170A1 (zh) 一种信息展示方法、装置、设备和介质
CN110290058B (zh) 一种在应用中呈现会话消息的方法与设备
CN111273967A (zh) 适用于Android系统的远程钩子设置方法、装置及电子设备
CN111177634A (zh) 支持多语言的文案内容加载方法、装置、设备、及介质
WO2022171058A1 (zh) 应用程序的处理方法、装置及电子设备
CN113377365B (zh) 代码显示方法、装置、设备、计算机可读存储介质及产品
WO2020224295A1 (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: 19896143

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27.09.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19896143

Country of ref document: EP

Kind code of ref document: A1