CN107450795A - Status bar icon loading method, terminal and computer-readable recording medium - Google Patents
Status bar icon loading method, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107450795A CN107450795A CN201710488801.0A CN201710488801A CN107450795A CN 107450795 A CN107450795 A CN 107450795A CN 201710488801 A CN201710488801 A CN 201710488801A CN 107450795 A CN107450795 A CN 107450795A
- Authority
- CN
- China
- Prior art keywords
- application
- icon
- identification information
- database
- notice
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of status bar icon loading method, terminal and computer-readable recording medium, this method after notice is received, can first obtain the identification information of application belonging to the notice;Judge corresponding be stored with the identification information of application and the preset icon database of application icon, if the application icon matched with the identification information of the application be present;If in the presence of application icon of the acquisition application icon corresponding with the identification information of the application as notice from preset icon database.Thus, largely avoid and obtain application icon using bag management service striding course, effectively reduce the time needed for the application icon for obtaining notice, improve acquisition efficiency, be advantageous to terminal overall performance smoothness, improve Consumer's Experience.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of status bar icon loading method, terminal and computer can
Read storage medium.
Background technology
Status bar is one of important interactive interface of android system.The smooth status bar operation of flow (including drop-down,
Click on, pack up, light on and off screen etc.) good experience can be brought to user.It is known that most important in status bar act as showing
Notification icon, including notifications icon and common application notice.Usually, it is relatively convenient to obtain system icon, because
The local resource being integrally fixed at for each system icon inside mobile phone;And the loading of the icon of third-party application needs to notify
PackageManager (application package management) is obtained, and is related to striding course communication, and loading is got up slow.
Such as when in the prior art using PackageManager acquisition third party's icons, conventional way adds to be asynchronous
Carry, including the steps:
1) main thread loading/update notification;
2) sub-line journey is run, obtains notice Icon;
3) return to main thread and show Icon.
Wherein, step 2) is time-consuming operation.In the step, the operation of striding course can be performed by PackageManager.
, may be so when frequent operation because PackageManager may be used by other application
There is short wait in PackageManager operations and obtain state, wait resource release.So in the prior art, icon
Loading is the part taken in Android all the time, and acquisition efficiency is low, influences Consumer's Experience.
The content of the invention
It is a primary object of the present invention to propose a kind of status bar icon loading method, terminal and computer-readable storage medium
Matter, it is intended to which solution is existing in the icon of status bar loading notice in the prior art, and time-consuming, efficiency is low, influences Consumer's Experience
The problem of.
To achieve the above object, the present invention provides a kind of status bar icon loading method, including:
When receiving notice, the identification information of application belonging to notice is obtained;
Judge in preset icon database with the presence or absence of the application icon matched with the identification information of application;Preset icon number
According to the identification information and application icon that application is correspondingly stored with storehouse;
If in the presence of acquisition application icon corresponding with the identification information applied is as notice from preset icon database
Application icon.
Further, preset icon database includes at least one in the container and local data base of system application interface
It is individual.
Further, preset icon database includes the container and local data base of system application interface;Judge default figure
Include in mark database with the presence or absence of the application icon matched with the identification information of application:
Being judged according to default judgment rule should with the presence or absence of what is matched with the identification information of application in preset icon database
Use icon;
Default judgment rule includes:
With the presence or absence of the identification information matched with the identification information of application in the container of judgement system application interface, if depositing
, then in the container of system application interface the identification information that the match is successful application icon for application identification information icon;
Judge with the presence or absence of the identification information matched with the identification information of application in local data base, if in the presence of local
The application icon for the identification information that the match is successful in database is the icon for the identification information applied.
Further, judged according to default judgment rule in preset icon database with the presence or absence of the identification information with application
The application icon of matching includes:
With the presence or absence of the identification information matched with the identification information of application in the container of judgement system application interface;If do not deposit
Then judging in local data base with the presence or absence of the identification information matched with the identification information of application.
Further, in addition to:After starting up of terminal/restart, or the identification information applied in local data base with should
After having renewal with the corresponding relation of icon, with the identification information and the corresponding relation of application icon applied in local data base, more
The identification information applied in the container of new system application interface and corresponding application icon.
Further, with the presence or absence of the application icon matched with the identification information of application in preset icon database is judged
Afterwards, in addition to:
If the application icon matched with the identification information of application is not present in preset icon database, assured by application
Reason service striding course obtains application icon corresponding to the identification information of application belonging to notice;
It is stored in the identification information of application is corresponding with corresponding application icon in preset icon database.
Further, identification information includes bag name.
To achieve the above object, the present invention also provides a kind of status bar icon loading terminal, including:Terminal includes processing
Device, memory and communication bus;
Communication bus is used to realize the connection communication between processor and memory;
Processor is used to perform the status bar icon loading procedure stored in memory, to realize following steps:
When receiving notice, the identification information of application belonging to notice is obtained;
Judge in preset icon database with the presence or absence of the application icon matched with the identification information of application;Preset icon number
According to the identification information and application icon that application is correspondingly stored with storehouse;
If in the presence of acquisition application icon corresponding with the identification information applied is as notice from preset icon database
Application icon.
Further, preset icon database includes at least one in the container and local data base of system application interface
It is individual;When preset icon database includes the container and local data base of system application interface;Processor is used to perform in memory
The status bar icon loading procedure of storage, to realize following steps:
Being judged according to default judgment rule should with the presence or absence of what is matched with the identification information of application in preset icon database
Use icon;
Default judgment rule includes:
With the presence or absence of the identification information matched with the identification information of application in the container of judgement system application interface, if depositing
, then in the container of system application interface the identification information that the match is successful application icon for application identification information icon;
Judge with the presence or absence of the identification information matched with the identification information of application in local data base, if in the presence of local
The application icon for the identification information that the match is successful in database is the icon for the identification information applied.
To achieve the above object, the present invention also provides a kind of computer-readable recording medium, computer-readable recording medium
One or more program is stored with, one or more program can be performed, to realize following steps:
When receiving notice, the identification information of application belonging to notice is obtained;
Judge in preset icon database with the presence or absence of the application icon matched with the identification information of application;Preset icon number
According to the identification information and application icon that application is correspondingly stored with storehouse;
If in the presence of acquisition application icon corresponding with the identification information applied is as notice from preset icon database
Application icon.
The invention provides a kind of status bar icon loading method, terminal and computer-readable recording medium, can connect
After notified, the identification information of application belonging to the notice is first obtained;Judge corresponding identification information and the application for being stored with application
In the preset icon database of icon, if the application icon matched with the identification information of the application be present;If in the presence of from pre-
If application icon of the application icon corresponding with the identification information of the application as notice is obtained in icon database.Thus, very
Avoided in big degree and obtain application icon using bag management service striding course, effectively reduce the application icon institute for obtaining notice
The time needed, acquisition efficiency is improved, be advantageous to terminal overall performance smoothness, improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of flow chart of status bar icon loading method of the present invention;
Fig. 3 is the bag name of container storage application and the schematic block diagram of application icon of the system user interface of the present invention;
Fig. 4 is the bag name of local data library storage application and the schematic block diagram of application icon of the present invention;
Fig. 5 is the Icon of the present invention three layers of storage schematic diagram;
Fig. 6 is the flow chart of another status bar icon loading method of the present invention;
Fig. 7 is a kind of structure chart of status bar icon loading terminal of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
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 follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (RadIio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any 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, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted 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 (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to 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) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 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, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, 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 mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, 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.The present invention
Memory 109 in can be with storage state column icon loading procedure.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.The present invention
Processor 110 can run the status bar icon loading procedure being stored in above-mentioned memory 109, to realize following steps:
When receiving notice, the identification information of application belonging to notice is obtained;Judge to whether there is and application in preset icon database
Identification information matching application icon;The identification information and application icon of application are correspondingly stored with preset icon database;
If in the presence of application drawing of the acquisition application icon corresponding with the identification information applied as notice from preset icon database
Mark.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the inventive method is proposed.
Embodiment one:
Realize that the terminal of following step includes but is not limited to mobile terminal in the present embodiment, such as smart mobile phone, flat board, intelligence
Can wrist-watch.The operating system of terminal includes but is not limited to Android operation system in the present embodiment.Present embodiment illustrates a kind of shape
State column icon loading method, the identification of the third-party application can be obtained when occurring a third-party application notice in terminal
Information, according to the preset icon database of the corresponding identification information and application icon for being stored with application, obtain the third-party application
Application icon, as the application icon of the notice, the application icon is then shown on status bar.The scheme phase of the present embodiment
For the scheme of the striding course acquisition application icon in status bar icon loading procedure, reduce acquisition application icon and taken
Between, and PackageManager frequent operation degree is alleviated to a certain extent, reduce and obtain needed for application icon
Terminal resource, add system fluency.
As shown in Fig. 2 the status bar icon loading method of the present embodiment includes:
S201, when receiving notice, obtain notice belonging to application identification information;
It is contemplated that the S201-103 of the present embodiment is carried out before status bar display notice, the identification letter of application
The effect of breath is that it has uniqueness, the knowledge of the application for each application for determining to notify the affiliated identity applied
Other information includes but is not limited to Apply Names, using bag name etc..In one embodiment, the identification information of application is preferably to answer
With bag name.
In the present embodiment, the above-mentioned status bar icon of the present embodiment typically can be just used when receiving third party's notice
Loading method, so in S201, after notice is received, in addition to judge that notice is third party's notice or notifications,
If notifications, then the icon of the notifications is loaded according to the loading flow of notifications icon, is notified if third party,
The step of identification information applied belonging to the notice is then obtained according to the scheme of the present embodiment and carries out follow-up S202 and S203, obtains
The application icon of the notice is taken, the application icon of the notice is finally shown in status bar.
S202, judge in preset icon database with the presence or absence of the application icon matched with the identification information of application;It is default
The identification information and application icon of application are correspondingly stored with icon database;
Further, the identification information and application icon applied in the present embodiment in preset icon database are corresponding store
, wherein the mode of corresponding storage includes but is not limited to following at least one mode:
First, the identification information of application and corresponding application icon are stored in a manner of key-value pair, i.e., one application
Identification information as key values, the application icon of the application be used as corresponding to Value values.
2nd, the identification information of application and corresponding application icon are stored in table form, in each of form
The identification information applied described in row and corresponding application icon.
In practice, always have in terminal and the identification information of application and corresponding application icon are stored with some files, be
Realize the multiplexing to terminal resource, the present embodiment above-mentioned preset icon database can existing in terminal be stored with application
Identification information and corresponding application icon database.In one embodiment, above-mentioned preset icon database can be
The database increased newly in terminal.Before S201, in addition to:Increase preset icon database newly in terminal, increase icon data newly
The identification information applied in storehouse and the source of corresponding application icon include following at least one:Existing database in terminal
The identification information of middle application and corresponding application icon;The application icon that PackageManager is obtained.Further, when
PackageManager each time striding course obtain application icon when, be judged as whether having the application in preset icon database
Identification information and application icon, do not have, then with the identification information of the application and the application icon of PackageManager acquisitions more
New preset icon database.
If S203, in the presence of obtaining from preset icon database and be denoted as with the corresponding application drawing of identification information of application
For the application icon of notice.
After the application icon is got, terminal can show application icon in status bar, be pushed away with informing that user should apply
Notification message is sent.
Wherein, if S202 judged result is to be not present what is matched with the identification information of application in preset icon database
Application icon, then need to obtain application icon by the way of other are feasible in S203, which is including but not limited to existing
The mode of the application icon of notice is obtained in technology, such as the Asynchronous loading mode of example in background technology.
Further, the container that there are SystemUI (system user interface) in the terminal (is usually that HashMap holds
Device), its corresponding identification information and application icon for being stored with a number of application, the mode of storage is key-value pair storage side
Formula.And there is local data base in the terminal, be also stored with the identification information of a number of application in the local database
With corresponding application icon.In order to save terminal resource and be easy to the realization of the present embodiment, preset icon database can wrap
Include at least one in the container either local data base of system application interface.
When preset icon database only includes the container of system application interface, in S202, preset icon database is judged
In include with the presence or absence of the application icon that is matched with the identification information of application:
With the presence or absence of the application icon matched with the identification information of application in the container of judgement system application interface.
The structures of the HashMap containers of the system application interface of the present embodiment is as shown in figure 3, system application interface
The identification information and application icon Icon applied in HashMap containers are stored in the form of key-value pair, and identification information is specially
The bag name of application, such as Pkg1, Pkg2, Pkg3 in Fig. 3.
So with the presence or absence of the specific of the application icon matched with the identification information of application in the container of system application interface
Judgment mode includes:The bag name applied according to belonging to notice obtains the notice, using the bag name as key values, is looked into according to the key values
Look for and whether there is the key values in SystemUI HashMap containers, if in the presence of vulae values corresponding to the key values are S201
In the application icon of notice that receives.For example, when receiving some notice, the bag for obtaining application belonging to the notice is entitled
Pkg1, then the container in query graph 3, obtains the application icon that Icon1 is notice, and Icon1 is shown in the status bar of terminal.
When preset icon database only includes local data base, in S202, judge whether deposited in preset icon database
Include in the application icon that the identification information with application matches:
Judge in local data base with the presence or absence of the application icon matched with the identification information of application.
The identification information and application icon of application are stored in the local data base of the present embodiment in a tabular form, the local number
According to storehouse tableau format as shown in figure 4, being correspondingly stored with the identification information of application and corresponding application icon in every a line of form.
Wherein, the identification information of the application in form is typically also bag name, Pkg1, Pkg2 as shown in Figure 4,
Pkg3······。
So with the presence or absence of the specific judgment mode of the application icon matched with the identification information of application in local data base
Including:The bag name applied according to belonging to notice obtains the notice, the bag name in the Bao Mingyu local data bases is matched, if
The match is successful, then application icon corresponding to the bag name that the match is successful in the local data base is the application of the notice received in S201
Icon.For example, after notice is received, the entitled Pkg3 of bag of the application belonging to the notice is obtained, then is inquired about with bag name Pkg3
Local data base form in Fig. 4, obtain in form with Pkg3 a line application icons of the Icon3 as the notice.
When preset icon database includes the container and local data base of system application interface, in S202, judge default
Include in icon database with the presence or absence of the application icon matched with the identification information of application:
With the presence or absence of the identification with application at least one in the container and local data base of judgement system application interface
The application icon of information matches.Wherein it is possible to the identification that whether there is in first judging the container of system application interface with application is believed
The application icon of matching is ceased, can also first be judged in local data base with the presence or absence of the application drawing matched with the identification information of application
Mark, is not present, then judges in another with the presence or absence of the application icon matched with the identification information of application.Wherein, system is judged
With the presence or absence of the specific method ginseng of the application icon matched with the identification information of application in container/local data base of application interface
The related narration stated is admitted to, the present embodiment will not be repeated here.
In order to further avoid PackageManager striding courses from obtaining application icon, in one embodiment preset icon
Database includes the container and local data base of system application interface;Judge to whether there is and application in preset icon database
The application icon of identification information matching includes:
Being judged according to default judgment rule should with the presence or absence of what is matched with the identification information of application in preset icon database
Use icon;
Default judgment rule includes:
With the presence or absence of the identification information matched with the identification information of application in the container of judgement system application interface, if depositing
, then in the container of system application interface the identification information that the match is successful application icon for application identification information icon;
Judge with the presence or absence of the identification information matched with the identification information of application in local data base, if in the presence of local
The application icon for the identification information that the match is successful in database is the icon for the identification information applied.
Wherein, judge in the container of system application interface with the presence or absence of the identification information that is matched with the identification information of application and
Judge can be with the presence or absence of identification information the two judgment steps matched with the identification information of application in local data base simultaneously
Carry out, can also first carry out wherein any one judgment step, when judged result is no, perform another judgment step.
In practice, SystemUI HashMap containers are in each switching on and shutting down, or can be cleared during system restarting
Rebuild, all data in the inside (including the bag name of application and key-value pair of application icon) can be all deleted.And local data base is true
These data can be stored in local file, will not because of it is above-mentioned the reason for be eliminated, can for status bar add icon
Use.So in one embodiment, judge to whether there is and application in preset icon database according to default judgment rule
The application icon of identification information matching includes:
With the presence or absence of the identification information matched with the identification information of application in the container of judgement system application interface;If do not deposit
Then judging in local data base with the presence or absence of the identification information matched with the identification information of application.
Further, in order to increase the comprehensive and reliability of data in HashMap, the judgement number of terminal is reduced,
In one embodiment, in addition to:After starting up of terminal/restart, or the identification information and application drawing applied in local data base
After target corresponding relation has renewal, with the identification information and the corresponding relation of application icon applied in local data base, renewal system
The identification information and application icon applied in the container of system application interface.Thus, can by HashMap containers when next time is to notify
To find Icon as early as possible, improve inquiry Icon and obtain Icon speed.Wherein, terminal can be examined according to prefixed time interval
Whether the corresponding relation for surveying in local data base the identification information applied and application icon has renewal, is, then with local data base
The identification information applied in the identification information of middle application and the corresponding relation of application icon, the more container of new system application interface with
Application icon.Certainly, in other embodiments, can also be according to default time interval with this during the use of terminal
The knowledge applied in the identification information and the corresponding relation of application icon applied in ground database, the more container of new system application interface
Other information and application icon.
Further, with the presence or absence of the application icon matched with the identification information of application in preset icon database is judged
Afterwards, in addition to:
If the application icon matched with the identification information of application is not present in preset icon database, assured by application
Reason service striding course obtains application icon corresponding to the identification information of application belonging to notice;
Default figure will be stored in using the identification information for the application for assuring reason service acquisition is corresponding with corresponding application icon
Mark in database.
Wherein it is possible to understand, in one embodiment when identification with application is not present in preset icon database
The application icon of information matches, other application information AppInfo (the non-above-mentioned bags of application can be obtained using bag management service
Name), the Icon notified is obtained according to application message AppInfo striding courses.But increase application is needed to assure reason in this mode
The step of service acquisition application message AppInfo, the acquisition time of application icon can be increased, comparatively, be taken using reason is assured
The mode step that business directly obtains Icon using bag name is more a little less.
Using the status bar icon loading method of the present embodiment, can first be obtained after the notice of third-party application is received
Take the identification information of application belonging to the notice;Judge the preset icon number of the corresponding identification information and application icon for being stored with application
According in storehouse, if the application icon matched with the identification information applied be present;If in the presence of being obtained from preset icon database
Application icon of the application icon corresponding with the identification information of application as notice;If being not present, enter existing obtain and apply
The mode of icon.Thus, largely avoid and obtain application icon using bag management service striding course, effectively reduce and obtain
The time needed for the application icon of notice is taken, improves acquisition efficiency, is advantageous to terminal overall performance smoothness, lifts user's body
Test.
Embodiment two:
A kind of status bar icon loading method in the present embodiment is illustrated with reference to Fig. 5 and Fig. 6.
Three layers of storage schematic diagram of Fig. 5 application icons, as shown in figure 5, Icon storage is divided into 3 in the present embodiment
Layer, one layer most started are the container in SystemUI (system user interface), and the second layer is local data base, and third layer is logical
Cross PackageManager and obtain application icon.What is used in the present embodiment in SystemUI container, local data base should
Identification information is all bag name, and PackageManager is also to obtain application icon by wrapping name.Assuming that in the present embodiment
The key-value pair of storage includes in SystemUI container (HashMap containers):Pkg1-Icon1、Pkg2-Icon2、Pkg3-
Icon3···Pkg9-Icon9;Pkg10 and corresponding Icon10, Pkg11 are stored with the form stored in local data base
With corresponding Icon11, Pkg12 and corresponding Icon12Pkg20 and corresponding Icon20.
Referring to Fig. 6, the status bar icon loading method of the present embodiment includes:
S601, when receiving notice, obtain the bag name of application belonging to the notice;
S602, by the HashMap containers of the Bao Mingyu SystemUI Pkg1, Pkg2, Pkg3Pkg9 carry out
Matching, if the match is successful, obtain Icons of the Icon of the bag name that the match is successful as notice;If it fails to match, enter
S603;
S603, storage Pkg10, Pkg11, Pkg12Pkg20 it will be matched in the Bao Mingyu local data bases;
If the match is successful, obtain the Icon of the Icon of the bag name that the match is successful as notice, by Icon corresponding to the Bao Mingyu with
In the form write-in SystemUI of key-value pair HashMap containers;If it fails to match, into S604.
S604, PackageManager obtain the Icon of the notice according to the bag name striding course;
Wherein it is possible to understand, PackageManager can also obtain the other application information of application in S604
AppInfo, the Icon of notice is obtained according to application message AppInfo striding courses.
S605, the Icon renewals obtained with the bag name and PackageManager applied belonging to the notice are above-mentioned
Bag name and Icon in SystemUI HashMap containers and local data base.
Using the present embodiment, three layers of storage of application icon largely reduce to be stepped into using using bag management service
Journey obtains the probability of application icon, reduces the time needed for the application icon for obtaining notice, improves acquisition efficiency, be advantageous to
Terminal overall performance is smooth.
Embodiment three:
Referring to Fig. 7, terminal is loaded present embodiment illustrates a kind of status bar icon, including processor 71, memory 72 and
Communication bus 73;
Communication bus 73 is used to realize the connection communication between processor and memory;
Processor 71 is used to perform the status bar icon loading procedure stored in memory 72, to realize following steps:
When receiving notice, the identification information of application belonging to notice is obtained;
Judge in preset icon database with the presence or absence of the application icon matched with the identification information of application;Preset icon number
According to the identification information and application icon that application is correspondingly stored with storehouse;
If in the presence of acquisition application icon corresponding with the identification information applied is as notice from preset icon database
Application icon.
Wherein, the status bar icon loading terminal of the present embodiment includes but is not limited to mobile terminal, such as smart mobile phone, puts down
Plate, intelligent watch.The operating system of the terminal includes but is not limited to Android operation system.
In practice, the above-mentioned steps of the present embodiment are carried out before status bar display notice, the identification information of application
Effect be the application belonging to determine to notify identity, it has uniqueness, the identification of the application for each application
Information includes but is not limited to Apply Names, using bag name etc..In one embodiment, the identification information of application is preferably to apply
Bag name.
Notice is generally divided into notifications and third party's notice, the acquisition relatively convenient of the icon of notifications, so originally
Embodiment typically can just perform above-mentioned method when receiving third party's notice, and processor 71 is additionally operable to perform in memory 72
The status bar icon loading procedure of storage, to realize following steps:
After notice is received, it is third party's notice or notifications to judge notice, if notifications, then according to being
The loading flow of system notification icon loads the icon of the notifications, is notified if third party, then obtains application belonging to notice
Identification information;Judge in preset icon database with the presence or absence of the application icon matched with the identification information of application;If in the presence of,
Application icon of the application icon corresponding with the identification information applied as notice is obtained from preset icon database.
Further, the identification information and application icon applied in the present embodiment in preset icon database are corresponding store
, wherein the mode of corresponding storage includes but is not limited to following at least one mode:By the identification information of application and corresponding
Application icon is stored in a manner of key-value pair, i.e., the identification information of one application is as key values, the application icon of the application
As corresponding Value values;The identification information of application and corresponding application icon are stored in table form, in form
Every a line described in the identification information applied and corresponding application icon.
In practice, always have in terminal and the identification information of application and corresponding application icon are stored with some files, be
Realize the multiplexing to terminal resource, the present embodiment above-mentioned preset icon database can existing in terminal be stored with application
Identification information and corresponding application icon database.In one embodiment, above-mentioned preset icon database can be
The database increased newly in terminal.Processor 71 is additionally operable to perform the status bar icon loading procedure stored in memory 72, with reality
Existing following steps:
Increase preset icon database newly in terminal.Wherein, the identification information applied in newly-increased preset icon database
Include following at least one with the source of corresponding application icon:The identification information applied in terminal in existing database with
Corresponding application icon;The application icon that PackageManager is obtained.Further, processor 71 is additionally operable to perform memory
The status bar icon loading procedure stored in 72, to realize following steps:As PackageManager, striding course obtains each time
During application icon, judge whether there is the identification information and application icon of the application in preset icon database, do not have, then should with this
The application icon renewal preset icon database that identification information and PackageManager are obtained.Thus, it is possible to newly-increased
Preset icon database in increase the identification information and application identities of application.After having data in default icon database,
Whether there is the application icon of the notice in can after receiving notice first judges preset icon database.
Wherein, processor 71 is additionally operable to perform the status bar icon loading procedure stored in memory 72, following to realize
Step:It is feasible using other if the application icon matched with the identification information of application is not present in preset icon database
Mode obtains application icon, and which including but not limited to obtains the mode of the application icon of third party's notice in the prior art,
Such as the Asynchronous loading mode of example in background technology.
Further, SystemUI container (being usually HashMap containers) is there are in the terminal, and it corresponds to and is stored with
The identification information and application icon of a number of application, the mode of storage is key-value pair storage mode.And in the terminal also
There is local data base, be also stored with the identification information of a number of application and corresponding application icon in the local database.
In order to save terminal resource and be easy to the realization of the present embodiment, preset icon database can include the appearance of system application interface
It is at least one in device either local data base.
When preset icon database only includes the container of system application interface, processor 71 is used to perform in memory 72
The status bar icon loading procedure of storage, to realize following steps:
With the presence or absence of the application icon matched with the identification information of application in the container of judgement system application interface.
The structure of the HashMap containers of the system application interface of the present embodiment is as shown in Fig. 3 of embodiment one, system application
The identification information and application icon Icon applied in the HashMap containers at interface are stored in the form of key-value pair, identification information
The bag name specially applied.With the presence or absence of the application icon matched with the identification information of application in the container of system application interface
Specific judgment mode describes referring to the correlation of embodiment one, and the present embodiment will not be repeated here.
When preset icon database only includes local data base, processor 71 is used to perform the shape stored in memory 72
State column icon loading procedure, to realize following steps:
Judge in local data base with the presence or absence of the application icon matched with the identification information of application.
The identification information and application icon of application are stored in the local data base of the present embodiment in a tabular form, the local number
According to storehouse tableau format as shown in figure 4, being correspondingly stored with the identification information of application and corresponding application icon in every a line of form.
Wherein, the identification information of the application in form is typically also bag name.With the presence or absence of the identification information with application in local data base
The specific judgment mode of the application icon of matching describes referring to the correlation of embodiment one, and the present embodiment will not be repeated here.
When preset icon database includes the container and local data base of system application interface, processor 71 is used to perform
The status bar icon loading procedure stored in memory 72, to realize following steps:
With the presence or absence of the identification with application at least one in the container and local data base of judgement system application interface
The application icon of information matches.
In order to further avoid PackageManager striding courses from obtaining application icon, in one embodiment preset icon
Database includes the container and local data base of system application interface;Processor 71 is used to perform the state stored in memory 72
Column icon loading procedure, to realize following steps:
Being judged according to default judgment rule should with the presence or absence of what is matched with the identification information of application in preset icon database
Use icon;
Default judgment rule includes:
With the presence or absence of the identification information matched with the identification information of application in the container of judgement system application interface, if depositing
, then in the container of system application interface the identification information that the match is successful application icon for application identification information icon;
Judge with the presence or absence of the identification information matched with the identification information of application in local data base, if in the presence of local
The application icon for the identification information that the match is successful in database is the icon for the identification information applied.
Wherein, judge in the container of system application interface with the presence or absence of the identification information that is matched with the identification information of application and
Judge can be with the presence or absence of identification information the two judgment steps matched with the identification information of application in local data base simultaneously
Carry out, can also first carry out wherein any one judgment step, when judged result is no, perform another judgment step.
In practice, SystemUI HashMap containers are in each switching on and shutting down, or can be cleared during system restarting
Rebuild, all data in the inside (including the bag name of application and key-value pair of application icon) can be all deleted.And local data base is true
These data can be stored in local file, will not because of it is above-mentioned the reason for be eliminated, can for status bar add icon
Use.So in one embodiment, processor 71 is used to perform the status bar icon loading procedure stored in memory 72, with
Realize following steps:
With the presence or absence of the identification information matched with the identification information of application in the container of judgement system application interface;If do not deposit
Then judging in local data base with the presence or absence of the identification information matched with the identification information of application.
Further, in order to increase the comprehensive and reliability of data in HashMap, the judgement number of terminal is reduced,
In one embodiment, processor 71 is used to perform the status bar icon loading procedure stored in memory 72, to realize following walk
Suddenly:After starting up of terminal/restart, or the identification information and the corresponding relation of application icon applied in local data base have renewal
Afterwards, in the identification information and the corresponding relation of application icon to be applied in local data base, the more container of new system application interface
The identification information and application icon of application.Thus when next time is to notify, Icon can be found as early as possible by HashMap containers, carried
Height inquiry Icon and the speed for obtaining Icon.Wherein, processor 71 is used to perform the status bar icon stored in memory 72
Loading procedure, to realize following steps:The identification information applied in local data base and application are detected according to prefixed time interval
Whether the corresponding relation of icon has renewal, is, then is closed so that the identification information applied in local data base is corresponding with application icon
It is the identification information and application icon applied in the more container of new system application interface..
Further, processor 71 is additionally operable to perform the status bar icon loading procedure stored in memory 72, to realize
Following steps:After it whether there is the application icon matched with the identification information of application in judging preset icon database, if
The application icon matched with the identification information of application is not present in preset icon database, then by being stepped into using bag management service
Journey obtains application icon corresponding to the identification information of application belonging to notice;Afterwards, application is assured to the application of reason service acquisition
Identification information is corresponding with corresponding application icon to be stored in preset icon database.
Wherein it is possible to understand, in one embodiment when identification with application is not present in preset icon database
The application icon of information matches, other application information AppInfo (the non-above-mentioned bags of application can be obtained using bag management service
Name), the Icon notified is obtained according to application message AppInfo striding courses.But increase application is needed to assure reason in this mode
The step of service acquisition application message AppInfo, the acquisition time of application icon can be increased, comparatively, be taken using reason is assured
The mode step that business directly obtains Icon using bag name is more a little less.
Largely avoided using the present embodiment and obtain application icon using bag management service striding course, effectively reduced
The time needed for the application icon of notice is obtained, improves acquisition efficiency, is advantageous to terminal overall performance smoothness, improves use
Experience at family.
Example IV:
The present embodiment shows a kind of computer-readable recording medium, and computer-readable recording medium storage has one or more
Individual program, one or more program can be performed, to realize following steps:
When receiving notice, the identification information of application belonging to notice is obtained;
Judge in preset icon database with the presence or absence of the application icon matched with the identification information of application;Preset icon number
According to the identification information and application icon that application is correspondingly stored with storehouse;
If in the presence of acquisition application icon corresponding with the identification information applied is as notice from preset icon database
Application icon.
The effect for the identification information applied in the present embodiment is that it is for each for determining to notify the affiliated identity applied
There is uniqueness for, the identification information of the application includes but is not limited to Apply Names, using bag name etc..In a reality
Apply in example, the identification information of application is preferably to apply bag name.
Notice is generally divided into notifications and third party's notice, the acquisition relatively convenient of the icon of notifications, so originally
Embodiment typically can just perform above-mentioned method when receiving third party's notice, and computer-readable recording medium storage has one
Or multiple programs, one or more program can be performed, to realize following steps:After notice is received, judge to notify
It is third party's notice or notifications, if notifications, then loads the system according to the loading flow of notifications icon
The icon of notice, notified if third party, then obtain the identification information of application belonging to notice;Judge be in preset icon database
It is no the application icon matched with the identification information of application to be present;If in the presence of acquisition and application from preset icon database
Application icon of the application icon corresponding to identification information as notice.
Further, the corresponding storage of identification information and application icon applied in the present embodiment in preset icon database
Mode includes but is not limited to following at least one mode:By the identification information of application and corresponding application icon with key-value pair
Mode is stored, i.e., the identification information of one application is as key values, Value values corresponding to the application icon conduct of the application;
The identification information of application and corresponding application icon are stored in table form, applied described in every a line in form
Identification information and corresponding application icon.
In practice, always have in terminal and the identification information of application and corresponding application icon are stored with some files, be
Realize the multiplexing to terminal resource, the present embodiment above-mentioned preset icon database can existing in terminal be stored with application
Identification information and corresponding application icon database.In one embodiment, above-mentioned preset icon database can be
The database increased newly in terminal.Computer-readable recording medium storage has one or more program, one or more program
It can be performed, to realize following steps:Increase preset icon database newly in terminal.Wherein, newly-increased preset icon database
The source of the identification information of middle application and corresponding application icon includes following at least one:In terminal in existing database
The identification information of application and corresponding application icon;The application icon that PackageManager is obtained.Further, computer can
Read storage medium and be stored with one or more program, one or more program can be performed, to realize following steps:When
PackageManager each time striding course obtain application icon when, judge whether there is the knowledge of the application in preset icon database
Other information and application icon, do not have, then are updated with the identification information of the application and the PackageManager application icon obtained
Preset icon database.Thus, it is possible to increase the identification information and application identities of application in newly-increased preset icon database.
After having data in default icon database, can first judges whether have in preset icon database after notice is received
The application icon of the notice.
Wherein, computer-readable recording medium storage has one or more program, and one or more program can be held
OK, to realize following steps:If the application icon matched with the identification information of application is not present in preset icon database, adopt
Application icon is obtained with other feasible modes, which including but not limited to obtains the application of third party's notice in the prior art
The mode of icon, such as the Asynchronous loading mode of example in background technology.
Further, SystemUI container (being usually HashMap containers) is there are in the terminal, and it corresponds to and is stored with
The identification information and application icon of a number of application, the mode of storage is key-value pair storage mode.And in the terminal also
There is local data base, be also stored with the identification information of a number of application and corresponding application icon in the local database.
In order to save terminal resource and be easy to the realization of the present embodiment, preset icon database can include the appearance of system application interface
It is at least one in device either local data base.
When preset icon database only includes the container of system application interface, computer-readable recording medium storage has one
Individual or multiple programs, one or more program can be performed, to realize following steps:The container of judgement system application interface
In with the presence or absence of the application icon that is matched with the identification information of application.
When preset icon database only includes local data base, computer-readable recording medium storage has one or more
Individual program, one or more program can be performed, to realize following steps:Judge to whether there is and application in local data base
Identification information matching application icon.
When preset icon database includes the container and local data base of system application interface, computer-readable storage medium
Matter is stored with one or more program, and one or more program can be performed, to realize following steps:
With the presence or absence of the identification with application at least one in the container and local data base of judgement system application interface
The application icon of information matches.
In order to further avoid PackageManager striding courses from obtaining application icon, in one embodiment preset icon
Database includes the container and local data base of system application interface;Computer-readable recording medium storage has one or more
Program, one or more program can be performed, to realize following steps:
Being judged according to default judgment rule should with the presence or absence of what is matched with the identification information of application in preset icon database
Use icon;
Default judgment rule includes:
With the presence or absence of the identification information matched with the identification information of application in the container of judgement system application interface, if depositing
, then in the container of system application interface the identification information that the match is successful application icon for application identification information icon;
Judge with the presence or absence of the identification information matched with the identification information of application in local data base, if in the presence of local
The application icon for the identification information that the match is successful in database is the icon for the identification information applied.
In practice, SystemUI HashMap containers are in each switching on and shutting down, or can be cleared during system restarting
Rebuild, all data in the inside (including the bag name of application and key-value pair of application icon) can be all deleted.And local data base is true
These data can be stored in local file, will not because of it is above-mentioned the reason for be eliminated, can for status bar add icon
Use.So in one embodiment, computer-readable recording medium storage has one or more program, one or more
Program can be performed, to realize following steps:With the presence or absence of the identification information with application in the container of judgement system application interface
The identification information of matching;If being not present, judge in local data base with the presence or absence of the identification matched with the identification information of application
Information.
Further, in order to increase the comprehensive and reliability of data in HashMap, the judgement number of terminal is reduced,
In one embodiment, computer-readable recording medium storage has one or more program, and one or more program can be held
OK, to realize following steps:After starting up of terminal/restart, or the identification information and application icon applied in local data base
Corresponding relation have renewal after, with the identification information and the corresponding relation of application icon applied in local data base, more new system
The identification information and application icon applied in the container of application interface.Thus, can be with by HashMap containers when next time is to notify
Icon is found as early as possible, is improved inquiry Icon and is obtained Icon speed.Optionally, computer-readable recording medium storage has one
Individual or multiple programs, one or more program can be performed, to realize following steps:This is detected according to prefixed time interval
Whether the identification information and the corresponding relation of application icon applied in ground database have renewal, are, then with local data base should
The identification information applied in the corresponding relation of identification information and application icon, the more container of new system application interface and application
Icon.
Further, computer-readable recording medium storage has one or more program, and one or more program can
It is performed, to realize following steps:Should with the presence or absence of what is matched with the identification information of application in preset icon database is judged
After icon, if the application icon matched with the identification information of application is not present in preset icon database, pass through application
Bag management service striding course obtains application icon corresponding to the identification information of application belonging to notice;Afterwards, it will apply and assure reason clothes
The identification information for the application for being engaged in obtaining is corresponding with corresponding application icon to be stored in preset icon database.
Wherein it is possible to understand, in one embodiment when identification with application is not present in preset icon database
The application icon of information matches, other application information AppInfo (the non-above-mentioned bags of application can be obtained using bag management service
Name), the Icon notified is obtained according to application message AppInfo striding courses.But increase application is needed to assure reason in this mode
The step of service acquisition application message AppInfo, the acquisition time of application icon can be increased, comparatively, be taken using reason is assured
The mode step that business directly obtains Icon using bag name is more a little less.
Largely avoided using the present embodiment and obtain application icon using bag management service striding course, effectively reduced
The time needed for the application icon of notice is obtained, improves acquisition efficiency, is advantageous to terminal overall performance smoothness, improves use
Experience at family.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) method that performs each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
- A kind of 1. status bar icon loading method, it is characterised in that including:When receiving notice, the identification information of application belonging to the notice is obtained;Judge in preset icon database with the presence or absence of the application icon matched with the identification information of the application;The default figure The identification information and application icon of application are correspondingly stored with mark database;If in the presence of the acquisition application icon conduct corresponding with the identification information of the application from the preset icon database The application icon of the notice.
- 2. status bar icon loading method as claimed in claim 1, it is characterised in that the preset icon database is including being It is at least one in the container and local data base of system application interface.
- 3. status bar icon loading method as claimed in claim 2, it is characterised in that the preset icon database is including being The container and local data base of system application interface;It is described to judge in preset icon database with the presence or absence of the identification with the application The application icon of information matches includes:Being judged according to default judgment rule should with the presence or absence of what is matched with the identification information of the application in preset icon database Use icon;The default judgment rule includes:Judge with the presence or absence of the identification information matched with the identification information of the application in the container of the system application interface, if In the presence of then the application icon for the identification information that the match is successful is believed for the identification of the application in the container of the system application interface The icon of breath;Judge with the presence or absence of the identification information matched with the identification information of the application in the local data base, if in the presence of, The application icon for the identification information that the match is successful in the local data base is the icon of the identification information of the application.
- 4. status bar icon loading method as claimed in claim 3, it is characterised in that the basis is preset judgment rule and judged Include in preset icon database with the presence or absence of the application icon matched with the identification information of the application:Judge in the container of the system application interface with the presence or absence of the identification information matched with the identification information of the application;If It is not present, then judges in the local data base with the presence or absence of the identification information matched with the identification information of the application.
- 5. status bar icon loading method as claimed in claim 4, it is characterised in that also include:In starting up of terminal/restart Afterwards, or in the local data base after the identification information and the corresponding relation of application icon applied have renewal, with the local The identification information and the corresponding relation of application icon applied in database, update what is applied in the container of the system application interface Identification information and corresponding application icon.
- 6. the status bar icon loading method as described in claim any one of 1-5, it is characterised in that judge default figure described After whether there is the application icon matched with the identification information of the application in mark database, in addition to:If the application icon matched with the identification information of the application is not present in the preset icon database, pass through application Bag management service striding course obtains application icon corresponding to the identification information of application belonging to the notice;It is stored in the identification information of the application is corresponding with corresponding application icon in the preset icon database.
- 7. the status bar icon loading method as described in claim any one of 1-5, it is characterised in that the identification information includes Bag name.
- 8. a kind of status bar icon loads terminal, it is characterised in that the status bar icon loading terminal includes processor, storage Device and communication bus;The communication bus is used to realize the connection communication between processor and memory;The processor is used to perform the status bar icon loading procedure stored in memory, to realize following steps:When receiving notice, the identification information of application belonging to the notice is obtained;Judge in preset icon database with the presence or absence of the application icon matched with the identification information of the application;The default figure The identification information and application icon of application are correspondingly stored with mark database;If in the presence of the acquisition application icon conduct corresponding with the identification information of the application from the preset icon database The application icon of the notice.
- 9. status bar icon as claimed in claim 8 loads terminal, it is characterised in that the preset icon database is including being It is at least one in the container and local data base of system application interface;When the preset icon database includes system application interface Container and local data base;The processor is used to perform the status bar icon loading procedure stored in memory, to realize Following steps:Being judged according to default judgment rule should with the presence or absence of what is matched with the identification information of the application in preset icon database Use icon;The default judgment rule includes:Judge with the presence or absence of the identification information matched with the identification information of the application in the container of the system application interface, if In the presence of then the application icon for the identification information that the match is successful is believed for the identification of the application in the container of the system application interface The icon of breath;Judge with the presence or absence of the identification information matched with the identification information of the application in the local data base, if in the presence of, The application icon for the identification information that the match is successful in the local data base is the icon of the identification information of the application.
- A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be performed, to realize following steps:When receiving notice, the identification information of application belonging to the notice is obtained;Judge in preset icon database with the presence or absence of the application icon matched with the identification information of the application;The default figure The identification information and application icon of application are correspondingly stored with mark database;If in the presence of the acquisition application icon conduct corresponding with the identification information of the application from the preset icon database The application icon of the notice.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710488801.0A CN107450795A (en) | 2017-06-23 | 2017-06-23 | Status bar icon loading method, terminal and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710488801.0A CN107450795A (en) | 2017-06-23 | 2017-06-23 | Status bar icon loading method, terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107450795A true CN107450795A (en) | 2017-12-08 |
Family
ID=60486672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710488801.0A Pending CN107450795A (en) | 2017-06-23 | 2017-06-23 | Status bar icon loading method, terminal and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107450795A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664182A (en) * | 2018-04-09 | 2018-10-16 | Oppo广东移动通信有限公司 | A kind of application switching method, terminal and computer readable storage medium |
CN108804151A (en) * | 2018-04-28 | 2018-11-13 | 维沃移动通信有限公司 | A kind of method and terminal of re-launching applications |
CN109284164A (en) * | 2018-09-30 | 2019-01-29 | 武汉斗鱼网络科技有限公司 | A kind of icon display method and device |
CN112269510A (en) * | 2020-10-29 | 2021-01-26 | 维沃移动通信(杭州)有限公司 | Information processing method and device and electronic equipment |
CN113873075A (en) * | 2021-09-18 | 2021-12-31 | 深圳市爱都科技有限公司 | Notification message management method, system and mobile terminal |
CN114675772A (en) * | 2022-03-25 | 2022-06-28 | 珠海读书郎软件科技有限公司 | Status bar notification viewing method based on flexible screen |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853433A (en) * | 2014-04-01 | 2014-06-11 | 联想(北京)有限公司 | Notification message promoting method and device |
CN106020605A (en) * | 2016-05-18 | 2016-10-12 | 广东欧珀移动通信有限公司 | Application icon display method, user terminal and system |
CN106095245A (en) * | 2016-06-21 | 2016-11-09 | 宇龙计算机通信科技(深圳)有限公司 | The display packing of a kind of message, device and terminal |
-
2017
- 2017-06-23 CN CN201710488801.0A patent/CN107450795A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853433A (en) * | 2014-04-01 | 2014-06-11 | 联想(北京)有限公司 | Notification message promoting method and device |
CN106020605A (en) * | 2016-05-18 | 2016-10-12 | 广东欧珀移动通信有限公司 | Application icon display method, user terminal and system |
CN106095245A (en) * | 2016-06-21 | 2016-11-09 | 宇龙计算机通信科技(深圳)有限公司 | The display packing of a kind of message, device and terminal |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664182A (en) * | 2018-04-09 | 2018-10-16 | Oppo广东移动通信有限公司 | A kind of application switching method, terminal and computer readable storage medium |
CN108664182B (en) * | 2018-04-09 | 2020-04-24 | Oppo广东移动通信有限公司 | Application switching method, terminal and computer readable storage medium |
CN108804151A (en) * | 2018-04-28 | 2018-11-13 | 维沃移动通信有限公司 | A kind of method and terminal of re-launching applications |
CN108804151B (en) * | 2018-04-28 | 2021-11-02 | 维沃移动通信有限公司 | Method and terminal for restarting application program |
CN109284164A (en) * | 2018-09-30 | 2019-01-29 | 武汉斗鱼网络科技有限公司 | A kind of icon display method and device |
CN109284164B (en) * | 2018-09-30 | 2022-04-08 | 武汉斗鱼网络科技有限公司 | Icon display method and device |
CN112269510A (en) * | 2020-10-29 | 2021-01-26 | 维沃移动通信(杭州)有限公司 | Information processing method and device and electronic equipment |
CN113873075A (en) * | 2021-09-18 | 2021-12-31 | 深圳市爱都科技有限公司 | Notification message management method, system and mobile terminal |
CN113873075B (en) * | 2021-09-18 | 2023-01-10 | 深圳市爱都科技有限公司 | Notification message management method and system, mobile terminal and storage medium |
CN114675772A (en) * | 2022-03-25 | 2022-06-28 | 珠海读书郎软件科技有限公司 | Status bar notification viewing method based on flexible screen |
CN114675772B (en) * | 2022-03-25 | 2024-02-23 | 珠海读书郎软件科技有限公司 | Status bar notification viewing method based on flexible screen |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107450795A (en) | Status bar icon loading method, terminal and computer-readable recording medium | |
CN107402709A (en) | A kind of multi-screen display method, terminal and computer-readable recording medium | |
CN107633051A (en) | Desktop searching method, mobile terminal and computer-readable recording medium | |
CN108595201A (en) | A kind of application program update method and mobile terminal | |
CN107341011A (en) | A kind of desktop display method, mobile terminal and computer-readable recording medium | |
CN107229389A (en) | A kind of method of shared file, equipment and computer-readable recording medium | |
CN107071180A (en) | Desktop customization layout method, mobile terminal and computer-readable recording medium | |
CN107704133A (en) | Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium | |
CN107566605A (en) | A kind of interactive interface processing method, equipment and computer-readable recording medium | |
CN107589887A (en) | One kind applies startup method and terminal | |
CN107765954B (en) | Application icon updating method, mobile terminal and server | |
CN107483556A (en) | A kind of remote configuring method, equipment and computer-readable recording medium | |
CN107229410A (en) | Interactive operation method, mobile terminal and computer-readable recording medium | |
CN107888759A (en) | A kind of method, equipment and computer-readable recording medium realized information and sent | |
CN107766222A (en) | Blank screen detection method, mobile terminal and computer-readable recording medium | |
CN107734023A (en) | Static resource document down loading method, mobile terminal and computer-readable recording medium | |
CN107818022A (en) | Application programming interfaces merging method, mobile terminal and computer-readable recording medium | |
CN107704332A (en) | Freeze screen solution method, mobile terminal and computer-readable recording medium | |
CN107506468A (en) | Application program searching method, terminal, server, computer-readable recording medium | |
CN107422853A (en) | A kind of gesture identification method, mobile terminal and computer-readable recording medium | |
CN107423050A (en) | A kind of method and apparatus for penetrating operation | |
CN110012152A (en) | A kind of interface display method and terminal device | |
CN109873901A (en) | A kind of screenshot method for managing resource and terminal, computer readable storage medium | |
CN107809527A (en) | A kind of method and apparatus that prompt operation is presented | |
CN107832191A (en) | Blank screen detection method, mobile terminal and computer-readable recording 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171208 |
|
RJ01 | Rejection of invention patent application after publication |