CN110187978B - Application mutual exclusion solving method, wearable device and computer readable storage medium - Google Patents

Application mutual exclusion solving method, wearable device and computer readable storage medium Download PDF

Info

Publication number
CN110187978B
CN110187978B CN201910459578.6A CN201910459578A CN110187978B CN 110187978 B CN110187978 B CN 110187978B CN 201910459578 A CN201910459578 A CN 201910459578A CN 110187978 B CN110187978 B CN 110187978B
Authority
CN
China
Prior art keywords
application
list
recently used
information
wearable device
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.)
Active
Application number
CN201910459578.6A
Other languages
Chinese (zh)
Other versions
CN110187978A (en
Inventor
张欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910459578.6A priority Critical patent/CN110187978B/en
Publication of CN110187978A publication Critical patent/CN110187978A/en
Application granted granted Critical
Publication of CN110187978B publication Critical patent/CN110187978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • G06F9/526Mutual exclusion algorithms

Abstract

The application discloses an application mutual exclusion solving method, a wearable device and a computer readable storage medium, belonging to the technical field of wearable devices, wherein the method comprises the following steps: monitoring a starting signal of an application; when a starting signal of the application is monitored, recording the starting time of the application; adding the information of the application to a background application list; and checking whether the started application exists in a recently used application list, and if so, deleting the information of the application in the recently used application list. The application information of the background application and the latest application in the interface is not repeated, so that the display interface is optimized.

Description

Application mutual exclusion solving method, wearable device and computer readable storage medium
Technical Field
The application relates to the technical field of wearable equipment, in particular to an application mutual exclusion solving method, wearable equipment and a computer readable storage medium.
Background
The main interface of the wrist machine is divided into 4 parts, namely a control center, a notification center and a main dial plate from top to bottom, and the last part is a status bar, background service and the latest application.
The wrist machine background service is displayed below the status bar, has WeChat, music, sports health, countdown and stopwatch, and shows the background of the wrist machine to the user, and can jump to the application currently running, and clear a certain background application, so that the use of the bracelet memory is reduced, and the bracelet smoothness is improved. The function of removing all background services by one key is added, so that the method is convenient and quick. Each background service is divided into two parts, the left side can be clicked to jump to the application page, the right side is a clear button, and the application can be killed to release the memory.
The latest application is located at the lowest part of the main interface, and is defined in such a way that the application that has been opened recently will be displayed here, 6 are saved in the memory, and the new latest application will be displayed at the uppermost part.
The existing design is that an application is opened, a background service is started immediately, the application is seen in the background service at a main interface, the application is also seen in the latest application, and the application can be jumped by clicking respectively. The display of the interface is repeated excessively, so that the display space of the narrow interface is wasted.
Disclosure of Invention
The application mutual exclusion solving method, the wearable device and the computer readable storage medium are mainly used for solving the problems that in the prior art, newly opened applications exist in a latest application interface and a background application interface, and the utilization efficiency of repeated display and display interfaces is low.
In order to solve the above problems, the present application provides an application mutual exclusion solution method, which is applied to a wearable device, and includes the following steps:
monitoring a starting signal of an application;
when a starting signal of an application is monitored, recording the starting time of the application, and adding information of the application into a background application list;
and checking whether the started application exists in a recently used application list, and if so, deleting the information of the application in the recently used application list.
Further, the method includes, after checking whether the started application exists in a recently used application list, if so, deleting information of the application in the recently used application list;
monitoring a closing signal of an application;
when the closing signal of the application is monitored, deleting the information of the application from a background application list, and adding the information of the application to a recently used application list.
Further, the steps of the method delete the information of the application from the background application list, and after adding the information of the application to the most recently used application list include:
judging whether the number of the applications in the recently used application list exceeds a set value, if so, deleting the application with the earliest starting time from the recently used application list, so that the number of the applications in the recently used application list is less than or equal to the set value.
Further, the set value is 6.
Further, the steps of the method delete the information of the application from the background application list, and after adding the information of the application to the most recently used application list include:
the applications in the most recently used application list are arranged in time sequence from near to far according to the starting time.
Further, before the step of monitoring the start signal of the application, the method includes:
a listening buried point is set in each display interface of the wearable device.
Further, the steps of the method include, after adding the information of the application to a background application list:
and recalculating and displaying the height of the background application display module according to the new background application list.
Further, the wearable device includes 5 interfaces.
To solve the above-mentioned problem, the present application further provides a wearable device, the device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program when executed by the processor implements the steps of applying a mutual exclusion solution as defined in any of the above.
And, in order to solve the above-mentioned problem, the present application further provides a computer readable storage medium, on which an application mutual exclusion solving program is stored, the application mutual exclusion solving program implementing the steps of the application mutual exclusion solving method described in any one of the above when executed by a processor.
According to the application mutual exclusion solving method, the wearable device and the computer readable storage medium, the application information in the background application program list and the application information in the latest application list in the display interface are updated, de-duplicated and rearranged by monitoring the starting and closing signals of the application, so that the application information in the background application program list and the latest application list does not have repeated information any more, the display interface is optimized, and the utilization efficiency of the display interface is also enhanced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic hardware structure of an implementation manner of a wearable device provided in an embodiment of the present application;
Fig. 2 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 3 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 4 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 5 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of an implementation flow of the mutual exclusion solution method according to the first embodiment of the present application;
FIG. 7 is a schematic flow chart of an implementation of the mutual exclusion solution method according to the second embodiment of the present application;
FIG. 8 is a schematic flow chart of an implementation of the mutual exclusion solution method according to the third embodiment of the present application;
fig. 9 is a schematic flow chart of an implementation of the mutual exclusion solution method according to the fourth embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and are not of specific significance per se. Thus, "module," "component," or "unit" may be used in combination.
The wearable device provided by the embodiment of the application comprises a mobile terminal such as an intelligent bracelet, an intelligent watch and an intelligent mobile phone. With the continuous development of screen technology, mobile terminals such as smart phones and the like can also be used as wearable devices due to the appearance of screen forms such as flexible screens, folding screens and the like. The wearable device provided in the embodiment of the application may include: RF (Radio Frequency) unit, wi-Fi module, audio output unit, A/V (audio/video) input unit, sensor, display unit, user input unit, interface unit, memory, processor, and power supply.
In the following description, a wearable device will be taken as an example, please refer to fig. 1, which is a schematic hardware structure of a wearable device implementing various embodiments of the present application, where the wearable device 100 may include: RF (Radio Frequency) unit 101, wi-Fi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and that the wearable device may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 1:
the radio frequency unit 101 may be used to send and receive information or send signals in a call process, specifically, the radio frequency unit 101 may send uplink information to the base station, or may send downlink information sent by the base station to the processor 110 of the wearable device to process the downlink information, where the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the wearable device is updated, for example, after detecting that the geographic position where the wearable device is located changes, the base station may send a notification of the change of the geographic position to the radio frequency unit 101 of the wearable device, after receiving the notification of the message, the radio frequency unit 101 may send the notification of the message to the processor 110 of the wearable device to process, and the processor 110 of the wearable device may control the notification of the message to be displayed on the display panel 1061 of the wearable device; typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication, which may specifically include: through wireless communication with a server in a network system, for example, the wearable device can download file resources from the server through wireless communication, for example, an application program can be downloaded from the server, after the wearable device finishes downloading a certain application program, if the file resources corresponding to the application program in the server are updated, the server can push a message notification of the resource update to the wearable device through wireless communication so as to remind a user to update the application program. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
In one embodiment, the wearable device 100 may access an existing communication network by inserting a SIM card.
In another embodiment, the wearable device 100 may access an existing communication network by setting an esim card (Embedded-SIM), and by adopting the esim card, the internal space of the wearable device may be saved and the thickness may be reduced.
It will be appreciated that although fig. 1 shows a radio frequency unit 101, it will be appreciated that the radio frequency unit 101 is not an essential component of a wearable device and may be omitted entirely as required within the scope of not changing the essence of the invention. The wearable device 100 may implement communication connection with other devices or communication networks through the Wi-Fi module 102 alone, which is not limited in this embodiment.
Wi-Fi belongs to a short-distance wireless transmission technology, and the wearable device can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the Wi-Fi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows Wi-Fi module 102, it is to be understood that it does not belong to the necessary constitution of the wearable device, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the Wi-Fi module 102 or stored in the memory 109 into an audio signal and output as sound when the wearable device 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., call signal reception sound, message reception sound, etc.) related to a specific function performed by the wearable device 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or Wi-Fi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
In one embodiment, the wearable device 100 includes one or more cameras, and by opening the cameras, capturing of images, photographing, video recording and other functions can be achieved, and the positions of the cameras can be set as required.
The wearable device 100 further comprises at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the wearable device 100 moves to the ear. As one type of motion sensor, the accelerometer sensor can detect the acceleration in all directions (typically three axes), and can detect the gravity and direction when stationary, and can be used for applications for recognizing the gesture of a mobile phone (such as horizontal-vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer, knocking), and the like.
In one embodiment, the wearable device 100 further comprises a proximity sensor, by employing the proximity sensor, the wearable device is able to achieve non-contact manipulation, providing more modes of operation.
In one embodiment, the wearable device 100 further comprises a heart rate sensor, which when worn, enables detection of heart rate by being in close proximity to the user.
In one embodiment, the wearable device 100 may further include a fingerprint sensor, by reading a fingerprint, security verification or the like can be achieved.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
In one embodiment, the display panel 1061 employs a flexible display screen, and the wearable device employing the flexible display screen is capable of bending when worn, thereby fitting more. Optionally, the flexible display screen may be an OLED screen body and a graphene screen body, and in other embodiments, the flexible display screen may also be other display materials, which is not limited to this embodiment.
In one embodiment, the display panel 1061 of the wearable device may take a rectangular shape for ease of wrapping when worn. In other embodiments, other approaches may be taken as well.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the wearable device. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
In one embodiment, the sides of the wearable device 100 may be provided with one or more buttons. The button can realize a plurality of modes such as short pressing, long pressing, rotation and the like, thereby realizing a plurality of operation effects. The number of the buttons can be multiple, and different buttons can be combined for use, so that multiple operation functions are realized.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the wearable device, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the wearable device, which is not limited herein. For example, when a message notification of a certain application is received through the rf unit 101, the processor 110 may control the message notification to be displayed in a certain preset area of the display panel 1061, where the preset area corresponds to a certain area of the touch panel 1071, and may control the message notification displayed in the corresponding area on the display panel 1061 by performing a touch operation on the certain area of the touch panel 1071.
The interface unit 108 serves as an interface through which at least one external device can be connected with the wearable apparatus 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the wearable apparatus 100 or may be used to transmit data between the wearable apparatus 100 and the external device.
In one embodiment, the interface unit 108 of the wearable device 100 adopts a contact structure, and is connected with other corresponding devices through the contact, so as to realize functions of charging, connection and the like. The contact can also be waterproof.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the wearable device, connects various parts of the entire wearable device with various interfaces and lines, performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 109, and invoking data stored in the memory 109, thereby performing overall monitoring of the wearable device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The wearable device 100 may further include a power source 111 (such as a battery) for powering the various components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the wearable device 100 may further include a bluetooth module or the like, which is not described herein. The wearable device 100 can be connected with other terminal devices through bluetooth to realize communication and information interaction.
Fig. 2 to fig. 4 are schematic structural diagrams of a wearable device according to an embodiment of the present application. The wearable device in the embodiment of the application comprises a flexible screen. When the wearable device is unfolded, the flexible screen is in a strip shape; when the wearable device is in a wearing state, the flexible screen is bent to be annular. Fig. 2 and 3 show schematic structural diagrams of the wearable device screen when unfolded, and fig. 4 shows schematic structural diagrams of the wearable device screen when bent.
Based on the above embodiments, it can be seen that if the device is a wristwatch, a bracelet, or a wearable device, the screen of the device may not cover the watchband area of the device, or may cover the watchband area of the device. In this embodiment, the device may be a wristwatch, a bracelet, or a wearable device, and the device includes a screen and a connection portion. The screen may be a flexible screen and the connection may be a wristband. Alternatively, the screen of the device or the display area of the screen may be partially or fully overlaid on the wristband of the device. Fig. 5 is a schematic hardware diagram of an implementation manner of a wearable device according to an embodiment of the present application, where a screen of the device extends to two sides, and a part of the screen is covered on a watchband of the device. In other embodiments, the screen of the device may also be entirely covered on the watchband of the device, which is not limited to this embodiment.
Example 1
The first embodiment of the present application provides an application mutual exclusion solution, which is applied to a wearable device, as shown in fig. 6, and includes the following steps:
s11, monitoring a starting signal of an application;
in order to better monitor the starting condition of the application program in the setting, a monitoring buried point is set in each display interface of the wearable device. Specifically, a service is embedded in the AMS to monitor the start and shutdown of the application service. The ActivityManagerService is called AMS for short, is an important service in android, and comprehensively manages four components of the android; uniformly scheduling each application process; the AMN is derived from the Binder class by the Binder class, so that an IActityManager interface is realized, and the client uses the ActivityManager class, because the AMS is a system core service, a plurality of APIs cannot be directly accessed, and an ActivityManagerProxy object is required to be obtained by calling a getDefault method of the AMN in ActivityManager, activityManager, and can be communicated with the AMS through the ActivityManagerProxy object.
When the application service is started or the application service is in death, the application service is reported to the desktop, and a desktop background service module stores the state of the application service. In a watchcontrol center controller (control center class for managing, operating, executing functions, etc.) mListService (ArrayList).
The desktop application of the wearable device is accurately recorded when being opened. recentTaskListSix (ArrayList) in recenttasksril. The wearable device includes 5 interfaces. Recording points are buried in each interface of a watchfunciton cartfischer (first dial on the right of the main interface), a second dial on the right of the main interface, a third dial on the right of the main interface, and a ZeroController (first dial on the left of the main interface), and detailed information of each application is recorded in a reccenttask bean (which is a class in which fields store information). Recording points are buried in the selection buttons in the notification details. With pendingIntent is that an application can be opened where the recording spot is buried. The incoming call monitoring, the current incoming call information is obtained through state in the onCallStateChanged callback method of the PhoneStateListener, a recording point is embedded in the current incoming call information, and the recording point is used for monitoring the state of a telephone, and the incoming call information is in existence, in a call, hung up and the like. The storage of the reccentTaskBean is performed by means of a recentTaskListSix set of the reccentTaskUtil.
S12, when a starting signal of an application is monitored, recording the starting time of the application, and adding information of the application into a background application list;
And calling the requestLayout () of the WatchControlCenterView to re-perform onMessaure and onLayout each time the number of the background applications changes, and re-calculating the onMessage to enable the background application display module to reach a proper height. And the height of the background application display module is recalculated and displayed according to the new background application list.
S13, checking whether the started application exists in a recently used application list, and if so, deleting information of the application in the recently used application list.
The information of the started application is automatically listed in a background application list and displayed in a background application module, if the application belongs to restarting, the information of the application is also displayed in a recently used application list, in order to avoid repeated application information in an interface, the information of the application in the recently used application list is deleted, namely, the recently used application list is subjected to de-duplication processing, when a reported process is started with a new process, all service fields in mListService are traversed, and the latest application module is subjected to de-duplication, sequencing and other integration once one is found.
According to the application mutual exclusion solving method, starting and closing signals of the application are monitored, application information in a background application program list and application information in a recently used application list in a display interface are updated, de-duplicated and rearranged, so that repeated information does not exist in the application information in the background application program list and the application information in the recently used application list, the display interface is optimized, and the utilization efficiency of the display interface is also enhanced.
Example two
The second embodiment of the present application provides an application mutual exclusion solution, which is applied to a wearable device, as shown in fig. 7, and includes the following steps:
s21, monitoring a starting signal of an application;
in order to better monitor the starting condition of the application program in the setting, a monitoring buried point is set in each display interface of the wearable device. Specifically, a service is embedded in the AMS to monitor the start and shutdown of the application service. The ActivityManagerService is called AMS for short, is an important service in android, and comprehensively manages four components of the android; uniformly scheduling each application process; the AMN is derived from the Binder class by the Binder class, so that an IActityManager interface is realized, and the client uses the ActivityManager class, because the AMS is a system core service, a plurality of APIs cannot be directly accessed, and an ActivityManagerProxy object is required to be obtained by calling a getDefault method of the AMN in ActivityManager, activityManager, and can be communicated with the AMS through the ActivityManagerProxy object.
S22, when a starting signal of an application is monitored, recording the starting time of the application, and adding information of the application into a background application list;
according to the starting and closing of the arranged buried point monitoring application, the acquisition, storage and analysis of the starting and closing data of the application can be accurately realized.
S23, checking whether the started application exists in a recently used application list, and if so, deleting information of the application in the recently used application list;
in order to avoid that the restarted application exists in a background application list and a recently used application list simultaneously, an information repetition and waste display interface is formed.
S24, monitoring an application closing signal;
in order to update the application which is used recently in time, the closing signal of the application is also monitored; the closing process of the monitoring application is the same as the opening process of the monitoring application, and the data acquisition of the closing application is carried out through the buried points arranged on the corresponding interfaces. The processor receives a signal for closing the application, and the application is closed, namely the process of the application is closed, and the operation of the processor is exited. When the user needs to close, the user can send out a signal for closing the application through a set button for closing the application, and can also send out a signal for closing the application through a set touch gesture.
S25, deleting the information of the application from a background application list when the closing signal of the application is monitored, and adding the information of the application to a recently used application list.
Recording closing time of the application when a closing signal of the application is monitored; and deleting the information of the application from the background application list, and adding the information of the application to the recently used application list. The information of the started application is automatically listed in a background application list and displayed in a background application module, if the application belongs to restarting, the information of the application is also displayed in a recently used application list, in order to avoid repeated application information in an interface, the information of the application in the recently used application list is deleted, namely, the recently used application list is subjected to de-duplication processing, when a reported process is started with a new process, all service fields in mListService are traversed, and the latest application module is subjected to de-duplication, sequencing and other integration once one is found.
To help the user to see the usage time of the application in the most recently used application list, the applications in the application list are arranged in order of starting time from near to far. Since the display interface is limited, a preferred part of the most recently used applications are displayed in the interface, so that whether the number of the applications in the most recently used application list exceeds a set value is judged, and if so, the application with the earliest starting time is deleted from the most recently used application list, so that the number of the applications in the most recently used application list is less than or equal to the set value. Preferably, the setting value is 6, that is, when the number of applications in the most recently used application list is at most 6, the application with the earliest start time is deleted from the most recently used application list once the number of applications in the most recently used application list exceeds 6.
According to the application mutual exclusion solving method, starting and closing signals of the application are monitored, application information in a background application program list and application information in a latest application list in a display interface are updated, de-duplicated and rearranged, so that repeated information does not exist in the application information in the background application program list and the latest application list, the latest application list is updated in time after the application is closed, the display interface is optimized, and the utilization efficiency of the display interface is also enhanced.
Example III
A third embodiment of the present application provides an application mutual exclusion solution, applied to a wearable device, as shown in fig. 8, including the following steps:
s31, monitoring a starting signal of an application;
s32, when a starting signal of an application is monitored, recording the starting time of the application, and adding information of the application into a background application list;
according to the starting and closing of the arranged buried point monitoring application, the acquisition, storage and analysis of the starting and closing data of the application can be accurately realized.
S33, checking whether the started application exists in a recently used application list, and if so, deleting information of the application in the recently used application list;
In order to avoid that the restarted application exists in a background application list and a recently used application list simultaneously, an information repetition and waste display interface is formed.
S34, monitoring an application closing signal;
s35, deleting information of the application from a background application list when a closing signal of the application is monitored, and adding the information of the application to a recently used application list;
recording closing time of the application when a closing signal of the application is monitored; and deleting the information of the application from the background application list, and adding the information of the application to the recently used application list. The information of the started application is automatically listed in a background application list and displayed in a background application module, if the application belongs to restarting, the information of the application is also displayed in a recently used application list, in order to avoid repeated application information in an interface, the information of the application in the recently used application list is deleted, namely, the recently used application list is subjected to de-duplication processing, when a reported process is started with a new process, all service fields in mListService are traversed, and the latest application module is subjected to de-duplication, sequencing and other integration once one is found.
S36, judging whether the number of the applications in the recently used application list exceeds a set value, if so, executing S37, otherwise, ending;
s37, deleting the application with the earliest starting time from the recently used application list, so that the number of the applications in the recently used application list is less than or equal to a set value.
To help the user to see the usage time of the application in the most recently used application list, the applications in the application list are arranged in order of starting time from near to far. Since the display interface is limited, a preferred part of the most recently used applications are displayed in the interface, so that whether the number of the applications in the most recently used application list exceeds a set value is judged, and if so, the application with the earliest starting time is deleted from the most recently used application list, so that the number of the applications in the most recently used application list is less than or equal to the set value. Preferably, the setting value is 6, that is, when the number of applications in the most recently used application list is at most 6, the application with the earliest start time is deleted from the most recently used application list once the number of applications in the most recently used application list exceeds 6.
According to the application mutual exclusion solving method, starting and closing signals of the application are monitored, application information in a background application program list and application information in a latest application list in a display interface are updated, de-duplicated and rearranged, so that repeated information does not exist in the application information in the background application program list and the latest application list, the number of the application in the latest application list is limited within a certain number, the display interface is optimized, and the utilization efficiency of the display interface is also enhanced.
Example IV
A fourth embodiment of the present application provides an application mutual exclusion solution, applied to a wearable device, as shown in fig. 9, including the following steps:
s41, monitoring buried points are arranged in each display interface of the wearable equipment;
buried point is a common data acquisition method. The data embedding points are divided into primary, medium and high-grade modes. Primary: implanting statistical codes into key points of product and service conversion, and ensuring that data acquisition is not repeated (such as click rate of a purchase button) according to independent IDs thereof; intermediate level: multiple codes are implanted, and the series behaviors of a user on each interface of the platform are tracked, wherein the events are mutually independent (such as opening a commodity detail page, selecting a commodity model, adding a shopping cart, placing an order and completing purchase); high-grade: the method comprises the steps of combining company engineering and ETL collection and analysis of user overall behaviors, building user portraits, and restoring a user behavior model to serve as a basis for product analysis and optimization.
Undoubtedly, the data burial point is a good privately deployed data acquisition mode. The data acquisition is accurate, the requirements of removing rough and fine data and realizing the rapid optimization iteration of products and services are met.
S42, monitoring a starting signal of the application;
According to the starting and closing of the arranged buried point monitoring application, the acquisition, storage and analysis of the starting and closing data of the application can be accurately realized.
S43, when a starting signal of an application is monitored, recording the starting time of the application, and adding information of the application into a background application list;
according to the starting and closing of the arranged buried point monitoring application, the acquisition, storage and analysis of the starting and closing data of the application can be accurately realized.
S44, checking whether the started application exists in a recently used application list, and if so, deleting information of the application in the recently used application list;
in order to avoid that the restarted application exists in a background application list and a recently used application list simultaneously, an information repetition and waste display interface is formed.
S45, monitoring an application closing signal;
s46, deleting information of the application from a background application list when a closing signal of the application is monitored, and adding the information of the application to a recently used application list;
Recording closing time of the application when a closing signal of the application is monitored; and deleting the information of the application from the background application list, and adding the information of the application to the recently used application list. The information of the started application is automatically listed in a background application list and displayed in a background application module, if the application belongs to restarting, the information of the application is also displayed in a recently used application list, in order to avoid repeated application information in an interface, the information of the application in the recently used application list is deleted, namely, the recently used application list is subjected to de-duplication processing, when a reported process is started with a new process, all service fields in mListService are traversed, and the latest application module is subjected to de-duplication, sequencing and other integration once one is found.
S47, arranging the applications in the recently used application list according to the time sequence from near to far according to the starting time;
to help the user to see the usage time of the application in the most recently used application list, the applications in the application list are arranged in order of starting time from near to far.
S48, judging whether the number of the applications in the recently used application list exceeds a set value, if so, executing a step S49, otherwise, ending;
s49, deleting the application with the earliest starting time from the recently used application list, so that the number of the applications in the recently used application list is less than or equal to a set value.
Since the display interface is limited, a preferred part of the most recently used applications are displayed in the interface, so that whether the number of the applications in the most recently used application list exceeds a set value is judged, and if so, the application with the earliest starting time is deleted from the most recently used application list, so that the number of the applications in the most recently used application list is less than or equal to the set value. Preferably, the setting value is 6, that is, when the number of applications in the most recently used application list is at most 6, the application with the earliest start time is deleted from the most recently used application list once the number of applications in the most recently used application list exceeds 6.
According to the application mutual exclusion solving method, starting and closing signals of the application are monitored, application information in a background application program list and application information in a latest application list in a display interface are updated, de-duplicated and rearranged, so that repeated information does not exist in the application information in the background application program list and the latest application list, the number of the application in the latest application list is limited within a certain number, the display interface is further optimized, and the utilization efficiency of the display interface is enhanced.
Example five
A fifth embodiment of the present application provides a wearable device, as the device in fig. 1 includes:
a memory 109, a processor 110, and a computer program stored on the memory 109 and executable on the processor 110;
the steps of the application mutual exclusion solution described in any of the first, second, third and fourth embodiments are implemented when the computer program is executed by the processor 110.
Example six
The sixth embodiment of the present application further provides a computer readable storage medium, where an application mutual exclusion solving program is stored, where the application mutual exclusion solving program implements the steps of the application mutual exclusion solving method described in any one of the first embodiment, the second embodiment, the third embodiment, and the fourth embodiment when executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the protection of the claims, which fall within the protection of the present application.

Claims (3)

1. An application mutual exclusion solving method applied to a wearable device is characterized by comprising the following steps:
monitoring buried points are arranged in each display interface of the wearable equipment, and the wearable equipment comprises 5 interfaces;
monitoring a starting signal of an application;
when a starting signal of an application is monitored, recording the starting time of the application, and adding information of the application into a background application list;
the height of the background application display module is recalculated and displayed according to the new background application list;
checking whether the started application exists in a recently used application list, and if so, deleting information of the application in the recently used application list;
monitoring a closing signal of an application;
deleting information of an application from a background application list when a closing signal of the application is monitored, and adding the information of the application to a recently used application list;
the method comprises the steps of arranging the applications in a recently used application list according to the time sequence from near to far of the starting time;
judging whether the number of the applications in the recently used application list exceeds 6, if so, deleting the application with the earliest starting time from the recently used application list, so that the number of the applications in the recently used application list is less than or equal to a set value.
2. A wearable device, the device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program, when executed by the processor, implements the steps of applying a mutual exclusion solution as defined in claim 1.
3. A computer-readable storage medium, wherein an application mutual exclusion solving program is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the application mutual exclusion solving method according to claim 1.
CN201910459578.6A 2019-05-29 2019-05-29 Application mutual exclusion solving method, wearable device and computer readable storage medium Active CN110187978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910459578.6A CN110187978B (en) 2019-05-29 2019-05-29 Application mutual exclusion solving method, wearable device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910459578.6A CN110187978B (en) 2019-05-29 2019-05-29 Application mutual exclusion solving method, wearable device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110187978A CN110187978A (en) 2019-08-30
CN110187978B true CN110187978B (en) 2023-06-27

Family

ID=67718631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910459578.6A Active CN110187978B (en) 2019-05-29 2019-05-29 Application mutual exclusion solving method, wearable device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110187978B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010322A (en) * 2021-04-07 2021-06-22 智道网联科技(北京)有限公司 Method for optimizing in-vehicle memory, in-vehicle system, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150026656A (en) * 2013-09-03 2015-03-11 삼성전자주식회사 Method for controlling an application and an electronic device
CN105162842A (en) * 2015-08-04 2015-12-16 北京金山安全软件有限公司 Display method and device for application in application wall
CN105468348A (en) * 2014-09-05 2016-04-06 中国移动通信集团公司 Method and apparatus for displaying custom interface on terminal, and terminal
CN109725866A (en) * 2018-12-29 2019-05-07 努比亚技术有限公司 Application interface display methods, terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150026656A (en) * 2013-09-03 2015-03-11 삼성전자주식회사 Method for controlling an application and an electronic device
CN105468348A (en) * 2014-09-05 2016-04-06 中国移动通信集团公司 Method and apparatus for displaying custom interface on terminal, and terminal
CN105162842A (en) * 2015-08-04 2015-12-16 北京金山安全软件有限公司 Display method and device for application in application wall
CN109725866A (en) * 2018-12-29 2019-05-07 努比亚技术有限公司 Application interface display methods, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110187978A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN109946986B (en) Household appliance control method, wearable device and computer readable storage medium
CN109982179B (en) Audio signal output method and device, wearable device and storage medium
CN110187771B (en) Method and device for interaction of air gestures, wearable equipment and computer storage medium
CN109819506B (en) Intelligent connection method, wearable device and computer readable storage medium
CN110898424B (en) Display control method and electronic equipment
CN110225282B (en) Video recording control method, device and computer readable storage medium
CN109933294B (en) Data processing method and device, wearable device and storage medium
CN110098845B (en) Message processing method, wearable device, mobile terminal and readable storage medium
CN110086930A (en) A kind of voice interactive method, wearable device and computer readable storage medium
CN110069200B (en) Wearable device input control method, wearable device and storage medium
CN110139270B (en) Wearable device pairing method, wearable device and computer readable storage medium
CN109933400B (en) Display interface layout method, wearable device and computer readable storage medium
CN110399195B (en) Desktop icon dynamic replacement method, equipment and computer readable storage medium
CN110187978B (en) Application mutual exclusion solving method, wearable device and computer readable storage medium
CN110072071B (en) Video recording interaction control method, equipment and computer readable storage medium
CN110213637B (en) Method for adding watermark to video file, wearable device and readable storage medium
CN110162369B (en) Wearable device, icon arrangement method thereof and computer readable storage medium
CN110177208B (en) Video recording association control method, equipment and computer readable storage medium
CN109933187B (en) Wearing equipment operation control method, wearing equipment and computer readable storage medium
CN110650289B (en) Shooting depth of field control method, equipment and computer readable storage medium
CN110213441B (en) Voice control method, wearable device and computer-readable storage medium
CN109947448B (en) Time updating method, device and computer readable storage medium
CN109992341B (en) Button quick response method, wearable device and computer readable storage medium
CN110083205B (en) Page switching method, wearable device and computer-readable storage medium
CN109992087B (en) Optimization method for data display of wearable device, wearable device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant