CN110187978A - Using mutual exclusion solution, wearable device and computer readable storage medium - Google Patents

Using mutual exclusion solution, wearable device and computer readable storage medium Download PDF

Info

Publication number
CN110187978A
CN110187978A CN201910459578.6A CN201910459578A CN110187978A CN 110187978 A CN110187978 A CN 110187978A CN 201910459578 A CN201910459578 A CN 201910459578A CN 110187978 A CN110187978 A CN 110187978A
Authority
CN
China
Prior art keywords
application
list
recently
wearable device
information
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.)
Granted
Application number
CN201910459578.6A
Other languages
Chinese (zh)
Other versions
CN110187978B (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

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

Landscapes

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

Abstract

The application discloses a kind of application mutual exclusion solution, wearable device and computer readable storage medium, belongs to wearable device technical field, which comprises monitor the enabling signal of application;When listening to the enabling signal of application, the time of record application starting;The information of the application is added into background application list;Check that the application of the starting uses in list of application with the presence or absence of in recently, if it is, deleting recently using the information applied described in list of application.The application makes the background application in interface no longer there is duplicate application message using application with nearest, optimizes display interface.

Description

Using mutual exclusion solution, wearable device and computer readable storage medium
Technical field
This application involves wearable device technical field more particularly to a kind of application mutual exclusion solutions, wearable device And computer readable storage medium.
Background technique
Wrist owner interface has been divided into 4 parts at present, is from top to bottom control centre, notice center, main dial plate, the last one It is status bar, background service, recently application.
Wrist machine background service is shown in below status bar, there is wechat, music, sport health, countdown and stopwatch, and backstage takes Business is that user one displaying which has running from the background at present, can carry out jumping to currently running application, can also be clear Except some background application improves bracelet fluency to reduce the use of bracelet memory.It is also added into a key and removes all backstage clothes The function of business, it is convenient and efficient.Each background service is divided into two parts, and the left side, which can carry out clicking, jumps to this application page, The right is to remove button, this application can be killed, with releasing memory.
Application recently is located at the lowest part of main interface, and definition is that application opened recently can be shown herein, inside 6 are saved in depositing, and new nearest application can be shown topmost.
Existing design is, opens application, background service also starts immediately, in main interface it is seen that in background service There is this application, application also has this application recently, and clicking on, which can be carried out, jumps.The displaying at interface is excessively repeated, wave Originally narrow showing interface space is taken.
Summary of the invention
The main purpose of the application is to propose a kind of application mutual exclusion solution, wearable device and computer-readable deposits Storage media, it is intended to which the application for solving newly to open in the prior art, which is both present in nearest application interface, exists in background application circle In face, the low problem of repetition display, display interface utilization efficiency.
To solve the above problems, the application provides a kind of application mutual exclusion solution, applied to wearable device, including with Lower step:
Monitor the enabling signal of application;
When listening to the enabling signal of application, the time of record application starting adds the information of the application to from the background In list of application;
Check that the application of the starting, using in list of application, uses recently with the presence or absence of in recently if it is, deleting The information applied described in list of application.
Further, the method uses in list of application in the application for checking the starting with the presence or absence of in recently, such as Fruit is then to delete to include later recently using the information applied described in list of application;
Monitor the shutdown signal of application;
When listening to the shutdown signal of application, the information of the application is deleted from background application list, and by institute The information for stating application is added to recently using in list of application.
Further, the step of the method deletes the information of the application from background application list, and will be described The information of application is added to use in list of application recently
Judge it is described it is nearest the use of the quantity applied in list of application whether is more than setting value, if it is, from it is described most The nearly application earliest using the deletion starting time in list of application makes to be less than or waited using the quantity applied in list of application recently In setting value.
Further, the setting value is 6.
Further, the step of the method deletes the information of the application from background application list, and will be described The information of application is added to use in list of application recently
To the Time alignment sequence recently using the application in list of application according to the starting time from the near to the remote.
Further, include: before the step of the method monitors the enabling signal applied
Setting is monitored and is buried a little in each display interface of wearable device.
Further, include: after the step of the method adds the information of the application into background application list
The height of background application display module is recalculated and shown according to new background application list.
Further, the wearable device includes 5 interfaces.
To solve the above problems, the application also provides a kind of wearable device, the equipment includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The computer program realizes application mutual exclusion solution described in any of the above embodiments when being executed by the processor The step of.
It is described computer-readable and to solve the above problems, the application also provides a kind of computer readable storage medium It is stored on storage medium using mutual exclusion settlement procedure, the application mutual exclusion settlement procedure realizes above-mentioned when being executed by processor Described in one the step of application mutual exclusion solution.
Application mutual exclusion solution, wearable device and the computer readable storage medium that the application realizes, pass through monitoring The starting and shutdown signal of application, to the background application list in display interface and recently using the application in list of application Information is updated, duplicate removal and rearranges sequence, makes background application list and recently using the application in list of application No longer there is duplicate message in information, optimize display interface, also enhance the utilization efficiency of display interface.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of embodiment of wearable device provided by the embodiments of the present application;
Fig. 2 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 3 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 4 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 5 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 6 is the implementation process schematic diagram using mutual exclusion solution that the application first embodiment provides;
Fig. 7 is the implementation process schematic diagram using mutual exclusion solution that the application second embodiment provides;
Fig. 8 is the implementation process schematic diagram using mutual exclusion solution that the application 3rd embodiment provides;
Fig. 9 is the implementation process schematic diagram using mutual exclusion solution that the application fourth embodiment provides.
Specific embodiment
It should be appreciated that specific embodiment described herein is only used to explain the application, it is not used to limit the application.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element The explanation for being conducive to the application, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
The wearable device provided in the embodiment of the present application includes that Intelligent bracelet, smartwatch and smart phone etc. move Dynamic terminal.With the continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, smart phone etc. is mobile eventually End can also be used as wearable device.The wearable device provided in the embodiment of the present application may include: RF (Radio Frequency, radio frequency) unit, Wi-Fi module, audio output unit, A/V (audio/video) input unit, sensor, display The components such as unit, user input unit, interface unit, memory, processor and power supply.
It will be illustrated by taking wearable device as an example in subsequent descriptions, referring to Fig. 1, it is the realization each implementation of the application A kind of hardware structural diagram of wearable device of example, which may include: RF (Radio Frequency, 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, with And the equal components of power supply 111.It will be understood by those skilled in the art that wearable device structure shown in Fig. 1 is not constituted to can The restriction of wearable device, wearable device may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.
It is specifically introduced below with reference to all parts of the Fig. 1 to wearable device:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency list Uplink information can be sent to base station by member 101, and after the downlink information that in addition can also be sent base station receives, being sent to can be worn The processor 110 for wearing equipment is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101 What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for detecting wearable device It send, for example, base station can penetrating to wearable device after detecting that geographical location locating for wearable device changes Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing The processor 110 that message informing is sent to wearable device is handled, and it is logical that the processor 110 of wearable device can control the message Know on the display panel 1061 for being shown in wearable device;In general, radio frequency unit 101 include but is not limited to antenna, at least one Amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radio Letter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, example Such as, wearable device can download file resource from server by wireless communication, for example can download and answer from server With program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in server Resource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remind User is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), (Wideband Code Division Multiple Access, wideband code division are more by WCDMA Location), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous CDMA), (Frequency Division Duplexing-Long Term Evolution, frequency division duplex are long by FDD-LTE Phase evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are drilled for a long time Into) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can be come real by the way that esim card (Embedded-SIM) is arranged Existing communication network is now accessed, by the way of esim card, the inner space of wearable device can be saved, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its And it is not belonging to must be configured into for wearable device, it can according to need within the scope of not changing the essence of the invention and save completely Slightly., wearable device 100 can realize the communication link with other equipment or communication network separately through Wi-Fi module 102 It connects, the embodiment of the present application is not limited thereto.
Wi-Fi belongs to short range wireless transmission technology, and wearable device can help user to receive by Wi-Fi module 102 It sends e-mails, browse webpage and access streaming video etc., it provides wireless broadband internet access for user.Although figure 1 shows Wi-Fi module 102, but it is understood that, and it is not belonging to must be configured into for wearable device, it completely can be with It omits within the scope of not changing the essence of the invention as needed.
Audio output unit 103 can be in call signal reception pattern, call mode, record in wearable device 100 It is when under the isotypes such as mode, speech recognition mode, broadcast reception mode, radio frequency unit 101 or Wi-Fi module 102 is received Or the audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception sound Sound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
In one embodiment, wearable device 100 includes one or more cameras, by opening camera, It can be realized the capture to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1061, proximity sensor can when wearable device 100 is moved in one's ear, Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static It (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function Hit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensor Wearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, wearable device 100 further includes heart rate sensor, when wearing, by close to using Person can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprint Realize the functions such as safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, and wearable using flexible display screen sets For when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screen Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment It is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearing Around.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and wearable device User setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearby Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching Two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviour Make bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation One of bar etc. is a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of wearable device 100.Button can be with The various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be different to be multiple It can be applied in combination between button, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing wearable device as two independent components, but in certain embodiments, Touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of wearable device, specifically herein Without limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101 The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certain One region is corresponding, can be to corresponding to area on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071 The message informing shown in domain is controlled.
Interface unit 108 be used as at least one external device (ED) connect with wearable device 100 can by interface.Example Such as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You Xianhuo Wireless data communications port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in wearable device 100 or can For transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact with Corresponding other equipment connection, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection Various pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored in Data in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device whole Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Wearable device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be logically contiguous by power-supply management system and processor 110, thus charged by power-supply management system realization management, The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, wearable device 100 can also be including bluetooth module etc., and details are not described herein.It is wearable to set Standby 100, by bluetooth, can connect with other terminal devices, realize communication and the interaction of information.
Fig. 2-Fig. 4 is please referred to, is the structure under a kind of a kind of embodiment of wearable device provided by the embodiments of the present application Schematic diagram.Wearable device in the embodiment of the present application, including flexible screen.In wearable device expansion, flexible screen is in Strip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable device Structural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, bracelet or wearable device When, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here, this Shen It please propose a kind of optional embodiment, in the present embodiment, the equipment for wrist-watch, bracelet or wearable can be set Standby, the equipment includes screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be watchband.It can Choosing, the screen of the equipment or the viewing area of screen can be partly or completely covered on the watchband of equipment.Such as Fig. 5 Shown, Fig. 5 is a kind of a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application, the equipment Screen extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the screen of the equipment can also be with It is all covered on the watchband of the equipment, the embodiment of the present application is not limited thereto.
Embodiment one
The application first embodiment provides a kind of application mutual exclusion solution, is applied to wearable device, as shown in fig. 6, The following steps are included:
S11 monitors the enabling signal of application;
In order to preferably monitor the starting situation of the application program in setting, in each display interface of wearable device Setting is monitored and is buried a little.Specifically, a service is embedded in AMS, for monitoring the starting and closing of application service. ActivityManagerService abbreviation AMS, it is a service critically important in android, it is managed as a whole The big component of the four of android;Each application process of United Dispatching;AMN is derived from by Binder class by Binder class, is realized IActivityManager interface, client uses ActivityManager class, because AMS is system core service, very much API cannot be accessed directly, be needed through ActivityManager, the inside ActivityManager is by calling AMN's GetDefault method obtains an ActivityManagerProxy object, can be communicated with AMS by it.
When having application service to start or withering away, it is reported to desktop, desktop background service module carries out its state Storage.In WatchControlCenterController, (control centre's class, for being managed to control centre, operation is held Row function etc.) in mListService (ArrayList) storage.
The desktop application of wearable device carries out accurate recording when opening.In RecentTasksUtil RecentTaskListSix (ArrayList) is stored.The wearable device includes 5 interfaces.In WatchFuncti OnCardsFistController (first dial plate on the right of main interface), SecondController (main interface second right Dial plate), ThirdContoller (main interface third right dial plate), ZeroController (main interface first left table Disk) embedment record point in each interface, it (is a class, class that RecentTaskBean, which is recorded, in the details of each application In have field store information) in.The embedment record point in the select button in notice details.What it is with pendingIntent is Application can be opened, hides record point here.Incoming call is monitored, and passes through PhoneStateListener's State in onCallStateChanged callback method obtains current call information, here embedment record point, for monitoring Telephone state, have in incoming call, in call, hangs up.Gathered by the recentTaskListSix of RecentTasksUtil Carry out the storage of RecentTaskBean.
S12, when listening to the enabling signal of application, the time of record application starting, the information for adding the application is arrived In background application list;
When each background application number variation, the requestLayout () of WatchControlCenterView is called OnMeasure and onLayout are re-started, is recalculated in onMeasure, so that background application display module reaches Proper height.The height of background application display module is recalculated and shown according to new background application list Show.
S13 checks that the application of the starting uses in list of application with the presence or absence of in recently, if it is, deleting nearest Use the information applied described in list of application.
The information of the application started can be included in automatically in background application list and be shown in background application module, if should It is again started up using belonging to, then the information of the application can be also shown in uses in list of application recently, to avoid existing in interface Duplicate application message, delete described apply using the information in list of application, is being to use list of application to nearest recently Duplicate removal processing is carried out, when the process reported has a new process initiation, all service fields are traversed in mListService, One is often found just to RecentTasksUtil.removeRecentTask method, and duplicate removal is carried out to nearest application module, The integration such as sequence.
What the present embodiment was realized applies mutual exclusion solution, by monitoring the starting and shutdown signal of application, to display circle It background application list in face and is updated, duplicate removal and rearranged suitable using the application message in list of application recently Sequence makes background application list and no longer there is duplicate message using the application message in list of application recently, optimizes aobvious Show interface, also enhances the utilization efficiency of display interface.
Embodiment two
The application second embodiment provides a kind of application mutual exclusion solution, is applied to wearable device, as shown in fig. 7, The following steps are included:
S21 monitors the enabling signal of application;
In order to preferably monitor the starting situation of the application program in setting, in each display interface of wearable device Setting is monitored and is buried a little.Specifically, a service is embedded in AMS, for monitoring the starting and closing of application service. ActivityManagerService abbreviation AMS, it is a service critically important in android, it is managed as a whole The big component of the four of android;Each application process of United Dispatching;AMN is derived from by Binder class by Binder class, is realized IActivityManager interface, client uses ActivityManager class, because AMS is system core service, very much API cannot be accessed directly, be needed through ActivityManager, the inside ActivityManager is by calling AMN's GetDefault method obtains an ActivityManagerProxy object, can be communicated with AMS by it.
S22, when listening to the enabling signal of application, the time of record application starting, the information for adding the application is arrived In background application list;
A starting and closing for monitoring application are buried according to arrangement, the starting of application can be accurately realized and close data Acquisition, storage and analysis.
S23 checks that the application of the starting uses in list of application with the presence or absence of in recently, if it is, deleting nearest Use the information applied described in list of application;
In order to avoid the application being again started up is existed simultaneously in background application list and recently using in list of application, formed Information repeats and waste display interface, and the application checks the application of the starting with the presence or absence of in most when each application starts It closely uses in list of application, if it is, deleting recently using the information applied described in list of application.
S24 monitors the shutdown signal of application;
For the most recently used application that timely updates, also need to monitor the shutdown signal applied;Monitor the process that application is closed It is identical as the process that application is opened is monitored, it is all to be acquired by being set to the data for a little carrying out closing application of burying of respective interface. Processor receives the signal for closing application, and using closing, that is, the process applied is closed, and the operation of processor is exited.User When needing to close, the signal for closing application can be issued by the button of the closing application of setting, can also pass through the touching of setting It controls gesture and issues the signal for closing application.
S25 deletes the information of the application when listening to the shutdown signal of application from background application list, and The information of the application is added to recently using in list of application.
When listening to the shutdown signal of application, the shut-in time of the application is recorded;It is deleted from background application list The information of the application, and the information of the application is added to recently using in list of application.The letter of the application started Breath, which can be included in automatically in background application list, to be shown in background application module, is again started up if the application belongs to, this is answered Information can be also shown in recently using in list of application, to avoid in interface there are duplicate application message, described in deletion Apply using the information in list of application, be recently to carrying out duplicate removal processing using list of application recently, when report into The process initiation of Cheng Youxin, all service fields are traversed in mListService, often find one just to Recent TasksUtil.removeRecentTask method carries out duplicate removal, the integration such as sequence to nearest application module.
In order to help user to using the time very clear using the application in list of application recently, according to the starting time The sequence of the application in Time alignment list of application from the near to the remote.Since display interface is limited, preferred part most recently used Using being shown in interface, thus judge it is described it is nearest the use of the quantity applied in list of application whether is more than setting value, if It is, then from the nearest application earliest using the deletion starting time in list of application, to make to use recently and be applied in list of application Quantity be less equal than setting value.Preferably, the setting value is 6, i.e., ought be recently using the quantity applied in list of application Up to 6, once it is just deleted from nearest use in list of application recently using the quantity applied in list of application whether more than 6 Except the application that the starting time is earliest.
What the present embodiment was realized applies mutual exclusion solution, by monitoring the starting and shutdown signal of application, to display circle It background application list in face and is updated, duplicate removal and rearranged suitable using the application message in list of application recently Sequence makes background application list and no longer there is duplicate message using the application message in list of application recently, and applying After closing, timely updates recently using list of application, optimize display interface, also enhance the utilization efficiency of display interface.
Embodiment three
The application 3rd embodiment provides a kind of application mutual exclusion solution, is applied to wearable device, as shown in figure 8, The following steps are included:
S31 monitors the enabling signal of application;
S32, when listening to the enabling signal of application, the time of record application starting, the information for adding the application is arrived In background application list;
A starting and closing for monitoring application are buried according to arrangement, the starting of application can be accurately realized and close data Acquisition, storage and analysis.
S33 checks that the application of the starting uses in list of application with the presence or absence of in recently, if it is, deleting nearest Use the information applied described in list of application;
In order to avoid the application being again started up is existed simultaneously in background application list and recently using in list of application, formed Information repeats and waste display interface, and the application checks the application of the starting with the presence or absence of in most when each application starts It closely uses in list of application, if it is, deleting recently using the information applied described in list of application.
S34 monitors the shutdown signal of application;
S35 deletes the information of the application when listening to the shutdown signal of application from background application list, and The information of the application is added to recently using in list of application;
When listening to the shutdown signal of application, the shut-in time of the application is recorded;It is deleted from background application list The information of the application, and the information of the application is added to recently using in list of application.The letter of the application started Breath, which can be included in automatically in background application list, to be shown in background application module, is again started up if the application belongs to, this is answered Information can be also shown in recently using in list of application, to avoid in interface there are duplicate application message, described in deletion Apply using the information in list of application, be recently to carrying out duplicate removal processing using list of application recently, when report into The process initiation of Cheng Youxin, all service fields are traversed in mListService, often find one just to Recent TasksUtil.removeRecentTask method carries out duplicate removal, the integration such as sequence to nearest application module.
S36, judge it is described it is nearest the use of the quantity applied in list of application whether is more than setting value, if it is, executing Otherwise S37 terminates;
S37 makes to use list of application recently from the nearest application earliest using the deletion starting time in list of application The quantity of middle application is less equal than setting value.
In order to help user to using the time very clear using the application in list of application recently, according to the starting time The sequence of the application in Time alignment list of application from the near to the remote.Since display interface is limited, preferred part most recently used Using being shown in interface, thus judge it is described it is nearest the use of the quantity applied in list of application whether is more than setting value, if It is, then from the nearest application earliest using the deletion starting time in list of application, to make to use recently and be applied in list of application Quantity be less equal than setting value.Preferably, the setting value is 6, i.e., ought be recently using the quantity applied in list of application Up to 6, once it is just deleted from nearest use in list of application recently using the quantity applied in list of application whether more than 6 Except the application that the starting time is earliest.
What the present embodiment was realized applies mutual exclusion solution, by monitoring the starting and shutdown signal of application, to display circle It background application list in face and is updated, duplicate removal and rearranged suitable using the application message in list of application recently Sequence makes background application list and no longer there is duplicate message using the application message in list of application recently, and will be nearest It is limited in using the quantity of the application in list of application within certain quantity, optimizes display interface, also enhance display circle The utilization efficiency in face.
Example IV
The application fourth embodiment provides a kind of application mutual exclusion solution, is applied to wearable device, as shown in figure 9, The following steps are included:
S41, setting is monitored and is buried a little in each display interface of wearable device;
It buries a little, is a kind of common collecting method.Data, which are buried, is a little divided into primary, middle rank, advanced three kinds of modes.Just Grade: statistics codes are implanted into product, service conversion key point, ensure that data acquisition does not repeat (such as purchase button according to its independent ID Clicking rate);Middle rank: implantation multistage code tracks serial behavior of the user on each interface of platform, mutually indepedent between event (as opened commodity details page, --- selection marque --- is added shopping cart --- placing an order --- purchase to complete);It is advanced: Affiliated company's engineering, ETL collection analysis user's full dose behavior establish user's portrait, restore personal behavior model, as product point The basis of analysis, optimization.
Undoubtedly, it is a little a kind of good privatization deployment data acquisition modes that data, which are buried,.Data acquisition is accurate, meets Essence is slightly taken, the demand realized product, service rapid Optimum iteration.
S42 monitors the enabling signal of application;
A starting and closing for monitoring application are buried according to arrangement, the starting of application can be accurately realized and close data Acquisition, storage and analysis.
S43, when listening to the enabling signal of application, the time of record application starting, the information for adding the application is arrived In background application list;
A starting and closing for monitoring application are buried according to arrangement, the starting of application can be accurately realized and close data Acquisition, storage and analysis.
S44 checks that the application of the starting uses in list of application with the presence or absence of in recently, if it is, deleting nearest Use the information applied described in list of application;
In order to avoid the application being again started up is existed simultaneously in background application list and recently using in list of application, formed Information repeats and waste display interface, and the application checks the application of the starting with the presence or absence of in most when each application starts It closely uses in list of application, if it is, deleting recently using the information applied described in list of application.
S45 monitors the shutdown signal of application;
S46 deletes the information of the application when listening to the shutdown signal of application from background application list, and The information of the application is added to recently using in list of application;
When listening to the shutdown signal of application, the shut-in time of the application is recorded;It is deleted from background application list The information of the application, and the information of the application is added to recently using in list of application.The letter of the application started Breath, which can be included in automatically in background application list, to be shown in background application module, is again started up if the application belongs to, this is answered Information can be also shown in recently using in list of application, to avoid in interface there are duplicate application message, described in deletion Apply using the information in list of application, be recently to carrying out duplicate removal processing using list of application recently, when report into The process initiation of Cheng Youxin, all service fields are traversed in mListService, often find one just to Recent TasksUtil.removeRecentTask method carries out duplicate removal, the integration such as sequence to nearest application module.
S47, to the Time alignment sequence recently using the application in list of application according to the starting time from the near to the remote;
In order to help user to using the time very clear using the application in list of application recently, according to the starting time The sequence of the application in Time alignment list of application from the near to the remote.
S48, judge it is described it is nearest the use of the quantity applied in list of application whether is more than setting value, if it is, executing Step S49, otherwise terminates;
S49 makes to use list of application recently from the nearest application earliest using the deletion starting time in list of application The quantity of middle application is less equal than setting value.
Since display interface is limited, preferably most recently used application in part is shown in interface, therefore is judged described nearest It the use of the quantity applied in list of application whether is more than setting value, if it is, being deleted from nearest use in list of application Start time earliest application, makes recently using the quantity applied in list of application less equal than setting value.Preferably, described Setting value is 6, i.e., ought be up to 6 using the quantity applied in list of application recently, answer in list of application once using recently Whether quantity is more than 6, just from application earliest using the deletion starting time in list of application recently.
What the present embodiment was realized applies mutual exclusion solution, by monitoring the starting and shutdown signal of application, to display circle It background application list in face and is updated, duplicate removal and rearranged suitable using the application message in list of application recently Sequence makes background application list and no longer there is duplicate message using the application message in list of application recently, and will be nearest It is limited in using the quantity of the application in list of application within certain quantity, has advanced optimized display interface, enhanced aobvious Show the utilization efficiency at interface.
Embodiment five
The 5th embodiment of the application provides a kind of wearable device, and equipment as described in Figure 1 includes:
It memory 109, processor 110 and is stored on the memory 109 and can be run on the processor 110 Computer program;
Embodiment one, embodiment two, embodiment three, reality are realized when the computer program is executed by the processor 110 The step of applying application mutual exclusion solution described in four any embodiment of example.
Embodiment six
The application sixth embodiment also provides a kind of computer readable storage medium, on the computer readable storage medium It is stored with using mutual exclusion settlement procedure, embodiment one, embodiment is realized when the application mutual exclusion settlement procedure is executed by processor Two, embodiment three, described in example IV any embodiment the step of application mutual exclusion solution.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the application.
Embodiments herein is described above in conjunction with attached drawing, but the application be not limited to it is above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the enlightenment of the application, when not departing from the application objective and scope of the claimed protection, can also it make very much Form, these are belonged within the protection of the application.

Claims (10)

1. a kind of application mutual exclusion solution is applied to wearable device, it is characterised in that the following steps are included:
Monitor the enabling signal of application;
When listening to the enabling signal of application, the time of record application starting, the information of the application is added to background application In list;
Check that the application of the starting uses in list of application with the presence or absence of in recently, if it is, deleting recently using application The information applied described in list.
2. application mutual exclusion solution according to claim 1, which is characterized in that the method is checking the starting It is used in list of application using with the presence or absence of in recently, if it is, deleting recently using the letter applied described in list of application Include after breath;
Monitor the shutdown signal of application;
When listening to the shutdown signal of application, the information of the application is deleted from background application list, and answer by described in Information is added to recently using in list of application.
3. application mutual exclusion solution according to claim 2, which is characterized in that answer when listening to the step of the method When shutdown signal, the information of the application is deleted from background application list, and the information of the application is added to Include: after using in list of application recently
Judge it is described it is nearest the use of the quantity applied in list of application whether is more than setting value, if it is, making recently from described With the application that the deletion starting time in list of application is earliest, set nearest be less equal than using the quantity applied in list of application Definite value.
4. application mutual exclusion solution according to claim 3, which is characterized in that the setting value is 6.
5. application mutual exclusion solution according to claim 2, which is characterized in that answer when listening to the step of the method When shutdown signal, the information of the application is deleted from background application list, and the information of the application is added to Include: after using in list of application recently
To the Time alignment sequence recently using the application in list of application according to the starting time from the near to the remote.
6. application mutual exclusion solution according to claim 1, which is characterized in that monitor application the step of the method Include: before enabling signal
Setting is monitored and is buried a little in each display interface of wearable device.
7. application mutual exclusion solution according to claim 1, which is characterized in that answered described in addition the step of the method Information into background application list after include:
The height of background application display module is recalculated and shown according to new background application list.
8. application mutual exclusion solution according to claim 6, which is characterized in that the wearable device includes 5 boundaries Face.
9. a kind of wearable device, which is characterized in that the equipment includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
It is realized when the computer program is executed by the processor and applies mutual exclusion as described in any item of the claim 1 to 8 The step of solution.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium using mutual Denounce settlement procedure, realizes when the application mutual exclusion settlement procedure is executed by processor as described in any item of the claim 1 to 8 The step of using mutual exclusion solution.
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 true CN110187978A (en) 2019-08-30
CN110187978B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN110187978B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN109982179A (en) Audio frequency signal output, device, wearable device and storage medium
CN110109725A (en) A kind of interface color method of adjustment and wearable device
CN110262849A (en) Using starting method, wearable device and computer readable storage medium
CN110062279A (en) Video method of cutting out, wearable device and computer readable storage medium
CN110175008A (en) Method, wearable device and the computer readable storage medium of operating terminal
CN110175066A (en) Wearable device, interaction control method and computer readable storage medium
CN110086563A (en) A kind of method of controlling rotation, equipment and computer readable storage medium
CN110086930A (en) A kind of voice interactive method, wearable device and computer readable storage medium
CN110109537A (en) A kind of wearable device and its gesture identification method and computer readable storage medium
CN109976612A (en) Application function implementation method, wearable device, mobile phone and computer readable storage medium
CN110213637A (en) Method, wearable device and the readable storage medium storing program for executing of video file increase watermark
CN110139270A (en) Wearable device matching method, wearable device and computer readable storage medium
CN110187978A (en) Using mutual exclusion solution, wearable device and computer readable storage medium
CN110072071A (en) A kind of video record interaction control method, equipment and computer readable storage medium
CN110083205A (en) Page switching method, wearable device and computer readable storage medium
CN110069200A (en) Wearable device input control method, wearable device and storage medium
CN110032308A (en) A kind of page display method, terminal and computer readable storage medium
CN110167113A (en) A kind of apparatus control method, wearable device and computer readable storage medium
CN110187764A (en) A kind of barrage display methods, wearable device and storage medium
CN110071866A (en) A kind of instant messaging application control method, wearable device and storage medium
CN110069193A (en) A kind of interface switching method of wearable device, wearable device and storage medium
CN110213441A (en) A kind of sound control method, wearable device and computer readable storage medium
CN110430560A (en) Method, wearable device and the storage medium of wearable device upload data
CN110096150A (en) A kind of search interaction control method, equipment and computer readable storage medium
CN110098996A (en) Synchronous filtering method, terminal and computer readable 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