CN110309000B - Application update prompting method and terminal equipment - Google Patents

Application update prompting method and terminal equipment Download PDF

Info

Publication number
CN110309000B
CN110309000B CN201810230556.8A CN201810230556A CN110309000B CN 110309000 B CN110309000 B CN 110309000B CN 201810230556 A CN201810230556 A CN 201810230556A CN 110309000 B CN110309000 B CN 110309000B
Authority
CN
China
Prior art keywords
application
interface
current application
database
control
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
CN201810230556.8A
Other languages
Chinese (zh)
Other versions
CN110309000A (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.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group 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 TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN201810230556.8A priority Critical patent/CN110309000B/en
Publication of CN110309000A publication Critical patent/CN110309000A/en
Application granted granted Critical
Publication of CN110309000B publication Critical patent/CN110309000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Abstract

The invention relates to the technical field of computers, and provides an application update prompting method and terminal equipment. The method comprises the following steps: inquiring whether the current application is updated or not in an application database; if the current application is updated, acquiring interface updating information corresponding to the current application from an interface updating database; and sending an interface updating notice according to the interface updating information corresponding to the current application. The method and the device can inform the user of the interface updating situation after the application is updated, so that the user can know the interface after the application is updated, the user operation is convenient, and the user experience is improved.

Description

Application update prompting method and terminal equipment
Technical Field
The invention relates to the technical field of computers, in particular to an application update prompting method and terminal equipment.
Background
At present, the applications of electronic devices are not only diversified, but also frequently updated to meet the user's needs. When an application is updated, an intelligent system of the existing electronic device prompts the contents of the updated repair problem or the related description of the newly added function. However, if the application interface is updated, the user cannot obtain the updated interface information through the prompt content, and the user needs to discover and try the updated interface to operate the updated interface, which causes inconvenience in operation after the application is updated and poor user experience.
Disclosure of Invention
In view of this, embodiments of the present invention provide an application update prompting method and a terminal device, so as to solve a problem that a user needs to discover and try an updated interface to perform an operation after an updated application interface is updated at present.
A first aspect of an embodiment of the present invention provides an application update prompting method, including:
inquiring whether the current application is updated or not in an application database;
if the current application is updated, acquiring interface updating information corresponding to the current application from an interface updating database;
and sending an interface updating notice according to the interface updating information corresponding to the current application.
A second aspect of the embodiments of the present invention provides an application update prompting apparatus, including:
the query module is used for querying whether the current application is updated or not in the application database;
the acquisition module is used for acquiring interface updating information corresponding to the current application from the interface updating database if the current application is updated;
and the sending module is used for sending the interface updating notice according to the interface updating information corresponding to the current application.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the application update prompting method in the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the application update prompting method in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: whether the current application is updated or not can be confirmed by inquiring whether the current application is updated or not in the application database; by acquiring the interface updating information corresponding to the current application from the interface updating database and sending the interface updating notification according to the interface updating information corresponding to the current application, the user can be notified of the interface updating situation after the application is updated, so that the user can know the interface after the application is updated, the user operation is facilitated, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of an application update prompting method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation of acquiring newly added interface information in an application update prompting method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an implementation of finding a new interface in the application update prompting method according to the embodiment of the present invention;
fig. 4 is a flowchart illustrating an implementation of acquiring information of a newly added control in an application update prompting method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an implementation of finding a newly added control in an application update prompting method according to an embodiment of the present invention;
FIG. 6 is a process flow diagram of a method for applying an update prompt in accordance with one embodiment of the present invention;
fig. 7 is a schematic diagram of an application update prompting apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a flowchart of an implementation of an application update prompting method according to an embodiment of the present invention, which is detailed as follows:
in S101, the application database is queried whether the current application is updated.
In this embodiment, the current application is an application program running on the terminal device. The application database is a database including application information of each application on the terminal device. Whether the application is updated or not can be inquired through the application database, and the application information of the previous application can be updated. After the current application is started, the terminal device may perform an inquiry in the application database to determine whether the current application is updated.
Optionally, S101 may include:
acquiring an application package name of a current application;
and inquiring in the application database according to the application package name to determine whether the current application is updated.
In this embodiment, the application and the application package name are in a corresponding relationship, and the currently running application can be determined according to the application package name of the current application. And inquiring application information of the application corresponding to the application package name in the application database, so as to confirm whether the current application is updated.
As an embodiment of the present invention, before S101, the method may further include:
analyzing the application program files of the applications to obtain the application information of the applications, and establishing the application database according to the application information of the applications.
The following describes a process of establishing an application database by taking an Android system as an example, but the establishment method of the application database in this embodiment is not only applicable to the Android system, but also applicable to operating systems of terminal devices such as iOS, Firefox OS, YunOS, BlackBerry, Windows phone, and the like.
In the starting process of the Android system, an application program management service is started, the service is responsible for scanning a specific directory in the system, finding out application program files in the system, namely files taking apk as suffix, analyzing the application program files to obtain relevant information of the application program, and storing the relevant information in member variables of the application program. In this embodiment, by modifying the application management service source code, when the application file is analyzed, each application and the interface name thereof are obtained. The source code file path of the application program file is analyzed as follows:
frameworks/base/services/java/com/android/server/PackageManagerService.java
through a disassembling tool, a smali code of an Android application program can be obtained, and an apktool tool is adopted in the embodiment. The method can disassemble the application program file to obtain resource files such as the XML (Extensible Markup Language) configuration file, the picture and the XML (Extensible Markup Language) code of the application program.
After the application program file is decompiled by using the apktool, a smali file is generated under a decompiled engineering directory, all the decompiled smali files are stored in the smali file, the files can generate corresponding directories according to the hierarchical structure of the program package, and all classes in the program can generate independent smali files under the corresponding directories. For convenience of description, the following are exemplified:
assuming that one Activity name is com.sunxz.test.mainActivlty, com \ sunxz \ test \ directory structures are sequentially generated under a smali directory, and then a mainActivlty.smali file is generated under the directory.
Traversing and analyzing a smali code file carrying an Activity name in a smali folder according to the obtained interface (i.e. Activity) name of the application, taking the above mainactivity.
.class public Lcom/sunxz/test/MainActivlty;
.super Landroid/app/Activlty;
.source"MainActivlty.java"
#virutal methods
.method protected onCreate(Landroid/os/Bundle;)V
.locals 3
.parameter"savedInstanceState"
.prologue
.line 14
invoke-super{p0,p1},Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 15
const/high 16v2,0x7f03
invoke-virtual{p0,v2},Lcom/sunxz/test/MainActivlty;->setContentView(I)V
Where the first row ". class" instruction specifies the class name of the current class. The second line ". super" instruction specifies the parent class of the current class. The third line ". source" instruction specifies the source file name of the current class. # virtual methods is a method declaration instruction, parameter is a parameter instruction, prologue is a code start instruction, and invoke-virtual is a method call instruction.
The last line of code completes the setting of the view of MainActivity, and the layout represented by the method parameters is loaded through the setContentView (I) method. invoke-virtual is an opcode, representing a method call. { p0, v2} is a register for placing parameters. Lcom/sunxz/test/MainActivlty is the type of object that calls the method. setContentView (I) V is the specific method called, where I means the type of parameter is int, and V means the type of return value is void. In the line disassembling code, two registers p0 and v2 respectively store Lcom/example/test/MainActivity and an int type value, the int type value is defined in the code const/high 16v2 and 0x7f03 in the penultimate line, the line code represents that the value of 0x7f03 is assigned to the register v2, and the actively loaded layout file with the ID of 0x7f03 can be determined through the value.
As described above, after the application file is decompiled, the r.class file is obtained, and the r.class file is analyzed to know that the layout file name corresponding to 0x7f03 is activity _ main. So far, it can be known that MainActivity and the layout file loaded by MainActivity are activity _ main, wherein, the activity _ main and xml are located in apk/res/layout/directory.
By the method, each interface of the application and the loaded layout file can be acquired. Each applied interface corresponds to one layout file, elements displayed in each interface are located in the corresponding layout file, and each element corresponds to one control in the layout file. And analyzing each acquired layout file to acquire each control coordinate and control attribute in the layout file. And establishing an application database until the analysis of the layout file corresponding to each interface in each application in the system is finished, and storing the application information of each application. The application information of the application may include, but is not limited to, one or more of an application version number, an application package name, an application interface package name, a layout file name corresponding to the application interface, a total number of layout files corresponding to the application interface, a control name in a layout file corresponding to the application interface, a control coordinate in a layout file corresponding to the application interface, and a control attribute in a layout file corresponding to the application interface.
In S102, if the current application is updated, interface update information corresponding to the current application is obtained from the interface update database.
In this embodiment, the interface update database stores relevant information of interface update in application update, and interface update information of the current application may be acquired from the interface update database. The interface updating information includes, but is not limited to, information of a newly added interface of the current application and/or information of a newly added control on the original interface.
As an embodiment of the present invention, the interface update database includes an added interface list, as shown in fig. 2, before S102, the method may further include:
in S201, application information of the current application is acquired.
In this embodiment, after the application is updated, the terminal device may obtain application information of the updated application.
In S202, according to the obtained application information of the current application and the application information corresponding to the current application in the application database, a newly added interface of the current application is determined, and the information of the newly added interface is stored in the newly added interface list.
In this embodiment, S201 and S202 may be before S101 or after S101, and are not limited herein. The application database stores application information before updating of each application of the terminal equipment. For an updated application, the application information before update corresponding to the application can be found in the application data. The obtained application information of the current application after the update can be compared with the application information of the current application before the update stored in the application database, the newly added interface of the current application is confirmed, and the confirmed information of the newly added interface is stored in a newly added interface list. The newly added interface list is used for storing interface updating information of each application.
As an embodiment of the present invention, the application information of the current application includes a version number of the current application, a number of interfaces, and interface names of each interface, as shown in fig. 3, S202 may include:
in S301, it is determined whether the version number of the current application is consistent with the version number corresponding to the current application in the application database.
In this embodiment, the version number of the current application, the number of interfaces, and the interface name of each interface may be obtained. By comparing the version number of the current application with the version number corresponding to the current application stored in the application database, whether the current application is updated can be judged.
In S302, if the version number of the current application is not consistent with the version number corresponding to the current application in the application database, it is determined whether the number of interfaces of the current application is the same as the number of interfaces corresponding to the current application in the application database.
In this embodiment, if the version number of the current application is consistent with the version number corresponding to the current application in the application database, it is indicated that the current application is not updated, and thus the application update prompting step is ended. If the version number of the current application is not consistent with the version number corresponding to the current application in the application database, the current application is represented to be updated, so that the step of applying an update prompt can be continued, and whether the number of the interfaces of the current application is the same as the number of the interfaces corresponding to the current application in the application database is judged.
In S303, if the number of interfaces of the current application is different from the number of interfaces corresponding to the current application in the application database, searching a corresponding interface in the application database according to the interface name of each interface, and determining a first interface as a newly added interface of the current application; the first interface is an interface which is currently applied in the application database and does not have a corresponding interface.
In this embodiment, if the number of the interfaces of the current application is different from the number of the interfaces corresponding to the current application in the application database, it is represented that the number of the interfaces of the current application before and after the update changes, the corresponding interfaces can be searched in the application database according to the interface names of the interfaces, and the first interface is determined as the newly added interface of the current application. The first interface is an interface which is currently applied in the application database and has no corresponding interface, that is, the interface before update corresponding to the first interface cannot be searched in the application database, so that the first interface can be determined as a newly added interface of the current application.
According to the embodiment, the newly added interface of the current application can be accurately and quickly determined by comparing the version number and the interface number of the current application after updating and the interface name of each interface with the information before updating corresponding to the current application in the application database, so that the accuracy and the rapidity of the interface updating notification are improved.
As an embodiment of the present invention, the interface update database includes an added control list, and the application information of the current application includes control information, as shown in fig. 4, after S302, the method may further include:
in S401, if the number of interfaces currently applied is the same as the number of interfaces corresponding to the current application in the application database, determining a newly added control currently applied according to the information of the control currently applied and the information of the control currently applied in the application database, and storing the information of the newly added control in the newly added control list.
In this embodiment, if the number of the interfaces of the current application is the same as the number of the interfaces corresponding to the current application in the application database, it is represented that no newly added interface appears in the current application update, and therefore, the newly added control is determined. And determining the newly added control of the current application according to the control information of the current application and the control information corresponding to the current application in the application database, and storing the information of the newly added control into a newly added control list. The control information of the current application includes, but is not limited to, control attributes of the respective controls.
As an embodiment of the present invention, the control information of the current application includes the number of controls of each interface and control attributes of each control, where the control attributes include, but are not limited to, one or more of a control identification number, a control width, a control height, control coordinates, and a control type. As shown in fig. 5, the step of determining the newly added control of the current application according to the control information of the current application and the control information corresponding to the current application in the application database in S401 may include:
in S501, whether the number of the controls of the second interface is the same as the number of the controls corresponding to the second interface in the application database is judged; the second interface is an interface which is currently applied to the application database and has a corresponding interface;
in this embodiment, the second interface is an interface in which a corresponding interface exists in the application database among all interfaces of the current application. And finding the corresponding interface before updating in the application data according to the second interface. The current application can have one or more second interfaces, and each second interface can be selected in sequence to find whether each second interface has a newly added control.
In S502, if the number of the controls of the second interface is different from the number of the controls corresponding to the second interface in the application database, searching the corresponding controls in the application database according to the control attributes of each control of the second interface, and determining the first control as a newly added control of the current application; the first control is a control of which no corresponding control exists in the application database for the second interface.
In this embodiment, if the number of the controls of the second interface is different from the number of the controls corresponding to the second interface in the application database, it is represented that the second interface may have a newly added control, a corresponding control may be searched in the application database according to the control attribute of each control of the second interface, and the first control is determined as the newly added control of the current application. The first control is a control of which the second interface does not have a corresponding control in the application database, that is, a control before update corresponding to the first control cannot be found in the application database, so that the first control can be determined as a newly added control of the current application.
According to the embodiment, the number of the controls of each current application interface and the control attributes of each control are compared with the control information corresponding to the current application in the application database, so that the newly added control of the current application can be accurately and quickly determined, and the accuracy and the rapidity of the interface updating notification are improved.
In S103, an interface update notification is sent according to the interface update information corresponding to the current application.
In this embodiment, the interface update information includes, but is not limited to, information of the newly added interface and/or information of the newly added control. The interface update notification mode can be pop-up window notification, voice notification, short message notification, and the like. For example, a pop-up window may be popped up to notify the user when the current application interface is displayed on the screen of the terminal device, the content of the pop-up window may be in a form of combining pictures with characters, and the pictures may display a newly added interface and an interface where a newly added control is located.
The embodiment of the invention can enable the user to know the newly added interface and/or the newly added control after the application is updated by sending the interface updating notice, thereby facilitating the user to be familiar with the updated application interface and avoiding the inconvenience in operation caused by strange interface.
According to the embodiment of the invention, whether the current application is updated or not is inquired in the application database, so that whether the current application is updated or not can be confirmed; by acquiring the interface updating information corresponding to the current application from the interface updating database and sending the interface updating notification according to the interface updating information corresponding to the current application, the user can be notified of the interface updating situation after the application is updated, so that the user can know the interface after the application is updated, the user operation is facilitated, and the user experience is improved.
As an embodiment of the present invention, the application update prompting method may further include:
acquiring the state of an interface updating notification switch;
and determining whether to send the interface updating notification according to the state of the interface updating notification switch.
In this embodiment, an interface update notification switch may be added to the terminal device system setting, and a user may control the opening and closing of the interface update notification by setting the opening and closing of the interface update notification switch. If the interface updating notification switch is set to be on, an interface updating notification is sent when the application is updated, so that a user can know the updated interface of the application through the interface updating notification; and setting the interface updating notification switch to be closed, and then not sending the interface updating notification when the application is updated.
Optionally, an interface update notification switch identifier may be added to the system to save the state of the interface update notification switch. Wherein the system sets the source code path to be
frameworks/base/core/java/android/provider/Settings.java
Pseudo code for changing the state of the interface update notification switch by a user setting the interface update notification switch is exemplified as follows:
obtaining the state of the user setting interface update notification switch
if (user set to open)
Setting the flag to true
else
Setting the flag to false
As an embodiment of the present invention, when the system is started, the terminal device may obtain whether the application is updated by comparing the interface information of the application stored in the application database with the interface information of the current application, and if the application is updated, obtain the information of the application interface update and the information of the newly added control, and store the information of the application interface update and the information of the newly added control in the preset newly added interface list and the newly added control list, respectively. And the information in the newly added control list comprises the information of the interface where the newly added control is located.
After the application is started, whether the application is updated or not is inquired from the application database according to the name of the application package, if yes, the information of the newly added interface of the application and the information of the newly added control of the application interface are obtained from the newly added interface list and the newly added control list, and the obtained information can be popped up through notification to prompt a user.
Through the embodiment, when a new interface is applied or an interface has a new control, the user can be notified at the first time, so that the user experience is improved, the situation that the user needs to manually find the newly added interface of the application or search for the newly added control in the interface of the newly added control when the new interface is applied or the interface has the new control is avoided, the user can be familiar with the application interface as soon as possible, and the user operation is facilitated.
As an embodiment of the present invention, acquiring interface update information corresponding to a current application from an interface update database may include the following steps:
A. and acquiring the current application version number.
B. And querying an application database according to the name of the currently applied application package, and acquiring the version number of the application stored in the application database.
C. Comparing the version numbers obtained in the step A and the step B, and if the version numbers are the same, exiting; otherwise, executing step D.
D. And querying an application database according to the name of the currently applied application package, and acquiring the number of the interfaces of the application stored in the application database.
E. And acquiring the number of the interfaces of the current application.
F. Comparing the number of the interfaces obtained in the step D and the step E, and if the number of the interfaces obtained in the step E is different, executing the step G; otherwise, executing step I.
G. And acquiring interface names of all interfaces of the current application.
H. Inquiring an application database according to the name of the currently applied application package and the name of the interface, if the interface name of a certain interface is not found in the application database, the interface is a newly added interface, and storing the information of the interface into a newly added interface list; and if the application is found, executing the step G until all the interfaces of the application are traversed.
I. And acquiring a newly added control list.
Wherein, step I may include:
ia., acquiring the number of controls of the layout file corresponding to the storage interface of the application database.
Ia., acquiring the number of controls of the layout file corresponding to the same interface of the current application.
Ic., comparing the number of the acquired controls in the steps Ia and Ib, and if the numbers are the same, exiting; and if not, executing the step Id.
And Id, acquiring control attributes of each control in the layout file corresponding to the storage interface of the application database. The control properties include, but are not limited to, one or more of a control identification code, a control width, a control height, control coordinates, and a control type.
Ie. obtaining the control attribute of each control in the layout file corresponding to the same interface in the current application.
If., acquiring a control from the step Ie, if the control is not found in the acquired controls in the step Id according to the control attribute, the control is a newly added control, storing the information of the control into a newly added control list, and acquiring the attribute of the newly added control of each newly added control for the interface of the interface; and if the control is found in the controls acquired in the step Id, continuing to execute the step until all the controls in the step Ie are traversed.
Ig., jumping to execute step Ia until the layout files corresponding to all the interfaces of the current application are traversed.
As an embodiment of the present invention, as shown in fig. 6, the method for applying the update prompt may include:
s601, start.
And S602, starting the application.
S603, acquiring the name of the application package of the current application.
S604, inquiring whether the application is updated from the application database according to the application package name, and if not, jumping to S610; otherwise, S605 is executed.
S605, whether the state of the interface updating notification switch is on or not is judged, and if the state is off, the process jumps to S610; otherwise, S606 is performed.
And S606, acquiring a newly added interface list of the application.
S607, acquiring the newly added control list of the application. And the new intelligent control list comprises the relevant information of the interface of the newly added control contained in the application.
And S608, popping up a notice of the newly added interface list. The specific notification mode can be set by self according to actual conditions.
And S609, popping up a notice of the newly added control list. The specific notification mode can be set by self according to actual conditions.
And S610, ending.
According to the embodiment of the invention, whether the current application is updated or not is inquired in the application database, so that whether the current application is updated or not can be confirmed; by acquiring the interface updating information corresponding to the current application from the interface updating database and sending the interface updating notification according to the interface updating information corresponding to the current application, the user can be notified of the interface updating situation after the application is updated, so that the user can know the interface after the application is updated, the user operation is facilitated, and the user experience is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 7 is a schematic diagram of an application update prompting apparatus according to an embodiment of the present invention, which corresponds to the application update prompting method described in the foregoing embodiment. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 7, the apparatus includes a query module 71, an acquisition module 72, and a transmission module 73.
A query module 71, configured to query the application database whether the current application is updated.
The obtaining module 72 is configured to obtain interface update information corresponding to the current application from the interface update database if the current application is updated.
And a sending module 73, configured to send an interface update notification according to the interface update information corresponding to the current application.
Optionally, the apparatus further comprises a parsing module. The parsing module is configured to:
analyzing the application program files of the applications to obtain the application information of the applications, and establishing the application database according to the application information of the applications.
Optionally, the interface update database includes a list of newly added interfaces, and the apparatus further includes a processing module, where the processing module is configured to:
acquiring application information of a current application;
and determining a newly added interface of the current application according to the obtained application information of the current application and the application information corresponding to the current application in the application database, and storing the information of the newly added interface into the newly added interface list.
Optionally, the application information of the current application includes a version number of the current application, the number of interfaces, and interface names of the interfaces; the processing module is used for:
judging whether the version number of the current application is consistent with the version number corresponding to the current application in the application database;
if the version number of the current application is not consistent with the version number corresponding to the current application in the application database, judging whether the number of interfaces of the current application is the same as the number of interfaces corresponding to the current application in the application database;
if the number of the interfaces of the current application is different from the number of the interfaces corresponding to the current application in the application database, searching the corresponding interfaces in the application database according to the interface names of the interfaces, and determining a first interface as a newly added interface of the current application; the first interface is an interface which is currently applied in the application database and does not have a corresponding interface.
Optionally, the interface update database includes a newly added control list, the application information of the current application includes control information, and the processing module is configured to:
and if the number of the interfaces of the current application is the same as that of the interfaces corresponding to the current application in the application database, determining a newly added control of the current application according to the control information of the current application and the control information corresponding to the current application in the application database, and storing the information of the newly added control into the newly added control list.
Optionally, the currently applied control information includes the number of controls of each interface and the control attributes of each control; the processing module is used for:
judging whether the number of the controls of the second interface is the same as the number of the controls corresponding to the second interface in the application database; the second interface is an interface which is currently applied to the application database and has a corresponding interface;
if the number of the controls of the second interface is different from the number of the controls corresponding to the second interface in an application database, searching the corresponding controls in the application database according to the control attributes of the controls of the second interface, and determining the first control as a newly added control currently applied; the first control is a control of which no corresponding control exists in the application database for the second interface.
Optionally, the apparatus further comprises a state setting module, wherein the state setting module is configured to:
acquiring the state of an interface updating notification switch;
and determining whether to send the interface updating notification according to the state of the interface updating notification switch.
According to the embodiment of the invention, whether the current application is updated or not is inquired in the application database, so that whether the current application is updated or not can be confirmed; by acquiring the interface updating information corresponding to the current application from the interface updating database and sending the interface updating notification according to the interface updating information corresponding to the current application, the user can be notified of the interface updating situation after the application is updated, so that the user can know the interface after the application is updated, the user operation is facilitated, and the user experience is improved.
Fig. 8 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 8, the terminal device 8 of this embodiment includes: a processor 80, a memory 81 and a computer program 82, e.g. a program, stored in said memory 81 and executable on said processor 80. The processor 80, when executing the computer program 82, implements the steps in the various method embodiments described above, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 71 to 73 shown in fig. 7.
Illustratively, the computer program 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 82 in the terminal device 8. For example, the computer program 82 may be divided into a query module, an acquisition module, and a sending module, and each module specifically functions as follows:
the query module is used for querying whether the current application is updated or not in the application database;
the acquisition module is used for acquiring interface updating information corresponding to the current application from the interface updating database if the current application is updated;
and the sending module is used for sending the interface updating notice according to the interface updating information corresponding to the current application.
The terminal device 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a terminal device 8 and does not constitute a limitation of terminal device 8 and may include more or fewer components than shown, or some components may be combined, or different components, for example, the terminal device may also include an input-output device, a network access device, a bus, a display, etc.
The Processor 80 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. The memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used for storing the computer program and other programs and data required by the terminal device. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. An application update prompting method is characterized by comprising the following steps:
analyzing the application program files of all applications to obtain application information of all applications, and establishing an application database according to the application information of all applications; the application information comprises one or more of a name of a layout file corresponding to the application interface, the total number of the layout files corresponding to the application interface, a name of a control in the layout file corresponding to the application interface, coordinates of the control in the layout file corresponding to the application interface and attributes of the control in the layout file corresponding to the application interface;
inquiring whether the current application is updated or not in an application database;
if the current application is updated, acquiring interface updating information corresponding to the current application from an interface updating database;
and sending an interface updating notice according to the interface updating information corresponding to the current application.
2. The method for prompting application update according to claim 1, wherein the interface update database includes an added interface list, and before the interface update information corresponding to the current application is acquired from the interface update database if the current application is updated, the method further includes:
acquiring application information of a current application;
and determining a newly added interface of the current application according to the obtained application information of the current application and the application information corresponding to the current application in the application database, and storing the information of the newly added interface into the newly added interface list.
3. The application update prompting method according to claim 2, wherein the application information of the current application includes a version number of the current application, the number of interfaces, and interface names of the respective interfaces; the determining of the newly added interface of the current application according to the obtained application information of the current application and the application information corresponding to the current application in the application database includes:
judging whether the version number of the current application is consistent with the version number corresponding to the current application in the application database;
if the version number of the current application is not consistent with the version number corresponding to the current application in the application database, judging whether the number of interfaces of the current application is the same as the number of interfaces corresponding to the current application in the application database;
if the number of the interfaces of the current application is different from the number of the interfaces corresponding to the current application in the application database, searching the corresponding interfaces in the application database according to the interface names of the interfaces, and determining a first interface as a newly added interface of the current application; the first interface is an interface which is currently applied in the application database and does not have a corresponding interface.
4. The application update prompting method according to claim 3, wherein the interface update database includes an added control list, the application information of the current application includes control information, and after the determining whether the number of interfaces of the current application is the same as the number of interfaces corresponding to the current application in the application database, the method further includes:
and if the number of the interfaces of the current application is the same as that of the interfaces corresponding to the current application in the application database, determining a newly added control of the current application according to the control information of the current application and the control information corresponding to the current application in the application database, and storing the information of the newly added control into the newly added control list.
5. The application update prompting method according to claim 4, wherein the control information of the current application includes the number of controls of each interface and the control attributes of each control; the determining the newly added control of the current application according to the control information of the current application and the control information corresponding to the current application in the application database comprises:
judging whether the number of the controls of the second interface is the same as the number of the controls corresponding to the second interface in the application database; the second interface is an interface which is currently applied to the application database and has a corresponding interface;
if the number of the controls of the second interface is different from the number of the controls corresponding to the second interface in an application database, searching the corresponding controls in the application database according to the control attributes of the controls of the second interface, and determining the first control as a newly added control currently applied; the first control is a control of which no corresponding control exists in the application database for the second interface.
6. The application update prompting method of any one of claims 1 to 5, further comprising
Acquiring the state of an interface updating notification switch;
and determining whether to send the interface updating notification according to the state of the interface updating notification switch.
7. An application update prompting device is characterized in that,
the query module is used for querying whether the current application is updated or not in the application database;
the acquisition module is used for acquiring interface updating information corresponding to the current application from the interface updating database if the current application is updated;
the sending module is used for sending an interface updating notice according to the interface updating information corresponding to the current application;
the analysis module is used for analyzing the application program files of all the applications to obtain the application information of all the applications and establishing the application database according to the application information of all the applications; the application information comprises one or more of the name of the layout file corresponding to the application interface, the total number of the layout files corresponding to the application interface, the name of the control in the layout file corresponding to the application interface, the coordinates of the control in the layout file corresponding to the application interface and the properties of the control in the layout file corresponding to the application interface.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201810230556.8A 2018-03-20 2018-03-20 Application update prompting method and terminal equipment Active CN110309000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810230556.8A CN110309000B (en) 2018-03-20 2018-03-20 Application update prompting method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810230556.8A CN110309000B (en) 2018-03-20 2018-03-20 Application update prompting method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110309000A CN110309000A (en) 2019-10-08
CN110309000B true CN110309000B (en) 2021-10-01

Family

ID=68073429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810230556.8A Active CN110309000B (en) 2018-03-20 2018-03-20 Application update prompting method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110309000B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825726B (en) * 2019-10-31 2021-06-04 支付宝(杭州)信息技术有限公司 Block chain data detection method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6210884B2 (en) * 2014-01-10 2017-10-11 Kddi株式会社 Operation support apparatus, operation support method, and operation support program
CN107341022A (en) * 2017-08-10 2017-11-10 深圳市中青合创传媒科技有限公司 Based on the method hidden according to mode to cell phone application user progress teaching guidance

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686200B (en) * 2015-11-09 2020-01-31 五八同城信息技术有限公司 Mobile application program updating method, mobile terminal and updating system
CN106250122B (en) * 2016-07-22 2021-11-26 腾讯科技(深圳)有限公司 Information prompting method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6210884B2 (en) * 2014-01-10 2017-10-11 Kddi株式会社 Operation support apparatus, operation support method, and operation support program
CN107341022A (en) * 2017-08-10 2017-11-10 深圳市中青合创传媒科技有限公司 Based on the method hidden according to mode to cell phone application user progress teaching guidance

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于Android平台的手机防盗系统的设计与实现";盛泳潘;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140515(第05期);第I138-96页 *

Also Published As

Publication number Publication date
CN110309000A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
US10712915B2 (en) Information presentation using a client on a terminal
CN110688232B (en) Application program calling method, terminal equipment and computer readable storage medium
CN107809383B (en) MVC-based path mapping method and device
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN109995805B (en) Intelligent robot management method, terminal device and medium
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
CN112632420A (en) Interface skipping method and device, storage medium and electronic device
CN109492181A (en) Method for page jump, device, computer equipment and storage medium
CN110046100B (en) Packet testing method, electronic device and medium
CN113849199B (en) Method and device for cross-system installation of application, electronic equipment and storage medium
CN111243580B (en) Voice control method, device and computer readable storage medium
CN110727469B (en) Terminal device control method and device, application program configuration file packaging method, terminal device and computer readable storage medium
CN110309000B (en) Application update prompting method and terminal equipment
CN111385661B (en) Method, device, terminal and storage medium for voice control of full screen playing
CN114564856B (en) Data sharing method based on FMEA and electronic equipment
CN111158777A (en) Component calling method and device and computer readable storage medium
CN109725799B (en) Advertisement display control method and device and intelligent terminal
CN114201399A (en) Method, device, equipment and storage medium for identifying influence range of program change
CN113377458A (en) Plug-in management method and device, electronic equipment and storage medium
CN109299960B (en) Method and device for monitoring advertisement, computer readable storage medium and terminal equipment
CN113472611A (en) Method and device for acquiring WiFi signal strength and readable storage medium
CN105511932A (en) Application unloading method and device
CN111552537A (en) Theme switching method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 516006 TCL science and technology building, No. 17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL Corp.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant