CN106850307B - Attribute information processing method and device - Google Patents

Attribute information processing method and device Download PDF

Info

Publication number
CN106850307B
CN106850307B CN201710094010.XA CN201710094010A CN106850307B CN 106850307 B CN106850307 B CN 106850307B CN 201710094010 A CN201710094010 A CN 201710094010A CN 106850307 B CN106850307 B CN 106850307B
Authority
CN
China
Prior art keywords
database
attribute information
attribute
value
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710094010.XA
Other languages
Chinese (zh)
Other versions
CN106850307A (en
Inventor
孙哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710094010.XA priority Critical patent/CN106850307B/en
Publication of CN106850307A publication Critical patent/CN106850307A/en
Application granted granted Critical
Publication of CN106850307B publication Critical patent/CN106850307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an attribute information processing method and device, and belongs to the field of communication. The method comprises the following steps: receiving a first attribute value, wherein the first attribute value is used for modifying first attribute information, and the first attribute information comprises an attribute name and a second attribute value; modifying a second attribute value included in the first attribute information into the first attribute value to obtain second attribute information; and providing the second attribute information to the first application through a preset database item in a preset database monitored by first application registration, wherein the first application is an application needing to call the first attribute information. The device comprises: the device comprises a receiving module, a modifying module and a providing module. The invention can reduce resource consumption and improve the real-time property of the application for acquiring the modified attribute information.

Description

Attribute information processing method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for processing attribute information.
Background
The Android (Android) system has high development freedom and flexible and changeable modes, and is convenient for developers to develop. The Android system provides attribute information for a developer to use, for example, the developer can develop attribute information for controlling a flash lamp, and the attribute information is used for controlling whether the flash lamp of the camera is turned on or not when the photographing application takes a picture.
The attribute information developed by the developer is often used by multiple applications. After a certain application modifies the attribute information, each of the other applications needs to acquire the modified attribute information. The current application may obtain the modified attribute information in the following manner, including: the application can start an attribute monitoring thread when being started, the attribute monitoring thread acquires the attribute value included by the attribute information at preset time intervals, if the currently acquired attribute value is different from the attribute value acquired last time, the attribute information is judged to be modified, and the application is informed to use the acquired modified attribute information.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
at present, the attribute value included in the attribute information is acquired once every preset time, so that the resource consumption is high, and in addition, after the attribute information is modified, the attribute monitoring thread may wait for a period of time to find that the attribute information is modified, so that the instantaneity of acquiring the modified attribute information by an application is poor.
Disclosure of Invention
The invention provides an attribute information processing method and device in order to reduce resource consumption and improve instantaneity of acquiring modified attribute information by an application. The technical scheme is as follows:
in a first aspect, the present application provides an attribute information processing method, including:
receiving a first attribute value, wherein the first attribute value is used for modifying first attribute information, and the first attribute information comprises an attribute name and a second attribute value;
modifying a second attribute value included in the first attribute information into the first attribute value to obtain second attribute information;
and providing the second attribute information to the first application through a preset database item in a preset database monitored by first application registration, wherein the first application is an application needing to call the first attribute information.
Optionally, the providing, by a preset database item in a preset database monitored by first application registration, the second attribute information to the first application includes:
updating the database value corresponding to the preset database item in the preset database into a first database value, wherein the first database value comprises the modified second attribute information, so that the operating system controls the first application to read the first database value corresponding to the preset database item from the preset database.
Optionally, the updating the database value corresponding to the preset database entry in the preset database to a first database value includes:
generating a first database value comprising the attribute name and the first attribute value;
generating a database modification command carrying the preset database item and the first database value;
and updating the database value corresponding to the preset database item in the preset database into a first database value through the database modification command.
Optionally, the attribute name included in the second attribute information in the first database value and the first attribute value are separated by a preset connector.
Optionally, before the preset database entry in the preset database monitored through the first application registration provides the second attribute information to the first application, the method further includes:
registering the first application to monitor the preset database items in the preset database when the first application is started.
In a second aspect, the present application provides an attribute information processing apparatus, the apparatus including:
a receiving module, configured to receive a first attribute value, where the first attribute value is used to modify first attribute information, and the first attribute information includes an attribute name and a second attribute value;
the modification module is used for modifying a second attribute value included in the first attribute information into the first attribute value to obtain second attribute information;
and the providing module is used for providing the second attribute information to the first application through a preset database item in a preset database which is monitored by first application registration, and the first application is an application which needs to call the first attribute information.
Optionally, the providing module provides the second attribute information to the first application through a preset database item in a preset database monitored by first application registration, including updating a database value corresponding to the preset database item in the preset database to a first database value, where the first database value includes the modified second attribute information, so that an operating system controls the first application to read the first database value corresponding to the preset database item from the preset database.
Optionally, the updating, by the providing module, a database value corresponding to the preset database entry in the preset database to a first database value includes:
generating a first database value comprising the attribute name and the first attribute value; generating a database modification command carrying the preset database item and the first database value;
and updating the database value corresponding to the preset database item in the preset database into a first database value through the database modification command.
Optionally, the attribute name included in the second attribute information in the first database value and the first attribute value are separated by a preset connector.
Optionally, the apparatus further comprises:
and the registration module is used for registering the preset database item monitored in the preset database by the first application when the first application is started.
The technical scheme provided by the invention at least has the following beneficial effects:
when the first attribute information is modified into the second attribute information, the second attribute information is provided for the first application through the preset database items in the preset database registered and monitored by the first application, so that the first application does not need to start an attribute monitoring thread to poll the first attribute information at preset time intervals, the resource consumption is reduced, meanwhile, the change of the attribute value can be obtained by monitoring the change of the database items, and the instantaneity of the application for obtaining the modified second attribute information is improved.
Drawings
FIG. 1 is a flowchart of an attribute information processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an attribute information processing method according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an attribute information processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an attribute information processing apparatus according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides an attribute information processing method, where the method includes:
step 101: and receiving a first attribute value, wherein the first attribute value is used for modifying first attribute information, and the first attribute information comprises an attribute name and a second attribute value.
Step 102: and modifying the second attribute value included in the first attribute information into the first attribute value to obtain second attribute information.
Step 103: and providing the second attribute information for the first application through a preset database item in a preset database which is monitored by the first application registration, wherein the first application is an application which needs to call the first attribute information.
In this embodiment, when the first attribute information is modified to the second attribute information, the second attribute information is provided to the first application through the preset database item in the preset database registered and monitored by the first application, so that the first application does not need to start an attribute monitoring thread to periodically poll to obtain the change of the attribute information, thereby reducing resource consumption and improving the real-time property of the application for obtaining the modified attribute information.
Referring to fig. 2, an embodiment of the present invention provides an attribute information processing method, including:
step 201: when an application in the terminal is started, registering the application to monitor a preset database item in a preset database.
In this embodiment, the terminal includes at least one attribute information, where the attribute information includes an attribute name and an attribute value, and each application in the terminal can call the attribute information.
Each attribute information in the terminal corresponds to a preset database item in a preset database (e.g., a system database), and when an application in the terminal is started, the application is registered to monitor the preset database item in the preset database. Or, each attribute information in the terminal corresponds to one preset database, but preset database items corresponding to each attribute information in the preset database may be different, and when the application in the terminal is started, the application is registered to monitor the preset database items corresponding to the attribute information that the application needs to call in the preset database.
In this embodiment, for any attribute information in the terminal, the attribute information is referred to as first attribute information. The first application is any application which needs to call the first attribute information in the terminal, and the first application comprises a database name and a preset database item of a preset database which needs to be registered and monitored. When the first application is started, the first application is registered to monitor the preset database item in the preset database.
The first attribute information comprises an attribute name and a second attribute value, and the terminal can be a mobile phone, a tablet computer and other terminals. For example, the first attribute information may be in the form of: [ sys.boot.animation ]: [ boot ], where sys.
The first application may be controlled by an attribute value included in the first attribute information. For example, it is assumed that the first application is an application for taking a picture, the attribute value included in the first attribute information may be used to control whether the first application uses a flash when taking a picture, and the first application is preset with the attribute name included in the first attribute information in advance.
The second attribute value included in the first attribute information is assumed to be used for controlling the first application to use the flash lamp when taking a picture, so that the first application calls the second attribute value included in the first attribute information according to the preset attribute name, and the flash lamp is started according to the second attribute value when taking a picture. If the flash is required to be turned off, only the second attribute value included in the first attribute information needs to be modified into the first attribute value, and the first attribute value is used for controlling the first application to turn off the flash, so that the first application calls the first attribute value included in the first attribute information according to the preset attribute name, and the flash is turned off according to the first attribute value during photographing.
The first application may call the second attribute value included in the first attribute information through the attribute call interface according to the attribute name. The first application may be an application written in Java, C, or C + +. The attribute calling interface comprises a Java side interface and a C/C + + side interface. When the first application is written by adopting Java language, the first application calls a second attribute value included in the first attribute information through a Java side interface according to the attribute name. When the first application is written by adopting C language or C + + language, the first application calls a second attribute value included in the first attribute information through a C/C + + side interface according to the attribute name.
The preset database is used for storing the corresponding relation between database items and database values. The preset database is a certain database in an operating system, and the operating system can be an Android system or an ios system. For example, assume that a preset database exists in the operating system as shown in table 1, the database identifier of the preset database is data1, and the preset database entry is property _ list. In the preset database, the initial value corresponding to the preset database entry property _ builder may be null or any value, and it is assumed that in this embodiment, the initial value corresponding to the preset database entry property _ builder is 0.
TABLE 1
Database entry Database values
property_listener 0
…… ……
The method comprises the steps that a first application is registered in an operating system of the terminal to monitor preset database items in a preset database. And when registering, correspondingly storing the application identifier of the first application, the database identifier of the preset database and the preset database item in the corresponding relation of the application identifier, the database identifier and the database item.
After the registration is completed, when the database value corresponding to the preset database entry in the preset database is changed, the operating system sends a notification event to the first application. And after receiving the notification event, the first application acquires a database value corresponding to a preset database item from the preset database according to the preset database item, wherein the acquired database value is the changed database value.
For example, assuming that the application identifier of the first application is APP1, when the first application requests the operating system to register and listen to a preset database item property _ holder in the preset database, the application identifier APP1 of the first application, the database identifier data1 of the preset database, and the preset database item property _ holder are correspondingly saved in the corresponding relationship of the application identifier, the database identifier, and the database item as shown in table 2.
TABLE 2
Application identification Database identification Database entry
APP1 data1 property_listener
…… …… ……
Step 202: a first attribute value is received, the first attribute value being used to modify the first attribute information.
The terminal has a second application which needs to modify the second attribute value included in the first attribute information, and the second application is also an application which needs to call the first attribute information. For example, assuming that the first attribute information is used to control whether the first application uses a flash while taking a picture, the second application may be a flash setting application, and the user may modify an attribute value included in the first attribute information through the second application to control whether the first application uses a flash while taking a picture.
The first attribute information corresponds to an attribute service program, and the attribute service program is a system program in an operating system. And when the second application needs to modify the second attribute value included in the first attribute information into the first attribute value, the second application sends the first attribute value to the attribute service program corresponding to the first attribute information through the attribute setting interface (setProperty). Accordingly, the first attribute value may be received by the attribute service program corresponding to the first attribute information.
Step 203: and modifying the second attribute value included in the first attribute information into the first attribute value to obtain second attribute information.
And after receiving the first attribute value through the attribute service program corresponding to the first attribute information, modifying a second attribute value included in the first attribute information corresponding to the attribute service program into the first attribute value to obtain second attribute information.
For example, the first attribute information is [ sys. And when the second application needs to modify the second attribute value boot included in the first attribute information into the first attribute value boot, the second application calls the setProperty interface and sends the first attribute value boot to the attribute service program corresponding to the first attribute information through the setProperty interface.
Receiving a first attribute value bootnew for modifying the first attribute information through an attribute service program corresponding to the first attribute information; then, modifying a second attribute value boot included in first attribute information corresponding to the attribute service program to a first attribute value boot by using the attribute service program corresponding to the first attribute information, wherein the obtained second attribute information is [ sys. [ bootnew ].
Step 204: and providing the second attribute information to the first application through a preset database item in a preset database monitored by the registration of the first application.
Specifically, a database value corresponding to a preset database item in a preset database is updated to be a first database value, the first database value includes modified second attribute information, that is, the second attribute information includes the attribute name and the first attribute value, so that the operating system controls the first application to read the first database value corresponding to the preset database item from the preset database, and thus the first application obtains the attribute name and the first attribute value included in the second attribute information from the first database value.
The updating of the database value corresponding to the preset database entry in the preset database to the first database value may include:
2041: a first database value is generated that includes the name of the attribute and the value of the first attribute.
Wherein the attribute name and the first attribute value are separated by a preset connector in the first database value.
The property _ change method may be invoked to splice the property name and the first property value included in the second property information into a character string, connect the property name and the first property value in the character string with a preset connector, and use the character string as the first database value.
For example, the second attribute information is [ sys. And (4) the preset connector is 'marked', a character string comprising the attribute name sys.
2042: and generating a database modification command carrying a preset database item and a first database value.
Specifically, a database modification command is called from an operating system of the terminal, a preset database item corresponding to the first attribute information is determined, the preset database item and the first database value are used as command parameters of the database modification command, and the database modification command carrying the preset database item and the first database value is generated.
The operating system of the terminal comprises a database modification command of 'setting put system # # # #', and a field '####' for carrying command parameters. In this embodiment, the database modification command is called, and in addition, the preset database item is "property _ list", the first database value is "system.
2043: and updating the database value corresponding to the preset database item in the preset database into a first database value through the database modification command.
The database modification command may be sent to an operating system of the terminal, and the operating system of the terminal receives the database modification command, acquires a corresponding database value from a preset database according to a preset database item carried by the database modification command, and updates the acquired database value to a first database value carried by the database modification command.
When the operating system of the terminal updates the database value corresponding to the preset database item in the preset database, the operating system of the terminal automatically sends a notification event to the application which is registered to monitor the preset database item in the preset database. The applications for registering and monitoring the preset database items in the preset database comprise a first application, so that the first application can receive the notification event, automatically acquire a first database value corresponding to the preset database item from the preset database according to the indication of the notification event, and extract the attribute name and the first attribute value included in the second attribute information from the first database value.
Optionally, the operating system of the terminal may obtain, according to the database identifier of the preset database and the preset database item, an application identifier of an application that registers and monitors the preset database item in the preset database from the correspondence between the application identifier, the database identifier, and the database item, and then send a notification event to an application corresponding to each obtained application identifier.
Among them, it should be noted that: each attribute information in the terminal may correspond to the same preset database entry in the preset database, so that the operating system of the terminal may send a notification event to other applications except the application that needs to call the first attribute information. The other application receives the notification event, acquires a corresponding first database value from a preset database according to the preset database item, and extracts an attribute name and a first attribute value included in the second attribute information from the first database value; and according to the attribute name included in the second attribute information, if the second attribute information is found not to be the attribute information which needs to be called, discarding the second attribute information.
For example, a database modification command "setting put system property _ listenersys. The operating system of the terminal receives the database modification command, acquires a corresponding database value of 0 from the preset database shown in table 1 according to a preset database item "property _ builder" carried by the database modification command, and updates the acquired database value of 0 to a first database value "sys.
TABLE 3
Database entry Database values
property_listener sys.boot.animation=bootnew
…… ……
Then, the operating system of the terminal obtains a corresponding application identifier APP1 from the correspondence between the application identifier, the database identifier, and the database entry shown in table 2 according to the database identifier data1 of the preset database and the preset database entry property _ builder, and sends a notification event to the first application corresponding to the application identifier APP 1.
The first application receives the notification event, obtains a first database value system, boot, animation, which corresponds to the preset database item property _ list from the preset database shown in table 3 according to the indication of the notification event, and extracts the attribute name system, boot, animation and the first attribute value boot from the first database value system, boot, animation, and the first attribute value boot, thereby obtaining the modified second attribute information.
In this embodiment, a callback program may also be set, and the callback program monitors the first attribute information, and sends a notification event to the first application that calls the first attribute information when the first attribute information is modified to the second attribute information.
And after receiving the notification event, the first application calls the modified second attribute information according to the preset attribute name.
Among them, it should be noted that: the callback program may consume no or less system resources while listening to the first attribute information.
In this embodiment, when the first attribute information is modified into the second attribute information, the database value corresponding to the preset database item in the preset database is modified into the first database value, and the first database value includes the second attribute information, so that the operating system notifies the first application registered and monitored for the preset database item in the preset database, so that the first application obtains the first database value corresponding to the preset database item from the preset database, and extracts the second attribute information from the first database value. Therefore, when the first attribute information is modified into the second attribute information, the second attribute information is immediately provided for the first application, and the first application does not need to start an attribute monitoring thread to poll the first attribute information every preset time, so that the resource consumption is reduced, and the instantaneity of the first application for acquiring the modified second attribute information is also improved.
Referring to fig. 3, an embodiment of the present invention provides an attribute information processing apparatus 300, where the apparatus 300 includes:
a receiving module 301, configured to receive a first attribute value, where the first attribute value is used to modify first attribute information, and the first attribute information includes an attribute name and a second attribute value;
a modifying module 302, configured to modify a second attribute value included in the first attribute information into the first attribute value to obtain second attribute information;
a providing module 303, configured to provide the second attribute information to a first application through a preset database item in a preset database monitored by first application registration, where the first application is an application that needs to call the first attribute information.
Optionally, the providing module 303 provides the second attribute information to the first application through a preset database entry in a preset database monitored by registration of the first application, and may include: updating the database value corresponding to the preset database item in the preset database to be a first database value, wherein the first database value comprises modified second attribute information, namely the attribute name and the first attribute value, so that an operating system controls the first application to read the first database value corresponding to the preset database item from the preset database.
Optionally, the providing module 303 updates the database value corresponding to the preset database entry in the preset database to a first database value, including:
generating a first database value comprising the attribute name and the first attribute value; generating a database modification command comprising the preset database entry and the first database value;
and updating the database value corresponding to the preset database item in the preset database into a first database value through the database modification command.
Optionally, the attribute name included in the second attribute information in the first database value and the first attribute value are separated by a preset connector.
Optionally, referring to fig. 4, the apparatus 300 further comprises:
a registering module 304, configured to register, when the first application is started, that the first application monitors the preset database entry in the preset database.
In this embodiment, when the first attribute information is modified to the second attribute information, the second attribute information is provided to the first application through the preset database item in the preset database registered and monitored by the first application, so that the first application does not need to start an attribute monitoring thread, periodically polls the first attribute information, can reduce resource consumption, and can enable the first application to acquire the real-time property of the modified second attribute information.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (4)

1. A method for processing attribute information, the method comprising:
registering a preset database item in a preset database monitored by a first application when the first application is started so as to store an application identifier of the first application, a database identifier of the preset database and the preset database item in a corresponding relation of the application identifier, the database identifier and the database item;
receiving the first attribute value through an attribute service program corresponding to first attribute information, wherein the first attribute value is used for modifying the first attribute information, and the first attribute information comprises an attribute name and a second attribute value; modifying a second attribute value included in the first attribute information into the first attribute value to obtain second attribute information; updating a database value corresponding to the preset database item in the preset database to a first database value, so that the first application reads the first database value corresponding to the preset database item from the preset database, wherein the first database value comprises the modified second attribute information, and the first application is an application needing to call the first attribute information;
monitoring the first attribute information through a callback program, and sending a notification event to the first application calling the first attribute information when the first attribute information is monitored to be modified into the second attribute information, wherein the first application is used for calling the second attribute information according to a preset attribute name when receiving the notification event;
if a plurality of attribute information corresponding to the same preset database item in the preset database exists, sending the notification event to other applications except the first application when the first attribute information is modified into the second attribute information, wherein the other applications are used for acquiring the corresponding first database value from the preset database according to the preset database item and extracting the attribute name and the first attribute value included in the second attribute information from the first database value when receiving the notification event, judging whether the second attribute information is the attribute information needing to be called or not according to the attribute name, and if the second attribute information is determined not to be the attribute information needing to be called, discarding the second attribute information;
updating the database value corresponding to the preset database entry in the preset database to a first database value includes:
generating a first database value comprising the attribute name and the first attribute value; generating a database modification command carrying the preset database item and the first database value; and updating the database value corresponding to the preset database item in the preset database into a first database value through the database modification command.
2. The method of claim 1, wherein the attribute name and the first attribute value included in the second attribute information in the first database value are separated by a preset connector.
3. An attribute information processing apparatus characterized by comprising:
the registration module is used for registering a preset database item in a monitoring preset database of a first application when the first application is started so as to store an application identifier of the first application, a database identifier of the preset database and the preset database item in a corresponding relation of the application identifier, the database identifier and the database item;
a receiving module, configured to receive a first attribute value through an attribute service program corresponding to first attribute information, where the first attribute value is used to modify the first attribute information, and the first attribute information includes an attribute name and a second attribute value;
the modification module is used for modifying a second attribute value included in the first attribute information into the first attribute value to obtain second attribute information;
a providing module, configured to update a database value corresponding to the preset database entry in the preset database to a first database value, so that the first application reads the first database value corresponding to the preset database entry from the preset database, where the first database value includes the modified second attribute information, and the first application is an application that needs to call the first attribute information;
the apparatus also includes means for:
monitoring the first attribute information through a callback program, and sending a notification event to the first application calling the first attribute information when the first attribute information is monitored to be modified into the second attribute information, wherein the first application is used for calling the second attribute information according to a preset attribute name when receiving the notification event;
if a plurality of attribute information corresponding to the same preset database item in the preset database exists, sending the notification event to other applications except the first application when the first attribute information is modified into the second attribute information, wherein the other applications are used for acquiring the corresponding first database value from the preset database according to the preset database item and extracting the attribute name and the first attribute value included in the second attribute information from the first database value when receiving the notification event, judging whether the second attribute information is the attribute information needing to be called or not according to the attribute name, and if the second attribute information is determined not to be the attribute information needing to be called, discarding the second attribute information;
the providing module updates the database value corresponding to the preset database entry in the preset database to a first database value, including:
generating a first database value comprising the attribute name and the first attribute value; generating a database modification command carrying the preset database item and the first database value;
and updating the database value corresponding to the preset database item in the preset database into a first database value through the database modification command.
4. The apparatus of claim 3, wherein the attribute name and the first attribute value included in the second attribute information in the first database value are separated by a preset connector.
CN201710094010.XA 2017-02-21 2017-02-21 Attribute information processing method and device Active CN106850307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710094010.XA CN106850307B (en) 2017-02-21 2017-02-21 Attribute information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710094010.XA CN106850307B (en) 2017-02-21 2017-02-21 Attribute information processing method and device

Publications (2)

Publication Number Publication Date
CN106850307A CN106850307A (en) 2017-06-13
CN106850307B true CN106850307B (en) 2020-07-07

Family

ID=59133731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710094010.XA Active CN106850307B (en) 2017-02-21 2017-02-21 Attribute information processing method and device

Country Status (1)

Country Link
CN (1) CN106850307B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308912B (en) * 2019-06-12 2024-06-18 平安科技(深圳)有限公司 Information processing method and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662995A (en) * 2012-03-15 2012-09-12 北京播思软件技术有限公司 Method for quickly positioning data updating of mobile phone applications
CN103858121A (en) * 2012-10-09 2014-06-11 华为技术有限公司 Method and system for making Web application obtain database change
CN105204949A (en) * 2015-08-27 2015-12-30 威盛电子股份有限公司 Method and device for actively triggering system broadcast

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662995A (en) * 2012-03-15 2012-09-12 北京播思软件技术有限公司 Method for quickly positioning data updating of mobile phone applications
CN103858121A (en) * 2012-10-09 2014-06-11 华为技术有限公司 Method and system for making Web application obtain database change
CN105204949A (en) * 2015-08-27 2015-12-30 威盛电子股份有限公司 Method and device for actively triggering system broadcast

Also Published As

Publication number Publication date
CN106850307A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN105825851B (en) Voice control method and system based on Android system
CN110659121B (en) Task data acquisition method and device, task configuration method and device and server
CN109101335B (en) Extending functionality of a host device
CN110913015A (en) Distributed quick installation method, system and medium for cloud mobile phone APP
WO2021017894A1 (en) Method for using remote sim module, and electronic apparatus
US11449369B2 (en) Broadcast event processing method and device
CN109918268B (en) System compatible method, apparatus, device and computer readable storage medium
CN111435338A (en) Multi-intelligent hardware unified management and control method, platform, system, equipment and storage medium
WO2018018735A1 (en) Method and device for switching customization versions, and mobile terminal
CN115309431B (en) Parameter updating method, readable medium and electronic equipment
US20060009198A1 (en) Apparatus and method for delivering messages to a mobile information terminal
KR20200031900A (en) Apparatus and method for controlling protocol data unit session
CN106850307B (en) Attribute information processing method and device
US9398444B2 (en) Computer-readable recording medium, mobile device, and wireless communication system
CN110865823B (en) Pre-installation application control method, pre-installation application control device and storage medium
CN106293814B (en) Upgrading method and device
CN107425994B (en) Method, terminal and server for realizing remote parameter management
CN107888772B (en) Method, device and storage medium for determining configuration information
CN113190565B (en) Data updating method and device, storage medium and electronic device
US20210182129A1 (en) Method and device for processing an application
CN113760581A (en) MQTT-based method and system for synchronizing attribute information of intelligent terminal
CN106162609B (en) Data pushing method and device
CN112181453A (en) Firmware upgrading method and device and storage medium
CN111200508B (en) Message sending method and gateway
CN108733607B (en) Connection communication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder