CN110287012A - Multiprocessing method, wearable device and the medium of intelligent wearable device - Google Patents

Multiprocessing method, wearable device and the medium of intelligent wearable device Download PDF

Info

Publication number
CN110287012A
CN110287012A CN201910544389.9A CN201910544389A CN110287012A CN 110287012 A CN110287012 A CN 110287012A CN 201910544389 A CN201910544389 A CN 201910544389A CN 110287012 A CN110287012 A CN 110287012A
Authority
CN
China
Prior art keywords
wearable device
intelligent wearable
application
name
multiprocessing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910544389.9A
Other languages
Chinese (zh)
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 CN201910544389.9A priority Critical patent/CN110287012A/en
Publication of CN110287012A publication Critical patent/CN110287012A/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

This application discloses a kind of Multiprocessing methods of intelligent wearable device, comprising the following steps: when the application starting initialization of intelligent wearable device, obtains current process number and applies packet name;Process name is got according to the current process number;The process name that will acquire is compared with the application packet name;If the process name is different from the application packet name, the current process is filtered.Disclosed herein as well is a kind of intelligent wearable device and computer readable storage mediums.The application can solve low configuration intelligent wearable device and be cold-started slow problem.

Description

Multiprocessing method, wearable device and the medium of intelligent wearable device
Technical field
This application involves intelligent wearable device technical field more particularly to a kind of Multiprocessing sides of intelligent wearable device Method, intelligent wearable device and computer readable storage medium.
Background technique
The hardware configurations such as chip, the memory of intelligent wearable device such as bracelet, wrist-watch etc. are lower, in its application starting, if Using slightly time-consuming, then Caton is with regard to obvious.Such as the application such as bracelet weather, bracelet calf voice all refers to android In system multi-process starting because the corresponding memory headroom of each process be it is independent, cause using starting when, can repeatedly create Process is built, and repeatedly creates Application application.And it is related to remote service using such as bracelet weather, it needs Creation process, and initialize application.Sdk (the software such as a large amount of positioning have been in oncreate () function of application Development kit, Software Development Kit) initialization operation, cause sdk initialization repeatedly to be called, seriously affects cold open The dynamic time.
Summary of the invention
The main purpose of the application is to provide Multiprocessing method, the intelligent wearable device of a kind of intelligent wearable device And computer readable storage medium, it is intended to it is slow to solve the problems, such as that low configuration intelligent wearable device is cold-started.
To achieve the above object, the application provides a kind of Multiprocessing method of intelligent wearable device, and the intelligence is worn Wear the Multiprocessing method of equipment the following steps are included:
When the application starting initialization of intelligent wearable device, obtains current process number and apply packet name;
Process name is got according to the current process number;
The process name that will acquire is compared with the application packet name;
If the process name is different from the application packet name, the current process is filtered.
Preferably, after the step of process name that will acquire is compared with the application packet name further include:
If the process name is identical as the application packet name, controls the current process and execute initialization operation.
Preferably, described the step of getting process name according to the current process number, includes:
Obtain currently running all progress informations;
Process number in all progress informations is compared with the current process number;
If there is with the current process number identical process number in the process number of all progress informations, from described Process name corresponding with the process number is got in all progress informations.
Preferably, the currently running all progress informations of acquisition include:
By calling the encapsulation class of application component manager, all application process information objects being currently running are obtained;
Currently running all progress informations are obtained by the application process information object being currently running.
Preferably, all progress informations include process name, process number and application packet name.
Preferably, the application process information object being currently running is RunningAppProcessInfo.
Preferably, the step of acquisition current process includes:
By calling the message response function of the application to obtain the current process number.
To achieve the above object, the application also provides a kind of intelligent wearable device, and the intelligent wearable device includes:
Memory, processor and it is stored in the intelligent wearable device that can be run on the memory and on the processor Multiprocessing program;
The Multiprocessing program of the intelligent wearable device realizes method as described above when being executed by the processor The step of.
Preferably, the intelligent wearable device is Intelligent bracelet or smartwatch.
To achieve the above object, the application also provides a kind of computer readable storage medium, the computer-readable storage The Multiprocessing program of intelligent wearable device is stored on medium, the Multiprocessing program of the intelligent wearable device is located Manage the step of device executes the Multiprocessing method for realizing intelligent wearable device as described above.
Multiprocessing method, intelligent wearable device and the computer-readable storage of intelligent wearable device provided by the present application Medium, by obtaining current process number and applying packet name, then according to institute in the application starting initialization of intelligent wearable device The process name stated current process number and get process name, and will acquire is compared with the application packet name, if it is described into It is different using packet name described in Cheng Mingyu, then filter the current process.In this way, judging current process pair by the process name obtained Without executing the process filtration treatment of initialization, so as to reduce system loading, the resource consumption of application starting is reduced, in turn Improve low configuration intelligent wearable device and is cold-started slow problem.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
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 intelligent wearable device provided by the embodiments of the present application;
Fig. 2 is the functional block diagram for one embodiment of intelligent wearable device that the embodiment of the present application scheme is related to;
Fig. 3 is the flow diagram of one embodiment of Multiprocessing method of the application intelligent wearable device;
Fig. 4 is the refinement flow diagram of step S2 in Fig. 3.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
The intelligent wearable device provided in the embodiment of the present invention includes Intelligent bracelet, smartwatch and smart phone etc. Mobile 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 Terminal can also be used as intelligent wearable device.The intelligent wearable device provided in the embodiment of the present invention may include: RF (Radio Frequency, radio frequency) unit, WiFi 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 intelligent wearable device as an example in subsequent descriptions, referring to Fig. 1, its each reality to realize the present invention A kind of hardware structural diagram of intelligent wearable device of example is applied, which may include: RF (Radio Frequency, radio frequency) unit 101, WiFi 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, Yi Ji electricity The components such as source 111.It will be understood by those skilled in the art that intelligent wearable device structure shown in Fig. 1 is not constituted to intelligence The restriction of wearable device, intelligent wearable device may include components more more or fewer than diagram, or combine certain components, or The different component layout of person.
It is specifically introduced below with reference to all parts of the Fig. 1 to intelligent 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, after the downlink information that in addition can also be sent base station receives, be sent to intelligence The processor 110 of wearable device is handled, and base station can be to the downlink information that radio frequency unit 101 is sent according to radio frequency unit 101 What the uplink information of transmission generated, it is also possible to after the information update for detecting intelligent wearable device actively to radio frequency unit 101 push, for example, base station can be worn to intelligence after detecting that geographical location locating for intelligent wearable device changes The radio frequency unit 101 for wearing equipment sends the message informing of geographical location variation, and radio frequency unit 101 is receiving the message informing Afterwards, the processor 110 which can be sent to intelligent wearable device is handled, the processor 110 of intelligent wearable device It can control the message informing to be shown on the display panel 1061 of intelligent wearable device;In general, radio frequency unit 101 includes but not It is limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also communicate with network and other equipment by wireless communication, specifically may include: by wireless communication with network system Server communication in system, for example, intelligent wearable device can download file resource from server by wireless communication, such as Application program can be downloaded from server, after intelligent wearable device completes the downloading of a certain application program, if server In the corresponding file resource of the application program update, then the server can be pushed by wireless communication to intelligent wearable device and be provided The message informing that source updates, to remind user to be updated the application program.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), 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, intelligent wearable device 100 can access existing communication network by insertion SIM card Network.
In another embodiment, intelligent wearable device 100 can be come by the way that esim card (Embedded-SIM) is arranged It realizes and accesses existing communication network, by the way of esim card, the inner space of intelligent wearable device can be saved, reduce thick Degree.
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 intelligent wearable device, it can according to need within the scope of not changing the essence of the invention and save completely Slightly.Intelligent wearable device 100 can realize the communication link with other equipment or communication network separately through wifi module 102 It connects, the embodiment of the present invention is not limited thereto.
WiFi belongs to short range wireless transmission technology, and intelligent wearable device can help user to receive by WiFi 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 WiFi module 102, but it is understood that, and it is not belonging to must be configured into for intelligent 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, note in intelligent wearable device 100 It is when under the isotypes such as record mode, speech recognition mode, broadcast reception mode, radio frequency unit 101 or WiFi 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 intelligent wearable device 100 executes (for example, call signal receives 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 WiFi 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, intelligent wearable device 100 includes one or more cameras, is imaged by opening Head 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.
Intelligent wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and its His sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can basis The light and shade of ambient light adjusts the brightness of display panel 1061, and proximity sensor can be moved to ear in intelligent wearable device 100 Bian Shi closes display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect each side The size of (generally three axis) acceleration upwards, can detect that size and the direction of gravity, can be used to identify mobile phone appearance when static The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of state, Vibration identification correlation function (such as pedometer, Tap) etc..
In one embodiment, intelligent wearable device 100 further includes proximity sensor, by using proximity sensor, Intelligent wearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, intelligent wearable device 100 further includes heart rate sensor, when wearing, by close to making User can be realized the detecting of heart rate.
In one embodiment, intelligent wearable device 100 can also include fingerprint sensor, by reading fingerprint, energy Enough 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, is dressed using the intelligence of flexible display screen For equipment when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED Shield body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, this implementation Example is not limited thereto.
In one embodiment, the display panel 1061 of intelligent wearable device can take rectangle, when convenient for wearing It surround.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 generation and intelligent wearable device User setting and function control related key signals input.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 touching of user on it or nearby Touch operation (such as user using any suitable object or attachment such as finger, stylus on touch panel 1071 or in touch surface Operation near plate 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching Touch two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch Bring signal is operated, touch controller is transmitted a signal to;Touch controller receives touch information from touch detecting apparatus, And it is converted into contact coordinate, then give 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 intelligent wearable device 100.Button can To realize the various ways such as short-press, long-pressing, rotation, to realize a variety of operating effects.The quantity of button can be multiple, difference Button between can be applied in combination, 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 intelligent wearable device as two independent components, but in some embodiments In, touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of intelligent wearable device, tool Body is herein without limitation.For example, when receiving the message informing of a certain application program by radio frequency unit 101, processor 110 It can control and show the message informing in a certain predeterminable area of display panel 1061, the predeterminable area and touch panel 1071 a certain region is corresponding, can be to display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071 The message informing shown in upper corresponding region is controlled.
Interface unit 108 be used as at least one external device (ED) connect with intelligent 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 by the input received be transferred to one or more elements in intelligent wearable device 100 or It can be used for transmitting data between intelligent wearable device 100 and external device (ED).
In one embodiment, the interface unit 108 of intelligent wearable device 100 passes through contact using the structure of contact It is connected with corresponding other equipment, 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 intelligent wearable device, is entirely intelligently dressed using various interfaces and connection The various pieces of equipment by running or execute the software program and/or module that are stored in memory 109, and are called and are deposited The data in memory 109 are stored up, the various functions and processing data of intelligent wearable device are executed, thus to intelligent wearable device Carry out integral monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can be integrated using processing Device and modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation Demodulation processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processing In device 110.
Intelligent wearable device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that electricity Source 111 can be logically contiguous by power-supply management system and processor 110, to realize that management is filled by power-supply management system The functions such as electricity, electric discharge and power managed.
Although Fig. 1 is not shown, intelligent wearable device 100 can also be including bluetooth module etc., and details are not described herein.Intelligence is worn Equipment 100 is worn by bluetooth, can be connect with other terminal devices, realizes communication and the interaction of information.
Intelligent wearable device in the embodiment of the present invention, including flexible screen.In intelligent wearable device expansion, flexible screen Curtain is elongated;When intelligent wearable device is in wearing state, flexible screen bending is annular in shape.
As shown in Fig. 2, the intelligent wearable device of the application includes: processor 1001, such as CPU, user interface 1002 is deposited Reservoir 1003, communication bus 1004 and display screen 1005 etc..Wherein, communication bus 1004 is for realizing between these components Connection communication.User interface 1002 may include input unit.
Memory 1003 can be high speed RAM memory, be also possible to stable memory (non-volatile ), such as magnetic disk storage memory.Memory 1003 optionally can also be the storage dress independently of aforementioned processor 1001 It sets.
It will be understood by those skilled in the art that intelligent wearable device shown in Figure 2 does not constitute restriction, it may include ratio More or fewer components are illustrated, certain components or different component layouts are perhaps combined.
As may include operating system, network communication module, use in a kind of memory 1003 of computer storage medium The Multiprocessing program of family interface module and intelligent wearable device.
User interface 1002 is mainly used for reception user and passes through input unit input instruction triggers user instruction;Processor 1001 for calling the Multiprocessing program of the intelligent wearable device stored in memory 1003, and executes following operation:
When the application starting initialization of intelligent wearable device, obtains current process number and apply packet name;
Process name is got according to the current process number;
The process name that will acquire is compared with the application packet name;
If the process name is different from the application packet name, the current process is filtered.
Further, processor 1001 can call the Multiprocessing of the intelligent wearable device stored in memory 1003 Program also executes following operation:
If the process name is identical as the application packet name, controls the current process and execute initialization operation.
Further, processor 1001 can call the Multiprocessing of the intelligent wearable device stored in memory 1003 Program also executes following operation:
Obtain currently running all progress informations;
Process number in all progress informations is compared with the current process number;
If there is with the current process number identical process number in the process number of all progress informations, from described Process name corresponding with the process number is got in all progress informations.
Further, processor 1001 can call the Multiprocessing of the intelligent wearable device stored in memory 1003 Program also executes following operation:
By calling the encapsulation class of application component manager, all application process information objects being currently running are obtained;
Currently running all progress informations are obtained by the application process information object being currently running.
Further, processor 1001 can call the Multiprocessing of the intelligent wearable device stored in memory 1003 Program also executes following operation:
All progress informations include process name, process number and application packet name.
Further, processor 1001 can call the Multiprocessing of the intelligent wearable device stored in memory 1003 Program also executes following operation:
By calling the message response function of the application to obtain the current process number.
Referring to Fig. 3, in one embodiment, the application provides a kind of Multiprocessing method of intelligent wearable device, including Following steps:
Step S1, it when the application starting initialization of intelligent wearable device, obtains current process number and applies packet name;
In the present embodiment, intelligent wearable device can be bracelet, smartwatch etc., is particularly suitable for low configuration and intelligently dresses Equipment.In the application starting initialization of intelligent wearable device, by calling the message response function of the application such as Oncreate () function obtains the corresponding current process number of the application, acquisition modes: intpid= android.os.Process.myPid()。
When application program in android system is activated, the process name of process corresponding with application program is generally It is packet name, is mainly used for system identification application program.One packet name represents an application program, Ke Yi It is defined in AndroidManifest.xml.
Step S2, process name is got according to the current process number;
In the present embodiment, by calling the encapsulation class of application component manager, all application processes being currently running are obtained Information object obtains currently running all progress informations by the application process information object being currently running.Wherein, it adjusts It is ActivityManager.RunningAppProcesses with the encapsulation class of application component manager, it is a class, encapsulation The application process information that is currently running.All application process information objects being currently running are RunningAppProcessInfo.It is understood that by RunningAppProcessInfo it is available to process name, The information such as process number.Wherein, ActivityManager is a pith of Android frame, it be responsible for one it is new ActivityThread process creation utilizes the process being currently running in ActivityManager acquisition system, each application Program can all operate in its independent process, but in order to save resource or these application programs are to complete certain and have altogether With work, they may be operated in a process.Such as:
Certainly, in other embodiments, can also by call ActivityManager.getRunningServices, To get all RunningServiceInfo, and process name is got by RunningServiceInfo.It can manage Solution is believed by the way that RunningServiceInfo is available to process name, process number, using packet name and service class name etc. Breath.
Step S3, the process name that will acquire is compared with the application packet name;
If step S4, the described process name is different from the application packet name, the current process is filtered.
In the present embodiment, the process name that will acquire is compared with the application packet name, whether to judge the process For the process of the application.If obtain the process name it is different from the application packet name, show be not the application process, At this point, without a large amount of initialization operations for carrying out current onceate (), namely the filtering current process.
If step S5, the described process name is identical as the application packet name, controls the current process and execute initialization behaviour Make.
In the present embodiment, if the process name obtained is identical as the application packet name, it is shown to be the process of the application, Then a large amount of initialization operations of current onceate () can be carried out in the application starting initialization of intelligent wearable device, from And realize corresponding application function.
The application is by obtaining current process number when the application of intelligent wearable device starts initialization and applies packet name, Then the process name that gets process name according to the current process number, and will acquire is compared with the application packet name Compared with filtering the current process if the process name is different from the application packet name.In this way, being sentenced by the process name obtained Disconnected current process is to the process filtration treatment without executing initialization, so as to reduce system loading, reduces application starting Resource consumption, and then improve low configuration intelligent wearable device and be cold-started slow problem.
Referring to Fig. 4, in one embodiment, the step S2 includes:
Step S21, currently running all progress informations are obtained;
In the present embodiment, by calling ActivityManager.getRunningAppProcesses, obtain all RunningAppProcessInfo, and currently running all processes are obtained by the RunningAppProcessInfo and are believed Breath.Wherein, all progress informations include process name, process number and application packet name etc..
Step S22, the process number in all progress informations is compared with the current process number;
If there is with the current process number identical process number in the process number of step S23, described all progress informations, Process name corresponding with the process number is then got from all progress informations.
In the present embodiment, all process numbers that will acquire are compared with the current process number, and therefrom search is It is no to there is with the current process number identical process number, and if it exists, then show in all process numbers corresponding process with Currently running process is same process, at this point it is possible to which it is corresponding to get the process by RunningAppProcessInfo Process name.
The present embodiment according to current process number by distinguishing, by getting correspondence in application starting initialization Process name, allow different processes to execute different initialization processes, so as to so that multi-process application reduce operation it is unnecessary Operation, thus fundamentally solving the problems, such as that it is slow that low configuration intelligent wearable device is cold-started.
The application also provides a kind of intelligent wearable device, and intelligent wearable device can be bracelet, smartwatch etc., especially suitable For low configuration intelligent wearable device.
The intelligent wearable device includes:
Memory, processor and it is stored in the intelligent wearable device that can be run on the memory and on the processor Multiprocessing program;
The Multiprocessing program of the intelligent wearable device realizes method as described above when being executed by the processor The step of.
The application also provides a kind of computer readable storage medium, is stored with intelligence on the computer readable storage medium The Multiprocessing program of wearable device, it is as above that the Multiprocessing program of the intelligent wearable device is executed by processor realization The step of Multiprocessing method of the intelligent wearable device.
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 system 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 system 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 system.
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 one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, controlled terminal or network equipment etc.) execute method described in each embodiment of the application.

Claims (10)

1. a kind of Multiprocessing method of intelligent wearable device, which is characterized in that at the multi-process of the intelligent wearable device Reason method the following steps are included:
When the application starting initialization of intelligent wearable device, obtains current process number and apply packet name;
Process name is got according to the current process number;
The process name that will acquire is compared with the application packet name;
If the process name is different from the application packet name, the current process is filtered.
2. the Multiprocessing method of intelligent wearable device as described in claim 1, which is characterized in that the institute that will acquire After stating the step of process name is compared with the application packet name further include:
If the process name is identical as the application packet name, controls the current process and execute initialization operation.
3. the Multiprocessing method of intelligent wearable device as claimed in claim 1 or 2, which is characterized in that described according to institute Stating the step of current process number gets process name includes:
Obtain currently running all progress informations;
Process number in all progress informations is compared with the current process number;
If there is with the current process number identical process number in the process number of all progress informations, own from described Process name corresponding with the process number is got in progress information.
4. the Multiprocessing method of intelligent wearable device as claimed in claim 3, which is characterized in that the current fortune of acquisition Capable all progress informations include:
By calling the encapsulation class of application component manager, all application process information objects being currently running are obtained;
Currently running all progress informations are obtained by the application process information object being currently running.
5. the Multiprocessing method of intelligent wearable device as claimed in claim 4, which is characterized in that all process letters Breath is including process name, process number and applies packet name.
6. the Multiprocessing method of intelligent wearable device as claimed in claim 4, which is characterized in that described to be currently running Application process information object is RunningAppProcessInfo.
7. the Multiprocessing method of intelligent wearable device as described in claim 1, which is characterized in that the acquisition is when advance The step of journey includes:
By calling the message response function of the application to obtain the current process number.
8. a kind of intelligent wearable device, which is characterized in that the intelligent wearable device includes:
Memory, processor and it is stored in the more of the intelligent wearable device that can be run on the memory and on the processor Process processing routine;
The Multiprocessing program of the intelligent wearable device is realized when being executed by the processor in claim 1 to 7 as above The step of described in any item methods.
9. intelligent wearable device as claimed in claim 8, which is characterized in that the intelligent wearable device is Intelligent bracelet or intelligence It can wrist-watch.
10. a kind of computer readable storage medium, which is characterized in that be stored with intelligence on the computer readable storage medium and wear The Multiprocessing program of equipment is worn, the Multiprocessing program of the intelligent wearable device is executed by processor realization such as right It is required that the step of Multiprocessing method of intelligent wearable device described in any one of 1 to 7.
CN201910544389.9A 2019-06-21 2019-06-21 Multiprocessing method, wearable device and the medium of intelligent wearable device Pending CN110287012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910544389.9A CN110287012A (en) 2019-06-21 2019-06-21 Multiprocessing method, wearable device and the medium of intelligent wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910544389.9A CN110287012A (en) 2019-06-21 2019-06-21 Multiprocessing method, wearable device and the medium of intelligent wearable device

Publications (1)

Publication Number Publication Date
CN110287012A true CN110287012A (en) 2019-09-27

Family

ID=68004277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910544389.9A Pending CN110287012A (en) 2019-06-21 2019-06-21 Multiprocessing method, wearable device and the medium of intelligent wearable device

Country Status (1)

Country Link
CN (1) CN110287012A (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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503788A (en) * 2014-12-16 2015-04-08 电子科技大学 Setting method capable of shortening starting time of Android operating system
CN106020909A (en) * 2016-06-01 2016-10-12 努比亚技术有限公司 Application process control device and method
CN109067986A (en) * 2018-07-26 2018-12-21 努比亚技术有限公司 Synchronous display method, mobile terminal and the readable storage medium storing program for executing of intelligent wearable device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503788A (en) * 2014-12-16 2015-04-08 电子科技大学 Setting method capable of shortening starting time of Android operating system
CN106020909A (en) * 2016-06-01 2016-10-12 努比亚技术有限公司 Application process control device and method
CN109067986A (en) * 2018-07-26 2018-12-21 努比亚技术有限公司 Synchronous display method, mobile terminal and the readable storage medium storing program for executing of intelligent wearable device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LHD201006: "Android多进程导致多次初始化Application", 《HTTPS://BLOG.CSDN.NET/LHD201006/ARTICLE/DETAILS/50972843》 *
MAIMHO: "Android避免多进程Application onCreate中初始化代码执行多次", 《HTTPS://BLOG.CSDN.NET/MAIMIHO/ARTICLE/DETAILS/76021031》 *
U013394527: "安卓多进程与进程间通信", 《HTTPS://BLOG.CSDN.NET/U013394527/ARTICLE/DETAILS/80775899》 *

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

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
CN110083220A (en) A kind of power-saving processing method and wearable device
CN110062279A (en) Video method of cutting out, wearable device and computer readable storage medium
CN110362368A (en) Picture customization display methods, relevant device and the storage medium of wearable device
CN110109537A (en) A kind of wearable device and its gesture identification method and computer readable storage medium
CN110083289A (en) A kind of button display methods, wearable device and computer readable storage medium
CN110109544A (en) Method of adjustment, wearable device and the readable storage medium storing program for executing of motor vibration amplitude
CN110072295A (en) Dual-channels communication method, apparatus, first terminal and medium
CN110069132A (en) Application control method, intelligent wearable device and computer readable storage medium
CN110175066A (en) Wearable device, interaction control method and computer readable storage medium
CN110099176A (en) Breath screen display methods, wearable device and computer readable storage medium
CN110187764A (en) A kind of barrage display methods, wearable device and storage medium
CN110287012A (en) Multiprocessing method, wearable device and the medium of intelligent wearable device
CN110262748A (en) Wearable device control method, wearable device and computer readable storage medium
CN109947501A (en) Starting processing method, wearable device and the storage medium of application program
CN110086929A (en) Breath screen display methods, mobile phone, wearable device and computer readable storage medium
CN110134312A (en) Control method, wearable device and computer readable storage medium
CN109947325A (en) Application icon display methods, wearable device and computer readable storage medium
CN110213442A (en) Speech playing method, terminal and computer readable storage medium
CN110174935A (en) Put out screen control method, terminal and computer readable storage medium
CN110083248A (en) Method for message interaction, wearable device and computer readable storage medium
CN110069193A (en) A kind of interface switching method of wearable device, wearable device and storage medium
CN109933187A (en) Wearable device progress control method, wearable device and computer readable storage medium
CN110113481A (en) Open method, terminal, wearable device and the medium of corresponding application on wearable device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190927