CN106095318A - Application program open method and device - Google Patents
Application program open method and device Download PDFInfo
- Publication number
- CN106095318A CN106095318A CN201610431818.8A CN201610431818A CN106095318A CN 106095318 A CN106095318 A CN 106095318A CN 201610431818 A CN201610431818 A CN 201610431818A CN 106095318 A CN106095318 A CN 106095318A
- Authority
- CN
- China
- Prior art keywords
- application program
- interface
- state information
- active interface
- closing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本公开涉及互联网技术领域,特别涉及一种应用程序开启方法和装置。The present disclosure relates to the technical field of the Internet, and in particular to a method and device for opening an application program.
背景技术Background technique
安卓手机都有着返回键,通过返回键可以回到应用的上一级界面中。其原理就是当点开其他界面时,把上一应用的界面程序设置为onPause()或者onStop()状态,恢复时将程序改回onResume()状态。onPause用于由一个活动界面(Activity)转到另一个活动界面、设备进入休眠状态(屏幕锁住了)、或者有dialog弹出时;onStop用于不可见的活动界面(有对话框弹出时,这时底下的活动界面仍然可见,所以此时onStop不会被调用)。实际的程序没有被销毁,而是储存在内存中。一旦程序被销毁,即onDestroy()状态,就无法恢复。Android mobile phones all have a return key, through which you can return to the upper-level interface of the application. The principle is to set the interface program of the previous application to the onPause() or onStop() state when clicking on other interfaces, and change the program back to the onResume() state when resuming. onPause is used to switch from one activity interface (Activity) to another activity interface, the device enters a sleep state (the screen is locked), or when a dialog pops up; onStop is used for an invisible activity interface (when a dialog box pops up, this The active interface below is still visible, so onStop will not be called at this time). The actual program is not destroyed, but stored in memory. Once the program is destroyed, that is, the onDestroy() state, it cannot be restored.
手机的日常使用中,常会遇到由于某些原因关闭APP,但后来需要继续之前的界面的情况,由于程序被关闭,需要一步一步重新找回之前的应用界面很麻烦,例如用视频app看电影,未看完而关闭掉。晚上希望可以继续看,就需要打开app重新找到电影内容才能继续。In the daily use of mobile phones, it is often encountered that the APP is closed for some reason, but then the previous interface needs to be continued. Since the program is closed, it is very troublesome to restore the previous application interface step by step, such as watching movies with the video app , close it without reading it. If you want to continue watching at night, you need to open the app and find the movie content again before you can continue.
发明内容Contents of the invention
本公开提供了一种应用程序开启方法和装置。所述技术方案如下:The present disclosure provides a method and device for opening an application program. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种应用程序开启方法,包括:According to a first aspect of an embodiment of the present disclosure, there is provided a method for opening an application, including:
检测是否接收到执行于应用程序图标上的预设手势指令;Detect whether a preset gesture instruction executed on the application icon is received;
当接收到执行于所述应用程序图标上的预设手势指令时,获取所述应用程序在最近一次关闭时存储的活动界面的状态信息;When receiving a preset gesture command executed on the application program icon, acquiring the state information of the active interface stored when the application program was closed last time;
根据所述活动界面的状态信息将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。According to the status information of the active interface, the application program interface is restored to the content displayed on the interface before the last closing of the application program.
可选地,在检测是否接收到执行于应用程序图标上的预设手势指令之前,所述方法还可包括:Optionally, before detecting whether a preset gesture instruction executed on an application icon is received, the method may further include:
检测是否接收到关闭当前应用程序的操作指令;Detect whether an operation instruction to close the current application is received;
当接收到关闭当前应用程序的操作指令时,记录所述当前应用程序活动界面的状态信息;When receiving an operation instruction to close the current application program, record the state information of the active interface of the current application program;
将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序。After saving the state information of the active interface, close the current application program.
可选地,所述方法还可包括:Optionally, the method may also include:
当接收到关闭当前应用程序的操作指令时,获取当前应用程序的页面的网络链接地址;When receiving an operation instruction to close the current application program, obtain the network link address of the page of the current application program;
所述将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序,包括:After the state information of the active interface is saved, closing the current application program includes:
将所述活动界面的状态信息和当前应用程序的页面的网络链接地址进行保存之后,关闭所述当前应用程序。After saving the status information of the active interface and the network link address of the page of the current application program, the current application program is closed.
可选地,所述获取所述应用程序在最近一次关闭时存储的活动界面的状态信息,可包括:Optionally, the acquiring the status information of the active interface stored when the application was closed last time may include:
获取所述应用程序在最近一次关闭时存储的活动界面的状态信息和页面的网络链接地址;Obtain the state information of the active interface and the network link address of the page stored when the application program was closed last time;
所述根据所述活动界面的状态信息将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容,包括:According to the state information of the active interface, restoring the application program interface to the content displayed on the interface before the application program was closed last time includes:
根据所述活动界面的状态信息和页面的网络链接地址将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。According to the status information of the active interface and the network link address of the page, the application program interface is restored to the content displayed on the interface before the last closing of the application program.
可选地,所述将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序,可包括:Optionally, after the state information of the active interface is saved, closing the current application may include:
将所述活动界面的状态信息保存在本端ROM或者内存中后,关闭所述当前应用程序。After saving the status information of the active interface in the local ROM or memory, close the current application program.
可选地,所述预设手势可以为以下手势中的任意一种手势:Optionally, the preset gesture may be any one of the following gestures:
单指或者双指向上滑动的第一滑动手势;或者,The first swipe gesture of a single or two-finger swipe up; or,
单指或者双指向下滑动的第二滑动手势;或者,A second swipe gesture with a single or two-finger swipe down; or,
单指或者双指向左滑动的第三滑动手势;或者,A third swipe gesture with one or two fingers to swipe left; or,
单指或者双指向右滑动的第四滑动手势。The fourth swipe gesture is a one-finger or two-finger swipe right.
根据本公开实施例的第二方面,提供一种应用程序开启装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided an application opening device, including:
第一检测模块,用于检测是否接收到执行于应用程序图标上的预设手势指令;The first detection module is used to detect whether a preset gesture instruction executed on the application program icon is received;
第一获取模块,用于当接收到执行于所述应用程序图标上的预设手势指令时,获取所述应用程序在最近一次关闭时存储的活动界面的状态信息;The first acquiring module is configured to acquire the status information of the active interface stored when the application was closed last time when receiving a preset gesture instruction executed on the application icon;
恢复模块,用于根据所述活动界面的状态信息将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。A restoring module, configured to restore the application program interface to the content displayed on the interface before the last closing of the application program according to the state information of the active interface.
可选地,所述装置还可包括:Optionally, the device may also include:
第二检测模块,用于检测是否接收到关闭当前应用程序的操作指令;The second detection module is used to detect whether an operation instruction to close the current application program is received;
记录模块,用于当接收到关闭当前应用程序的操作指令时,记录所述当前应用程序活动界面的状态信息;A recording module, configured to record the state information of the active interface of the current application when receiving an operation instruction to close the current application;
保存模块,用于将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序。The saving module is configured to close the current application program after saving the state information of the active interface.
可选地,所述装置还可包括:Optionally, the device may also include:
第二获取模块,用于当接收到关闭当前应用程序的操作指令时,获取当前应用程序的页面的网络链接地址;The second obtaining module is used to obtain the network link address of the page of the current application when receiving an operation instruction to close the current application;
所述保存模块,包括:The storage module includes:
第一保存子模块,用于将所述活动界面的状态信息和当前应用程序的页面的网络链接地址进行保存之后,关闭所述当前应用程序。The first saving submodule is configured to close the current application after saving the state information of the active interface and the network link address of the page of the current application.
可选地,所述第一获取模块,可包括:Optionally, the first acquisition module may include:
获取子模块,用于获取所述应用程序在最近一次关闭时存储的活动界面的状态信息和页面的网络链接地址;An acquisition sub-module, configured to acquire the status information of the active interface and the network link address of the page stored when the application was closed last time;
所述恢复模块,包括:The recovery module includes:
恢复子模块,用于根据所述活动界面的状态信息和页面的网络链接地址将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。The restoration submodule is used to restore the application program interface to the content displayed on the interface before the last closing of the application program according to the state information of the active interface and the network link address of the page.
可选地,所述保存模块,可包括:Optionally, the preservation module may include:
第二保存子模块,用于将所述活动界面的状态信息保存在本端ROM或者内存中后,关闭所述当前应用程序。The second saving sub-module is used to close the current application program after saving the state information of the active interface in the local ROM or memory.
可选地,所述预设手势可以为以下手势中的任意一种手势:Optionally, the preset gesture may be any one of the following gestures:
单指或者双指向上滑动的第一滑动手势;或者,The first swipe gesture of a single or two-finger swipe up; or,
单指或者双指向下滑动的第二滑动手势;或者,A second swipe gesture with a single or two-finger swipe down; or,
单指或者双指向左滑动的第三滑动手势;或者,A third swipe gesture with one or two fingers to swipe left; or,
单指或者双指向右滑动的第四滑动手势。The fourth swipe gesture is a one-finger or two-finger swipe right.
根据本公开实施例的第三方面,提供一种应用程序开启装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an application opening device, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
检测是否接收到执行于应用程序图标上的预设手势指令;Detect whether a preset gesture instruction executed on the application icon is received;
当接收到执行于所述应用程序图标上的预设手势指令时,获取所述应用程序在最近一次关闭时存储的活动界面的状态信息;When receiving a preset gesture command executed on the application program icon, acquiring the state information of the active interface stored when the application program was closed last time;
根据所述活动界面的状态信息将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。According to the status information of the active interface, the application program interface is restored to the content displayed on the interface before the last closing of the application program.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
上述技术方案,通过检测是否接收到执行于应用程序图标上的预设手势指令;当接收到执行于该应用程序图标上的预设手势指令时,获取该应用程序在最近一次关闭时存储的活动界面的状态信息;根据该活动界面的状态信息将应用程序界面恢复至该应用程序在最近一次关闭前的界面显示的内容。从而解决了相关技术中,打开应用程序后,无法恢复之前的内容的问题,通过记录应用程序关闭之前的状态,可以快速恢复应用程序的内容,方便用户使用,提升了用户的使用体验。The above technical solution detects whether the preset gesture instruction executed on the application icon is received; when the preset gesture instruction executed on the application icon is received, the activity stored when the application was closed last time is acquired The state information of the interface; according to the state information of the active interface, the application program interface is restored to the content displayed on the interface before the application program was closed last time. This solves the problem in related technologies that the previous content cannot be restored after the application is opened. By recording the state before the application is closed, the content of the application can be quickly restored, which is convenient for users and improves user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并于说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种应用程序开启方法的流程图。Fig. 1 is a flow chart showing a method for starting an application program according to an exemplary embodiment.
图2是根据一示例性实施例示出的又一种应用程序开启方法的流程图。Fig. 2 is a flow chart showing another method for starting an application program according to an exemplary embodiment.
图3是根据一示例性实施例示出的又一种应用程序开启方法的流程图。Fig. 3 is a flow chart showing another method for starting an application program according to an exemplary embodiment.
图4是根据一示例性实施例示出的又一种应用程序开启方法的流程图。Fig. 4 is a flow chart showing another method for starting an application program according to an exemplary embodiment.
图5是根据一示例性实施例示出的再一种应用程序开启方法的流程图。Fig. 5 is a flow chart showing another method for starting an application program according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种应用程序开启装置的框图。Fig. 6 is a block diagram showing a device for launching an application program according to an exemplary embodiment.
图7是根据另一示例性实施例示出的又一种应用程序开启装置的框图。Fig. 7 is a block diagram of another device for launching an application program according to another exemplary embodiment.
图8是根据另一示例性实施例示出的又一种应用程序开启装置的框图。Fig. 8 is a block diagram of another device for launching an application program according to another exemplary embodiment.
图9是根据另一示例性实施例示出的另一种应用程序开启装置的框图。Fig. 9 is a block diagram of another device for launching an application program according to another exemplary embodiment.
图10是根据另一示例性实施例示出的另一种应用程序开启装置的框图。Fig. 10 is a block diagram of another device for launching an application program according to another exemplary embodiment.
图11是根据一示例性实施例示出的一种适用于应用程序开启装置的框图。Fig. 11 is a block diagram showing a device suitable for opening an application program according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
活动界面(Activity)是一个应用程序组件,是安卓组件中四大组件(Activity,Service服务,Content Provider内容提供者,BroadcastReceiver广播接收器)之一。Activity提供一个屏幕,Activity中所有操作都与用户密切相关,它上面可以显示一些控件也可以监听并处理用户的事件做出响应,是一个负责与用户交互的组件。Activity interface (Activity) is an application component, which is one of the four major components (Activity, Service service, Content Provider content provider, BroadcastReceiver broadcast receiver) in Android components. Activity provides a screen. All operations in Activity are closely related to users. It can display some controls and listen to and process user events to respond. It is a component responsible for interacting with users.
Activity拥有四种状态:1、Active/Running,一个新Activity启动入栈后,它显示在屏幕最前端,处理是处于栈的最顶端(Activity栈顶),此时它处于可见并可和用户交互的激活状态,叫做活动状态或者运行状态(active or running);2、Paused,当Activity失去焦点,被一个新的非全屏的Activity或者一个透明的Activity被放置在栈顶,此时的状态叫做暂停状态(Paused)。此时它依然与窗口管理器保持连接,Activity依然保持活力(保持所有的状态,成员信息,和窗口管理器保持连接),但是在系统内存极端低下的时候将被强行终止掉。所以它仍然可见,但已经失去了焦点故不可与用户进行交互;3、Stopped,如果一个Activity被另外的Activity完全覆盖掉,叫做停止状态(Stopped)。它依然保持所有状态和成员信息,但是它不再可见,所以它的窗口被隐藏,当系统内存需要被用在其他地方的时候,Stopped的Activity将被强行终止掉;4、Killed,如果一个Activity是Paused或者Stopped状态,系统可以将该Activity从内存中删除,Android系统采用两种方式进行删除,要么要求该Activity结束,要么直接终止它的进程。当该Activity再次显示给用户时,它必须重新开始和重置前面的状态。当一个Activity实例被创建、销毁或者启动另外一个Activity时,它在这四种状态之间进行转换,这种转换的发生依赖于用户程序的动作。Activity has four states: 1. Active/Running. After a new Activity is launched into the stack, it is displayed at the front of the screen, and the processing is at the top of the stack (the top of the Activity stack). At this time, it is visible and can interact with the user. 2. Paused, when the Activity loses focus and is placed on the top of the stack by a new non-full-screen Activity or a transparent Activity, the state at this time is called Paused Status (Paused). At this time, it is still connected to the window manager, and the Activity is still alive (keeping all state, member information, and connection with the window manager), but it will be forcibly terminated when the system memory is extremely low. So it is still visible, but it has lost focus and cannot interact with the user; 3. Stopped, if an Activity is completely covered by another Activity, it is called a stopped state (Stopped). It still maintains all state and member information, but it is no longer visible, so its window is hidden. When the system memory needs to be used elsewhere, the Stopped Activity will be forcibly terminated; 4. Killed, if an Activity If it is in the Paused or Stopped state, the system can delete the Activity from the memory. The Android system uses two methods to delete it, either requiring the Activity to end, or directly terminating its process. When the activity is displayed to the user again, it must start over and reset the previous state. When an Activity instance is created, destroyed, or starts another Activity, it transitions between these four states, and the occurrence of this transition depends on the actions of the user program.
图1是根据一示例性实施例示出的一种应用程序开启方法的流程图,如图1所示,该应用程序开启方法可以包括以下步骤。Fig. 1 is a flowchart showing a method for opening an application program according to an exemplary embodiment. As shown in Fig. 1 , the method for opening an application program may include the following steps.
在步骤101中,检测是否接收到执行于应用程序图标上的预设手势指令。In step 101, it is detected whether a preset gesture command executed on an application program icon is received.
在步骤102中,当接收到执行于应用程序图标上的预设手势指令时,获取应用程序在最近一次关闭时存储的活动界面的状态信息。In step 102, when a preset gesture instruction executed on an application program icon is received, the status information of the active interface stored when the application program was closed last time is obtained.
在步骤103中,根据活动界面的状态信息将应用程序界面恢复至应用程序在最近一次关闭前的界面显示的内容。In step 103, the application program interface is restored to the content displayed on the interface before the last closing of the application program according to the status information of the active interface.
预设手势例如可以是在应用程序的图标上手指上滑或者下滑的手势。手指可以是一个也可以是多个,需要说明的是,预设手势不同于正常的点击应用程序图标以打开该应用程序的手势。系统检测到预设手势之后,才会获取应用程序在最近一次关闭时存储的活动界面的状态信息,否则不会获取,如果只是点击手势,则正常打开应用程序,不会获取该应用程序在最近一次关闭时存储的活动界面的状态信息。The preset gesture may be, for example, a gesture of sliding a finger up or down on an icon of an application program. There may be one or more fingers, and it should be noted that the preset gesture is different from a normal gesture of clicking an application icon to open the application. After the system detects the preset gesture, it will obtain the status information of the active interface stored by the application when it was closed last time. Otherwise, it will not obtain it. If it is just a click gesture, the application will be opened normally, and the application will not be obtained. The state information of the active interface is stored when it is closed once.
本公开能够提供给用户快速恢复app界面的功能。例如用户通过app浏览电影或者新闻日志,浏览一半后由于某种原因关闭了app。后续可以直接通过在app图标上执行预设手势继续浏览,而不用打开app后,重新寻找之前的内容。The present disclosure can provide the user with the function of quickly restoring the app interface. For example, a user browses a movie or news log through an app, and closes the app for some reason after browsing halfway through. In the future, you can continue browsing directly by performing preset gestures on the app icon, instead of opening the app and looking for the previous content again.
综上所述,本公开实施例中提供的应用程序开启方法,通过检测是否接收到执行于应用程序图标上的预设手势指令;当接收到执行于该应用程序图标上的预设手势指令时,获取该应用程序在最近一次关闭时存储的活动界面的状态信息;根据该活动界面的状态信息将应用程序界面恢复至该应用程序在最近一次关闭前的界面显示的内容。从而解决了相关技术中,打开应用程序后,无法恢复之前的内容的问题,通过记录应用程序关闭之前的状态,可以快速恢复应用程序的内容,方便用户使用,提升了用户的使用体验。To sum up, the application opening method provided in the embodiment of the present disclosure detects whether a preset gesture instruction executed on the application icon is received; when the preset gesture instruction executed on the application icon is received , to obtain the status information of the active interface stored when the application was last closed; and restore the application interface to the content displayed on the interface before the last closing of the application according to the status information of the active interface. This solves the problem in related technologies that the previous content cannot be restored after the application is opened. By recording the state before the application is closed, the content of the application can be quickly restored, which is convenient for users and improves user experience.
需要补充说明的第一点是,请参考图2,在步骤101之前,上述方法还可包括步骤104-106:The first point that needs to be supplemented is that please refer to FIG. 2. Before step 101, the above method may also include steps 104-106:
在步骤104中,检测是否接收到关闭当前应用程序的操作指令。In step 104, it is detected whether an operation instruction to close the current application is received.
在步骤105中,当接收到关闭当前应用程序的操作指令时,记录当前应用程序活动界面的状态信息。In step 105, when an operation instruction to close the current application program is received, state information of the active interface of the current application program is recorded.
在步骤106中,将活动界面的状态信息进行保存之后,关闭当前应用程序。In step 106, after saving the state information of the active interface, close the current application program.
本公开技术完全通过软件实现,当手机系统检测到用户进行关闭某个APP应用程序的操作时,触发本段代码。整个过程分为储存阶段和恢复阶段。The disclosed technology is completely realized by software, and when the mobile phone system detects that the user performs an operation to close a certain APP application program, this section of code is triggered. The whole process is divided into storage phase and recovery phase.
首先系统检测到应用程序关闭时,记录下当前应用程序的活动界面状态信息,并将该状态信息进行储存,可以存储在ROM中,如果内存足够,也可以存储在内存中。完成储存阶段。First, when the system detects that the application program is closed, it records the active interface status information of the current application program, and stores the status information, which can be stored in the ROM, or in the memory if the memory is sufficient. Complete the storage phase.
系统提前设定特殊的操作手势,如在应用程序图标上手指上(下)滑等手势。当系统检测到用户没有正常轻触图标,而是在图标上上滑,触发恢复应用程序的代码,将储存的活动界面状态信息恢复到界面中,完成恢复阶段。The system sets special operation gestures in advance, such as gestures such as sliding up (down) with the finger on the application program icon. When the system detects that the user does not tap the icon normally, but slides up on the icon, the code to restore the application is triggered, and the stored active interface status information is restored to the interface to complete the recovery phase.
本实施例,通过将活动界面的状态信息进行保存之后,再关闭应用程序,可以实现应用程序恢复到关闭前的状态,使用户可以继续浏览应用程序关闭前的内容,而不用打开应用程序后,通过多次操作寻找之前的内容,方便用户使用。In this embodiment, by saving the state information of the active interface, and then closing the application program, the application program can be restored to the state before closing, so that the user can continue to browse the content before the application program is closed, without opening the application program. Find the previous content through multiple operations, which is convenient for users to use.
需要补充说明的第二点是,当用户在应用程序关闭前浏览的比如是新闻类的内容或者打开的链接时,除了记录活动界面的状态信息外,还需保存应用程序关闭前的页面的网络链接地址,否则无法恢复页面,请参考图3,此时,上述方法还可包括步骤107:The second point that needs to be supplemented is that when the user browses content such as news or opened links before the application is closed, in addition to recording the status information of the active interface, it is also necessary to save the network of the page before the application is closed. Link address, otherwise the page cannot be restored, please refer to Figure 3, at this time, the above method can also include step 107:
在步骤107中,当接收到关闭当前应用程序的操作指令时,获取当前应用程序的页面的网络链接地址。In step 107, when an operation instruction to close the current application is received, the network link address of the page of the current application is acquired.
此时,步骤106可以实施为如下步骤1061:At this point, step 106 can be implemented as step 1061 as follows:
在步骤1061中,将活动界面的状态信息和当前应用程序的页面的网络链接地址进行保存之后,关闭当前应用程序。In step 1061, after saving the state information of the active interface and the network link address of the page of the current application, the current application is closed.
需要补充说明的是,本实施例只是以步骤107在步骤105和步骤1061之间执行为例,可选地,步骤107还可以在步骤104和步骤105之间执行,本实施例对其实际执行顺序并不做限定。It should be added that this embodiment only takes step 107 to be executed between step 105 and step 1061 as an example. Optionally, step 107 can also be executed between step 104 and step 105, which is actually executed in this embodiment The order is not limited.
比如,当应用程序为浏览器时,用户每浏览一个页面都有对应的网络链接地址,用户在关闭浏览器时,除记录活动界面的状态信息,还需保存页面的网络链接地址,否则无法恢复页面。For example, when the application is a browser, each page the user browses has a corresponding network link address. When the user closes the browser, in addition to recording the status information of the active interface, the network link address of the page needs to be saved, otherwise it cannot be restored page.
由于对有些应用程序来说,需要获知页面的网络链接地址才能恢复之前的页面,因此,本实施例,除获取活动界面的状态信息之外,还获取当前应用程序的页面的网络链接地址,从而,使该应用程序可以恢复关闭前的页面。For some application programs, it is necessary to know the network link address of the page to restore the previous page. Therefore, in this embodiment, in addition to obtaining the state information of the active interface, the network link address of the page of the current application program is also obtained, thereby , which enables the application to restore the page it was on before it was closed.
相应地,对于某些应用程序来说,当用户重新打开应用程序后还想恢复关闭之前的页面时,还需获得关闭前的页面的网络链接地址。请参考图4,步骤102可以实施为如下步骤1021:Correspondingly, for some applications, when the user wants to restore the page before closing the application after reopening the application, it is also necessary to obtain the web link address of the page before closing. Please refer to FIG. 4, step 102 can be implemented as the following step 1021:
在步骤1021中,当接收到执行于应用程序图标上的预设手势指令时,获取应用程序在最近一次关闭时存储的活动界面的状态信息和页面的网络链接地址。In step 1021, when the preset gesture command executed on the application program icon is received, the status information of the active interface and the network link address of the page stored when the application program was closed last time are obtained.
此时,步骤103可以实施为如下步骤1031::At this point, step 103 can be implemented as the following step 1031:
在步骤1031中,根据活动界面的状态信息和页面的网络链接地址将应用程序界面恢复至应用程序在最近一次关闭前的界面显示的内容。In step 1031, according to the state information of the active interface and the network link address of the page, the application program interface is restored to the content displayed on the interface before the last closing of the application program.
需要补充说明的第三点是,请参考图5,步骤106还可以实施为如下步骤1062:The third point that needs to be supplemented is that please refer to FIG. 5, step 106 can also be implemented as the following step 1062:
在步骤1062中,将活动界面的状态信息保存在本端ROM或者内存中后,关闭当前应用程序。In step 1062, after saving the state information of the active interface in the local ROM or memory, close the current application program.
本实施例,将活动界面的状态信息保存在本端ROM中,或者如果本端内存足够大,存储在内存中。从而使应用程序关闭前的信息可以稳定的存储,不至于丢失,引起不可恢复的事情发生。In this embodiment, the state information of the active interface is saved in the ROM of the local terminal, or stored in the internal memory if the internal memory of the local terminal is large enough. In this way, the information before the application program is closed can be stored stably, so that it will not be lost and cause unrecoverable things to happen.
可选地,预设手势可以为以下手势中的任意一种手势:Optionally, the preset gesture can be any one of the following gestures:
单指或者双指向上滑动的第一滑动手势;或者,单指或者双指向下滑动的第二滑动手势;或者,单指或者双指向左滑动的第三滑动手势;或者,单指或者双指向右滑动的第四滑动手势。The first swipe gesture of sliding up with one or two fingers; or the second swipe gesture of sliding down with one or two fingers; or the third swipe gesture of sliding left with one or two fingers; or, one or two fingers Fourth swipe gesture for right swipe.
需要补充说明的是,预设手势不限于上述这几种手势,还可以是组合手势等,可以根据用户的使用习惯具体设定,只要区别于正常的轻触图标的手势即可,用户轻触图标的手势不会触发恢复应用程序上一次关闭的页面的操作,仅是正常的打开应用程序的手势。It needs to be added that the preset gestures are not limited to the gestures mentioned above, and can also be combined gestures, etc., which can be set according to the user's usage habits, as long as they are different from the normal gestures of tapping icons. The gesture of the icon does not trigger the operation of restoring the last closed page of the application, only the normal gesture of opening the application.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图6是根据一示例性实施例示出的一种应用程序开启装置的框图,如图6所示,该应用程序开启装置可以包括但不限于:第一检测模块61、第一获取模块62和恢复模块63。Fig. 6 is a block diagram of an application opening device according to an exemplary embodiment. As shown in Fig. 6, the application opening device may include but not limited to: a first detection module 61, a first acquisition module 62 and a recovery Module 63.
第一检测模块61,被配置为检测是否接收到执行于应用程序图标上的预设手势指令;The first detection module 61 is configured to detect whether a preset gesture instruction executed on the application program icon is received;
第一获取模块62,被配置为当接收到执行于应用程序图标上的预设手势指令时,获取应用程序在最近一次关闭时存储的活动界面的状态信息;The first obtaining module 62 is configured to obtain the status information of the active interface stored when the application was closed last time when receiving a preset gesture instruction executed on the application icon;
恢复模块63,被配置为根据活动界面的状态信息将应用程序界面恢复至应用程序在最近一次关闭前的界面显示的内容。The restoring module 63 is configured to restore the application program interface to the content displayed on the interface before the last closing of the application program according to the status information of the active interface.
可选地,如图7所示,上述装置还可包括:Optionally, as shown in Figure 7, the above-mentioned device may further include:
第二检测模块64,被配置为检测是否接收到关闭当前应用程序的操作指令;The second detection module 64 is configured to detect whether an operation instruction to close the current application program is received;
记录模块65,被配置为当接收到关闭当前应用程序的操作指令时,记录当前应用程序活动界面的状态信息;The recording module 65 is configured to record the state information of the active interface of the current application program when receiving an operation instruction to close the current application program;
保存模块66,被配置为将活动界面的状态信息进行保存之后,关闭当前应用程序。The saving module 66 is configured to close the current application program after saving the state information of the active interface.
可选地,如图8所示,上述装置还可包括:Optionally, as shown in Figure 8, the above-mentioned device may further include:
第二获取模块67,被配置为当接收到关闭当前应用程序的操作指令时,获取当前应用程序的页面的网络链接地址;The second obtaining module 67 is configured to obtain the network link address of the page of the current application when receiving an operation instruction to close the current application;
保存模块66,包括:Preservation module 66, comprising:
第一保存子模块661,被配置为将活动界面的状态信息和当前应用程序的页面的网络链接地址进行保存之后,关闭当前应用程序。The first saving submodule 661 is configured to close the current application after saving the state information of the active interface and the network link address of the page of the current application.
可选地,如图9所示,第一获取模块62,可包括:Optionally, as shown in FIG. 9, the first acquisition module 62 may include:
获取子模块621,被配置为获取应用程序在最近一次关闭时存储的活动界面的状态信息和页面的网络链接地址;The obtaining submodule 621 is configured to obtain the status information of the active interface and the network link address of the page stored when the application program was closed last time;
恢复模块63,包括:Recovery module 63, including:
恢复子模块631,被配置为根据活动界面的状态信息和页面的网络链接地址将应用程序界面恢复至应用程序在最近一次关闭前的界面显示的内容。The restore submodule 631 is configured to restore the application program interface to the content displayed on the interface before the last closing of the application program according to the state information of the active interface and the network link address of the page.
可选地,如图10所示,保存模块66,可包括:Optionally, as shown in Figure 10, the saving module 66 may include:
第二保存子模块662,被配置为将活动界面的状态信息保存在本端ROM或者内存中后,关闭当前应用程序。The second saving submodule 662 is configured to close the current application program after saving the state information of the active interface in the local ROM or memory.
可选地,预设手势可以为以下手势中的任意一种手势:Optionally, the preset gesture can be any one of the following gestures:
单指或者双指向上滑动的第一滑动手势;或者,The first swipe gesture of a single or two-finger swipe up; or,
单指或者双指向下滑动的第二滑动手势;或者,A second swipe gesture with a single or two-finger swipe down; or,
单指或者双指向左滑动的第三滑动手势;或者,A third swipe gesture with one or two fingers to swipe left; or,
单指或者双指向右滑动的第四滑动手势。The fourth swipe gesture is a one-finger or two-finger swipe right.
综上所述,本公开实施例中提供的应用程序开启装置,通过检测是否接收到执行于应用程序图标上的预设手势指令;当接收到执行于该应用程序图标上的预设手势指令时,获取该应用程序在最近一次关闭时存储的活动界面的状态信息;根据该活动界面的状态信息将应用程序界面恢复至该应用程序在最近一次关闭前的界面显示的内容。从而解决了相关技术中,打开应用程序后,无法恢复之前的内容的问题,通过记录应用程序关闭之前的状态,可以快速恢复应用程序的内容,方便用户使用,提升了用户的使用体验。To sum up, the application opening device provided in the embodiment of the present disclosure detects whether a preset gesture instruction executed on the application icon is received; when the preset gesture instruction executed on the application icon is received , to obtain the status information of the active interface stored when the application was last closed; and restore the application interface to the content displayed on the interface before the last closing of the application according to the status information of the active interface. This solves the problem in related technologies that the previous content cannot be restored after the application is opened. By recording the state before the application is closed, the content of the application can be quickly restored, which is convenient for users and improves user experience.
本实施例,通过将活动界面的状态信息进行保存之后,再关闭应用程序,可以实现应用程序恢复到关闭前的状态,使用户可以继续浏览应用程序关闭前的内容,而不用打开应用程序后,通过多次操作寻找之前的内容,方便用户使用。In this embodiment, by saving the state information of the active interface, and then closing the application program, the application program can be restored to the state before closing, so that the user can continue to browse the content before the application program is closed, without opening the application program. Find the previous content through multiple operations, which is convenient for users to use.
由于对有些应用程序来说,需要获知页面的网络链接地址才能恢复之前的页面,因此,本实施例,除获取活动界面的状态信息之外,还获取当前应用程序的页面的网络链接地址,从而,使该应用程序可以恢复关闭前的页面。For some application programs, it is necessary to know the network link address of the page to restore the previous page. Therefore, in this embodiment, in addition to obtaining the state information of the active interface, the network link address of the page of the current application program is also obtained, thereby , which enables the application to restore the page it was on before it was closed.
本实施例,将活动界面的状态信息保存在本端ROM中,或者如果本端内存足够大,存储在内存中。从而使应用程序关闭前的信息可以稳定的存储,不至于丢失,引起不可恢复的事情发生。In this embodiment, the state information of the active interface is saved in the ROM of the local terminal, or stored in the internal memory if the internal memory of the local terminal is large enough. In this way, the information before the application program is closed can be stored stably, so that it will not be lost and cause unrecoverable things to happen.
本公开一示例性实施例还提供了一种应用程序开启装置,能够实现本公开提供的应用程序开启方法。该装置包括:An exemplary embodiment of the present disclosure also provides an application opening device capable of implementing the application opening method provided in the present disclosure. The unit includes:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
检测是否接收到执行于应用程序图标上的预设手势指令;Detect whether a preset gesture instruction executed on the application icon is received;
当接收到执行于应用程序图标上的预设手势指令时,获取所述应用程序在最近一次关闭时存储的活动界面的状态信息;When receiving a preset gesture instruction executed on an application program icon, acquiring the status information of the active interface stored when the application program was closed last time;
根据所述活动界面的状态信息将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。According to the status information of the active interface, the application program interface is restored to the content displayed on the interface before the last closing of the application program.
可选地,在检测是否接收到执行于应用程序图标上的预设手势指令之前,所述方法还可包括:Optionally, before detecting whether a preset gesture instruction executed on an application icon is received, the method may further include:
检测是否接收到关闭当前应用程序的操作指令;Detect whether an operation instruction to close the current application is received;
当接收到关闭当前应用程序的操作指令时,记录所述当前应用程序活动界面的状态信息;When receiving an operation instruction to close the current application program, record the state information of the active interface of the current application program;
将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序。After saving the state information of the active interface, close the current application program.
可选地,所述方法还可包括:Optionally, the method may also include:
当接收到关闭当前应用程序的操作指令时,获取当前应用程序的页面的网络链接地址;When receiving an operation instruction to close the current application program, obtain the network link address of the page of the current application program;
所述将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序,包括:After the state information of the active interface is saved, closing the current application program includes:
将所述活动界面的状态信息和当前应用程序的页面的网络链接地址进行保存之后,关闭所述当前应用程序。After saving the status information of the active interface and the network link address of the page of the current application program, the current application program is closed.
可选地,所述获取所述应用程序在最近一次关闭时存储的活动界面的状态信息,可包括:Optionally, the acquiring the status information of the active interface stored when the application was closed last time may include:
获取所述应用程序在最近一次关闭时存储的活动界面的状态信息和页面的网络链接地址;Obtain the state information of the active interface and the network link address of the page stored when the application program was closed last time;
所述根据所述活动界面的状态信息将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容,包括:According to the state information of the active interface, restoring the application program interface to the content displayed on the interface before the application program was closed last time includes:
根据所述活动界面的状态信息和页面的网络链接地址将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。According to the status information of the active interface and the network link address of the page, the application program interface is restored to the content displayed on the interface before the last closing of the application program.
可选地,所述将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序,可包括:Optionally, after the state information of the active interface is saved, closing the current application may include:
将所述活动界面的状态信息保存在本端ROM或者内存中后,关闭所述当前应用程序。After saving the status information of the active interface in the local ROM or memory, close the current application program.
可选地,所述预设手势可以为以下手势中的任意一种手势:Optionally, the preset gesture may be any one of the following gestures:
单指或者双指向上滑动的第一滑动手势;或者,The first swipe gesture of a single or two-finger swipe up; or,
单指或者双指向下滑动的第二滑动手势;或者,A second swipe gesture with a single or two-finger swipe down; or,
单指或者双指向左滑动的第三滑动手势;或者,A third swipe gesture with one or two fingers to swipe left; or,
单指或者双指向右滑动的第四滑动手势。The fourth swipe gesture is a one-finger or two-finger swipe right.
图11是根据一示例性实施例示出的一种用于应用程序开启装置的框图,该装置适用于终端设备。例如,装置1200可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 11 is a block diagram showing an apparatus for opening an application program according to an exemplary embodiment, and the apparatus is suitable for a terminal device. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
装置1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。Apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communication component 1216 .
处理组件1202通常控制装置1200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operations of the device 1200, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202 .
存储器1204被配置为存储各种类型的数据以支持在装置1200的操作。这些数据的示例包括用于在装置1200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1204 is configured to store various types of data to support operations at the device 1200 . Examples of such data include instructions for any application or method operating on device 1200, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件1206为装置1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为装置1200生成、管理和分配电力相关联的组件。The power supply component 1206 provides power to various components of the device 1200 . Power components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1200 .
多媒体组件1208包括在所述装置1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1208包括一个前置摄像头和/或后置摄像头。当装置1200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1208 includes a front camera and/or a rear camera. When the device 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当装置1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (MIC), which is configured to receive external audio signals when the device 1200 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1204 or sent via communication component 1216 . In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.
I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1214包括一个或多个传感器,用于为装置1200提供各个方面的状态评估。例如,传感器组件1214可以检测到装置1200的打开/关闭状态,组件的相对定位,例如所述组件为装置1200的显示器和小键盘,传感器组件1214还可以检测装置1200或装置1200一个组件的位置改变,用户与装置1200接触的存在或不存在,装置1200方位或加速/减速和装置1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1214 includes one or more sensors for providing status assessments of various aspects of device 1200 . For example, the sensor component 1214 can detect the open/closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200, and the sensor component 1214 can also detect a change in the position of the device 1200 or a component of the device 1200 , the presence or absence of user contact with the device 1200 , the device 1200 orientation or acceleration/deceleration and the temperature change of the device 1200 . Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1214 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1216被配置为便于装置1200和其他设备之间有线或无线方式的通信。装置1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1216 is configured to facilitate wired or wireless communication between the apparatus 1200 and other devices. The device 1200 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1200 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由装置1200的处理器1220执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1204 including instructions, which can be executed by the processor 1220 of the device 1200 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置1200的处理器执行时,使得装置1200能够执行上述应用程序开启方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the device 1200, the device 1200 can execute the above-mentioned method for launching an application program, the method comprising:
检测是否接收到执行于应用程序图标上的预设手势指令;Detect whether a preset gesture instruction executed on the application icon is received;
当接收到执行于所述应用程序图标上的预设手势指令时,获取所述应用程序在最近一次关闭时存储的活动界面的状态信息;When receiving a preset gesture command executed on the application program icon, acquiring the state information of the active interface stored when the application program was closed last time;
根据所述活动界面的状态信息将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。According to the status information of the active interface, the application program interface is restored to the content displayed on the interface before the last closing of the application program.
可选地,在检测是否接收到执行于应用程序图标上的预设手势指令之前,所述方法还可包括:Optionally, before detecting whether a preset gesture instruction executed on an application icon is received, the method may further include:
检测是否接收到关闭当前应用程序的操作指令;Detect whether an operation instruction to close the current application is received;
当接收到关闭当前应用程序的操作指令时,记录所述当前应用程序活动界面的状态信息;When receiving an operation instruction to close the current application program, record the state information of the active interface of the current application program;
将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序。After saving the state information of the active interface, close the current application program.
可选地,所述方法还可包括:Optionally, the method may also include:
当接收到关闭当前应用程序的操作指令时,获取当前应用程序的页面的网络链接地址;When receiving an operation instruction to close the current application program, obtain the network link address of the page of the current application program;
所述将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序,包括:After the state information of the active interface is saved, closing the current application program includes:
将所述活动界面的状态信息和当前应用程序的页面的网络链接地址进行保存之后,关闭所述当前应用程序。After saving the status information of the active interface and the network link address of the page of the current application program, the current application program is closed.
可选地,所述获取所述应用程序在最近一次关闭时存储的活动界面的状态信息,可包括:Optionally, the acquiring the status information of the active interface stored when the application was closed last time may include:
获取所述应用程序在最近一次关闭时存储的活动界面的状态信息和页面的网络链接地址;Obtain the state information of the active interface and the network link address of the page stored when the application program was closed last time;
所述根据所述活动界面的状态信息将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容,包括:According to the state information of the active interface, restoring the application program interface to the content displayed on the interface before the application program was closed last time includes:
根据所述活动界面的状态信息和页面的网络链接地址将应用程序界面恢复至所述应用程序在最近一次关闭前的界面显示的内容。According to the status information of the active interface and the network link address of the page, the application program interface is restored to the content displayed on the interface before the last closing of the application program.
可选地,所述将所述活动界面的状态信息进行保存之后,关闭所述当前应用程序,可包括:Optionally, after the state information of the active interface is saved, closing the current application may include:
将所述活动界面的状态信息保存在本端ROM或者内存中后,关闭所述当前应用程序。After saving the status information of the active interface in the local ROM or memory, close the current application program.
可选地,所述预设手势可以为以下手势中的任意一种手势:Optionally, the preset gesture may be any one of the following gestures:
单指或者双指向上滑动的第一滑动手势;或者,The first swipe gesture of a single or two-finger swipe up; or,
单指或者双指向下滑动的第二滑动手势;或者,A second swipe gesture with a single or two-finger swipe down; or,
单指或者双指向左滑动的第三滑动手势;或者,A third swipe gesture with one or two fingers to swipe left; or,
单指或者双指向右滑动的第四滑动手势。The fourth swipe gesture is a one-finger or two-finger swipe right.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610431818.8A CN106095318A (en) | 2016-06-16 | 2016-06-16 | Application program open method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610431818.8A CN106095318A (en) | 2016-06-16 | 2016-06-16 | Application program open method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106095318A true CN106095318A (en) | 2016-11-09 |
Family
ID=57235492
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610431818.8A Pending CN106095318A (en) | 2016-06-16 | 2016-06-16 | Application program open method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106095318A (en) |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106648796A (en) * | 2016-12-29 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Application processing method and device |
| CN106802803A (en) * | 2017-01-06 | 2017-06-06 | 腾讯科技(深圳)有限公司 | The method and apparatus of application data treatment |
| CN107179914A (en) * | 2017-06-13 | 2017-09-19 | 深圳天珑无线科技有限公司 | Application processing method and device |
| CN107562526A (en) * | 2017-08-25 | 2018-01-09 | 深圳市沃特沃德股份有限公司 | Intelligent terminal opens the method and device of application program |
| CN107578309A (en) * | 2017-08-29 | 2018-01-12 | 苏州市那美网络科技有限公司 | A kind of scenario reduction system and its implementation based on mobile electric business APP |
| CN107608771A (en) * | 2017-08-16 | 2018-01-19 | 深圳天珑无线科技有限公司 | Mobile terminal and its open application program method and with store function device |
| CN107765853A (en) * | 2017-10-13 | 2018-03-06 | 广东欧珀移动通信有限公司 | Application closing method, device, storage medium and electronic equipment |
| CN109840168A (en) * | 2019-02-14 | 2019-06-04 | 北京字节跳动网络技术有限公司 | Software rejuvenation method, apparatus, terminal and medium |
| CN111142996A (en) * | 2019-12-13 | 2020-05-12 | 深圳拓邦股份有限公司 | Page display method, system, mobile terminal and storage medium |
| CN111417929A (en) * | 2018-12-29 | 2020-07-14 | 深圳市大疆创新科技有限公司 | Interface display method and control terminal |
| CN111459714A (en) * | 2019-01-18 | 2020-07-28 | 珠海金山办公软件有限公司 | Application processing method and device, computer storage medium and terminal |
| CN111597009A (en) * | 2018-09-21 | 2020-08-28 | Oppo广东移动通信有限公司 | Application program display method, device and terminal device |
| CN109117212B (en) * | 2017-06-23 | 2021-03-30 | 北京嘀嘀无限科技发展有限公司 | Method, system, terminal and computer device for recovering information display |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102508700A (en) * | 2011-09-30 | 2012-06-20 | 广州市动景计算机科技有限公司 | Method and device for quickly recovering webpage of mobile terminal |
| US20130263034A1 (en) * | 2012-03-29 | 2013-10-03 | Nest Labs, Inc. | User Interfaces for HVAC Schedule Display and Modification on Smartphone or Other Space-Limited Touchscreen Device |
| CN103955478A (en) * | 2014-03-31 | 2014-07-30 | 北京奇虎科技有限公司 | Display method and device for closed webpage label and/or browser window |
| CN104331235A (en) * | 2014-01-10 | 2015-02-04 | 广州三星通信技术研究有限公司 | Method and device for switching application activity |
-
2016
- 2016-06-16 CN CN201610431818.8A patent/CN106095318A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102508700A (en) * | 2011-09-30 | 2012-06-20 | 广州市动景计算机科技有限公司 | Method and device for quickly recovering webpage of mobile terminal |
| US20130263034A1 (en) * | 2012-03-29 | 2013-10-03 | Nest Labs, Inc. | User Interfaces for HVAC Schedule Display and Modification on Smartphone or Other Space-Limited Touchscreen Device |
| CN104331235A (en) * | 2014-01-10 | 2015-02-04 | 广州三星通信技术研究有限公司 | Method and device for switching application activity |
| CN103955478A (en) * | 2014-03-31 | 2014-07-30 | 北京奇虎科技有限公司 | Display method and device for closed webpage label and/or browser window |
Cited By (17)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106648796A (en) * | 2016-12-29 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Application processing method and device |
| CN106802803A (en) * | 2017-01-06 | 2017-06-06 | 腾讯科技(深圳)有限公司 | The method and apparatus of application data treatment |
| US11231959B2 (en) | 2017-01-06 | 2022-01-25 | Tencent Technology (Shenzhen) Company Limited | Foreground and background switching entry generation and display following quit operations |
| CN107179914A (en) * | 2017-06-13 | 2017-09-19 | 深圳天珑无线科技有限公司 | Application processing method and device |
| CN109117212B (en) * | 2017-06-23 | 2021-03-30 | 北京嘀嘀无限科技发展有限公司 | Method, system, terminal and computer device for recovering information display |
| CN107608771A (en) * | 2017-08-16 | 2018-01-19 | 深圳天珑无线科技有限公司 | Mobile terminal and its open application program method and with store function device |
| CN107562526A (en) * | 2017-08-25 | 2018-01-09 | 深圳市沃特沃德股份有限公司 | Intelligent terminal opens the method and device of application program |
| CN107578309A (en) * | 2017-08-29 | 2018-01-12 | 苏州市那美网络科技有限公司 | A kind of scenario reduction system and its implementation based on mobile electric business APP |
| CN107765853A (en) * | 2017-10-13 | 2018-03-06 | 广东欧珀移动通信有限公司 | Application closing method, device, storage medium and electronic equipment |
| CN111597009A (en) * | 2018-09-21 | 2020-08-28 | Oppo广东移动通信有限公司 | Application program display method, device and terminal device |
| CN111597009B (en) * | 2018-09-21 | 2023-08-04 | Oppo广东移动通信有限公司 | Application program display method, device and terminal equipment |
| CN111417929A (en) * | 2018-12-29 | 2020-07-14 | 深圳市大疆创新科技有限公司 | Interface display method and control terminal |
| CN111459714A (en) * | 2019-01-18 | 2020-07-28 | 珠海金山办公软件有限公司 | Application processing method and device, computer storage medium and terminal |
| CN109840168A (en) * | 2019-02-14 | 2019-06-04 | 北京字节跳动网络技术有限公司 | Software rejuvenation method, apparatus, terminal and medium |
| CN109840168B (en) * | 2019-02-14 | 2021-11-02 | 北京字节跳动网络技术有限公司 | Software recovery method, device, terminal and medium |
| CN111142996A (en) * | 2019-12-13 | 2020-05-12 | 深圳拓邦股份有限公司 | Page display method, system, mobile terminal and storage medium |
| CN111142996B (en) * | 2019-12-13 | 2023-12-29 | 深圳拓邦股份有限公司 | Page display method, page display system, mobile terminal and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106095318A (en) | Application program open method and device | |
| KR101722522B1 (en) | Method and apparatus for switching display mode | |
| US20180284981A1 (en) | Method and apparatus for screen capture processing | |
| CN108509232A (en) | Screen recording method, device and computer readable storage medium | |
| WO2017071068A1 (en) | Application program switching method, apparatus and device | |
| CN107357505A (en) | The method, apparatus and computer-readable recording medium of screenshot capture | |
| CN105657173A (en) | Volume adjustment method and device and terminal | |
| CN105786507B (en) | Display interface switching method and device | |
| CN106527882A (en) | Content sharing method, device and terminal | |
| CN107066172A (en) | The document transmission method and device of mobile terminal | |
| CN105739857A (en) | Mobile terminal control method and apparatus | |
| CN106919334A (en) | Application program access method and device | |
| CN106598704A (en) | Application program recovery method and apparatus | |
| CN106528735A (en) | Method and device for controlling browser to play media resources | |
| CN110688181A (en) | Content display method and device in notification bar and storage medium | |
| CN108028951A (en) | Control the method and device played | |
| CN105955808B (en) | The task management method and device of instant messaging application | |
| CN107239351A (en) | Method of attaching and device | |
| CN106331328A (en) | Method and device for information prompt | |
| CN105956199A (en) | Information display method and apparatus | |
| CN107729098A (en) | Method for displaying user interface and device | |
| CN106210258A (en) | Web page access method and device | |
| CN106527919A (en) | Method and device for adjusting screen display | |
| CN106325508A (en) | Method and device for processing application | |
| CN106777160A (en) | Information deletion method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
| RJ01 | Rejection of invention patent application after publication |