CN106844074A - The method and apparatus of more new application - Google Patents

The method and apparatus of more new application Download PDF

Info

Publication number
CN106844074A
CN106844074A CN201510881639.XA CN201510881639A CN106844074A CN 106844074 A CN106844074 A CN 106844074A CN 201510881639 A CN201510881639 A CN 201510881639A CN 106844074 A CN106844074 A CN 106844074A
Authority
CN
China
Prior art keywords
application program
address information
crash
installation package
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510881639.XA
Other languages
Chinese (zh)
Inventor
季虹
张伟
谢芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510881639.XA priority Critical patent/CN106844074A/en
Publication of CN106844074A publication Critical patent/CN106844074A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is directed to a kind of method and apparatus of more new application, belong to field of terminal technology.The method includes:When detecting application crash, the address information of the installation kit for downloading the application program is obtained;The address information is shown, and receives the more new command of user's submission;According to the more new command and the address information, the application program is updated.The device includes:First acquisition module, display module, receiver module and update module.The efficiency of more new application can be improved in the disclosure.

Description

Method and device for updating application program
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for updating an application.
Background
With the development of terminal technology, more and more applications are installed on a terminal, however, some applications may have a bug, which may cause the applications to crash during the operation process, and at this time, a user needs to update the applications.
At present, when an application program crashes or the like in the running process, a user exits the application program, then searches for a new version of the application program from a server, and downloads and installs the new version of the application program; or the user waits for the server to push the new version of the application program, and downloads and installs the new version of the application program.
BRIEF SUMMARY OF THE PRESENT DISCLOSURE
To overcome the problems of the related art, the present disclosure provides a method and apparatus for updating an application.
In one aspect, the present disclosure provides a method for updating an application according to a first aspect of an embodiment of the present disclosure, including:
when the crash of the application program is detected, acquiring address information of an installation package for downloading the application program;
displaying the address information and receiving an updating instruction submitted by a user;
and updating the application program according to the updating instruction and the address information.
Optionally, the method further includes:
acquiring crash information of the application crash, wherein the crash information comprises crash times and crash duration;
and if the number of times of collapse reaches a preset number of times of collapse and the collapse time length reaches a preset collapse time length, executing the step of acquiring the address information of the installation package for downloading the application program.
Optionally, the obtaining address information of the installation package for downloading the application program includes:
acquiring the version number of an installation package of the application program installed on the terminal;
sending the version number to a server, wherein the version number is used for the server to acquire address information of an installation package downloading the latest version of the application program according to the version number;
and receiving the address information which is sent by the server and used for downloading the installation package of the latest version.
Optionally, the obtaining address information of the installation package for downloading the application program includes:
analyzing the installation package of the application program installed in the terminal, and acquiring the address information for downloading the installation package from the installation package.
Optionally, the displaying the address information includes:
displaying a graphic code containing the address information; or,
and displaying an updating interface containing the address information.
In another aspect, the present disclosure provides an apparatus for updating an application according to a second aspect of embodiments of the present disclosure, including:
the first acquisition module is used for acquiring the address information of the installation package for downloading the application program when the application program is detected to be crashed;
the display module is used for displaying the address information;
the receiving module is used for receiving an updating instruction submitted by a user;
and the updating module is used for updating the application program according to the updating instruction and the address information.
Optionally, the apparatus further comprises:
the second obtaining module is used for obtaining crash information of the application program crash, and the crash information comprises crash times and crash duration;
and if the number of times of collapse reaches a preset number of times of collapse and the collapse time reaches a preset collapse time, executing the first obtaining module to obtain the address information of the installation package for downloading the application program.
Optionally, the first obtaining module includes:
a first obtaining unit, configured to obtain a version number of an installation package of the application installed by a terminal;
the sending unit is used for sending the version number to a server, and the version number is used for the server to obtain the address information of the installation package downloading the latest version of the application program according to the version number;
and the receiving unit is used for receiving the address information which is sent by the server and used for downloading the installation package with the latest version.
Optionally, the first obtaining module includes:
the analysis unit is used for analyzing the installation package of the application program installed in the terminal;
and the second acquisition unit is used for acquiring the address information for downloading the installation package from the installation package.
Optionally, the display module is configured to display a graphic code including the address information; or,
and the display module is used for displaying the update interface containing the address information.
Some benefits of the present disclosure may include: when the crash of the application program is detected, acquiring address information of an installation package for downloading the application program; displaying the address information and receiving an updating instruction submitted by a user; and updating the application program according to the updating instruction and the address information. Therefore, when the application program is detected to be crashed, the address information of the installation package for downloading the application program is provided for the user, and the user can update the application program by directly clicking the address information, so that the efficiency of updating the application program is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, are incorporated in and constitute a part of this application, and are not intended to limit the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method of updating an application in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of updating an application in accordance with an exemplary embodiment;
FIG. 3-1 is a block diagram illustrating an apparatus for updating an application, according to an example embodiment;
FIG. 3-2 is an apparatus block diagram illustrating another update application in accordance with an illustrative embodiment;
3-3 are apparatus block diagrams illustrating a first acquisition module according to an exemplary embodiment;
3-4 are apparatus block diagrams illustrating another first acquisition module according to an example embodiment;
fig. 4 is a block diagram of an apparatus (general structure of a terminal) shown according to an exemplary embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, the present disclosure will be described in further detail below with reference to the embodiments and the accompanying drawings. The exemplary embodiments and descriptions of the present disclosure are provided herein for illustration of the present disclosure, but not for limitation of the present disclosure.
Fig. 1 is a flowchart illustrating a method of updating an application according to an exemplary embodiment, and the method of updating an application, as shown in fig. 1, is used in a terminal and includes the following steps.
In step S101, when the application crash is detected, address information of an installation package for downloading the application is acquired.
In step S102, the address information is displayed, and an update instruction submitted by the user is received.
In step S103, the application program is updated according to the update instruction and the address information.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the crash of the application program is detected, acquiring address information of an installation package for downloading the application program; displaying the address information and receiving an updating instruction submitted by a user; and updating the application program according to the updating instruction and the address information. Therefore, when the application program is detected to be crashed, the address information of the installation package for downloading the application program is provided for the user, and the user can update the application program by directly clicking the address information, so that the efficiency of updating the application program is improved.
Fig. 2 is a flowchart illustrating a method of updating an application according to an exemplary embodiment, and the method of updating an application, as shown in fig. 2, is used in a terminal and includes the following steps.
In step S201, when the application crash is detected, crash information of the application crash is obtained, where the crash information includes a number of times of crash and a crash duration.
The application program is an application program currently operated by the terminal; the terminal detects the currently running application program in real time, when the situation that the application program is operated by a user but has no response is detected, the application program is determined to be crashed, and crash information of the application program crash is obtained, wherein the crash information at least comprises crash times and crash duration.
The step of obtaining the number of crashes may be:
and acquiring the stored crash times, and adding one to the stored crash times to obtain the current crash times of the application program.
The crash duration may be the current crash duration or the total historical crash duration. When the crash duration is the current crash duration, the step of obtaining the current crash duration may be:
and acquiring first time when the user operates the application program, responding to second time of the operation by the application program, calculating the time difference between the second time and the first time, and determining the time difference as the current collapse time length.
When the total crash duration is the total historical crash duration, the step of obtaining the total historical crash duration may be:
and acquiring the current collapse time and the stored historical collapse time, calculating the sum of the current collapse time and the historical collapse time, and determining the sum of the time as the total historical collapse time.
It should be noted that, when the application program crashes, the application program may not respond to the operation of the user for a long time, and in order to improve the update efficiency, the terminal may not obtain the crash information of the application program until the application program responds to the operation, but obtain the crash information of the application program if no response of the application program is received within a preset response duration after the first time when the user operates the application program, and determine that the current crash duration is the preset response duration.
The crash information may include, in addition to the number of crashes and the length of time of the crash, the version number of the installation package of the application program that has been installed by the terminal and/or the current network environment. The current network environment includes a wireless network environment and a cellular mobile network environment.
The step of obtaining the version number of the installation package of the application installed in the terminal may be:
the version number of the installation package is stored in the installation package of the application program installed in the terminal, the installation package is analyzed, and the version number of the installation package is obtained from the installation package.
When the user operates the application program and the application program has no response, the user may repeatedly operate the application program, and at the moment, the terminal obtains the operation times of the application program which is currently operated by the user without response; the crash information may also include the number of operations the user is currently unresponsive to operate the application.
The terminal can be any terminal with an installed application program; for example, the terminal is a mobile phone, a tablet computer, a computer, or the like, which has an installed application program. The preset response time length can be set and changed according to needs, and in the embodiment of the disclosure, the preset response time length is not specifically limited; for example, the preset response time period may be 8 seconds, 10 seconds, or the like.
After obtaining the crash information of the application crash, step S202 is executed to determine whether the crash information satisfies a preset updating condition.
In step S202, if the number of times of breakdown reaches the preset number of times of breakdown and the breakdown duration reaches the preset breakdown duration, the address information of the installation package for downloading the application program is obtained.
Determining whether the crash information meets a preset updating condition or not according to the crash information; and when the crash information meets a preset updating condition, determining that the application program needs to be updated, and acquiring address information of an installation package for downloading the application program.
The crash information at least comprises the number of times of crash and the duration of crash, and can also comprise the version number of the installation package of the application program installed by the terminal and/or the current network environment.
When the crash information includes the number of times of crash and the crash duration, the preset update condition may be whether the number of times of crash reaches the preset number of times of crash and whether the crash duration reaches the preset crash duration; correspondingly, determining whether the crash information satisfies the preset update condition may be:
determining whether the collapse times reach preset collapse times and whether the collapse time reaches preset collapse time; and if the collapse times reach the preset collapse times and the collapse time reaches the preset collapse time, determining that the collapse information meets the preset updating condition.
Optionally, if the number of times of collapse does not reach the preset number of times of collapse, or the length of collapse does not reach the preset length of collapse, it is determined that the collapse information does not satisfy the preset updating condition.
When the crash information includes the number of times of crash and the crash duration, and also includes the version number of the installation package of the application program installed by the terminal, the preset update condition may be that the number of times of crash reaches the preset number of times of crash, the crash duration reaches the preset crash duration, and the version number is not the version number of the latest version; the step of determining whether the crash information satisfies the preset updating condition may be:
determining whether the collapse frequency reaches a preset collapse frequency, whether the collapse time reaches a preset collapse time, and whether the version number is the version number of the latest version; and if the number of times of breakdown reaches the preset number of times of breakdown and the breakdown time length reaches the preset breakdown time length, and the version number is not the version number of the latest version, determining that the breakdown information meets the preset updating condition.
Optionally, if the number of times of crash does not reach the preset number of times of crash, or the crash duration does not reach the preset crash duration, or the version number is the version number of the latest version, it is determined that the crash information does not satisfy the preset update condition.
When the crash information includes the current network environment in addition to the crash times and the crash duration, the preset update condition may be that the crash times reaches the preset crash times, the crash duration reaches the preset crash duration, and the current network environment is the wireless network environment; the step of determining whether the crash information satisfies the preset updating condition may be:
determining whether the collapse frequency reaches a preset collapse frequency, whether the collapse time reaches a preset collapse time, and whether the current network environment is a wireless network environment; and if the collapse times reach the preset collapse times, the collapse time reaches the preset collapse time, and the current network environment is the wireless network environment, determining that the collapse information meets the preset updating condition.
Optionally, if the number of times of collapse does not reach the preset number of times of collapse, or the collapse time does not reach the preset collapse time, or the current network environment is not the wireless network environment, it is determined that the collapse information does not satisfy the preset update condition.
When the crash information includes, in addition to the crash times and the crash duration, the version number of the installation package of the application installed by the terminal and the current network environment, the preset update condition may be that the crash times reaches the preset crash times, the crash duration reaches the preset crash duration, the version number is not the version number of the latest version, and the current network environment is a wireless network environment; the step of determining whether the crash information satisfies the preset updating condition may be:
determining whether the collapse frequency reaches a preset collapse frequency, whether the collapse time reaches a preset collapse time, whether the version number is the version number of the latest version, and whether the current network environment is the wireless network environment; and if the number of times of breakdown reaches the preset number of times of breakdown, the breakdown time reaches the preset breakdown time, the version number is not the version number of the latest version, and the current network environment is the wireless network environment, determining that the breakdown information meets the preset updating condition.
Optionally, if the number of times of crash does not reach the preset number of times of crash, or the crash duration does not reach the preset crash duration, or the version number is the version number of the latest version, or the current network environment is not the wireless network environment, it is determined that the crash information does not satisfy the preset update condition.
Optionally, the crash information includes a number of times of crash and a crash duration, and further includes a version number of an installation package of the application installed by the terminal and/or outside the current network environment, and the crash information further includes that when the user does not respond to the number of operations of the application currently, the preset update condition further includes whether the number of operations reaches a preset number of operations. The step of determining whether the crash information satisfies a preset update condition further includes:
and determining whether the operation times of the application program operated by the user without response currently reaches the preset operation times, and if the operation times reaches the preset operation times, determining that the crash information meets the preset updating condition.
Optionally, if the operation frequency does not reach the preset operation frequency, it is determined that the crash information does not meet the preset updating condition.
It should be noted that the preset number of times of collapse, the preset length of time of collapse, and the preset number of operations may be set and changed as needed, and in the embodiment of the present disclosure, the preset number of times of collapse, the preset length of time of collapse, and the preset number of operations are not specifically limited; for example, the preset number of times of collapse may be 3 times, the preset collapse time may be 20 seconds, the preset number of operations may be 8 times, and the like.
Optionally, when it is determined that the crash information does not satisfy the preset update condition, the operation response of the application program is continuously waited, or the application program is directly exited.
Optionally, when the current network environment is not the wireless network environment and the crash information does not satisfy the preset updating condition, the terminal may wait until the current network environment is the wireless network environment, and update the application program, including:
the terminal detects the network environment of the terminal in real time, determines that the application program needs to be updated when the current network environment is detected to be the wireless network environment, and acquires the address information of the installation package for downloading the application program.
Optionally, when the crash information does not satisfy the preset update condition because the current network environment is not the wireless network environment, some users may want to update the application program through the mobile cellular network; before downloading the address information of the installation package of the application program, the terminal can also display a prompt page, wherein the prompt page at least comprises a confirmation button, and the confirmation button is used for triggering a confirmation instruction to the terminal; and the terminal acquires a confirmation instruction triggered by the user and acquires the address information of the installation package for downloading the application program according to the confirmation instruction.
Optionally, the prompt page may also prompt that the application needs to be updated, and the prompt page includes a confirmation button and the crash information; the crash information is used to prompt the user that the application needs to be updated.
When the developer of the application program develops the installation package of the application program, the address information of the installation package for downloading the application program is stored in the installation package of the application program, and the step of obtaining the address information of the installation package for downloading the application program may be:
analyzing the installation package of the application program installed in the terminal, and acquiring the address information for downloading the installation package from the installation package.
In this step, in order to obtain the installation package of the latest version of the application program, the terminal may directly obtain the address information of the installation package of the latest version of the application program from the server without obtaining the address information of the installation package of the application program from the installation package of the application program; correspondingly, the step of obtaining the address information of the installation package for downloading the application program can be realized by the following steps (1) to (3), and comprises the following steps:
(1): acquiring the version number of an installation package of the application program installed in the terminal;
the version number of the installation package is stored in the installation package of the application program installed in the terminal, the installation package is analyzed, and the version number of the installation package is obtained from the installation package.
(2): sending the version number to a server, wherein the version number is used for the server to acquire the address information of the installation package for downloading the latest version of the application program according to the version number;
optionally, the terminal may further send the identification information of the application program to the server; and the server receives the identification information and the version number of the application program sent by the terminal, and acquires the address information of the installation package downloading the latest version of the application program according to the identification information and the version number of the application program.
And (3) the server sends the address information for downloading the installation package of the latest version to the terminal and executes the step.
(3): and receiving address information for downloading the installation package of the latest version sent by the server.
In step S203, the address information is displayed, and an update instruction submitted by the user is received.
The step of displaying the address information may be:
displaying the graphic code containing the address information; or displaying an update interface containing the address information.
The graphic code can be a two-dimensional code or a two-dimensional bar code and the like; the terminal displays a two-dimensional code containing the address information or displays a two-dimensional barcode containing the address information.
When the terminal displays the graphic code containing the address information and the user wants to update the application program, the user can press the graphic code for a long time to submit an update instruction to the terminal; and when the terminal detects that the user presses the graphic code and the pressing duration reaches the preset pressing duration, determining that the user submits an updating instruction, and acquiring the updating instruction submitted by the user at the moment.
When the terminal displays an updating interface containing the address information and a user wants to update the application program, the user can click the updating interface to submit an updating instruction to the terminal; when the terminal detects that the user clicks the graphic code, the terminal determines that the user submits the updating instruction, and at the moment, the terminal acquires the updating instruction submitted by the user.
The preset pressing time length can be set and changed according to needs, and in the embodiment of the disclosure, the preset pressing time length is not specifically limited; for example, the preset pressing time period may be 3 seconds or the like.
Optionally, the address information of the installation package for downloading the application program is displayed, so that the problems that the user is troubled when the application program crashes and the user cannot use the application program for a period of time are solved. And the user can obtain the latest and most correct address information of the installation package for downloading the application program, correct errors in time and recover the use.
In step S204, the application program is updated according to the update instruction and the address information.
And loading a download page corresponding to the address information according to the update instruction, downloading the installation package of the latest version of the application program from the download page, and installing the installation package of the latest version to update the application program.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the crash of the application program is detected, acquiring address information of an installation package for downloading the application program; displaying the address information and receiving an updating instruction submitted by a user; and updating the application program according to the updating instruction and the address information. Therefore, when the application program is detected to be crashed, the address information of the installation package for downloading the application program is provided for the user, and the user can update the application program by directly clicking the address information, so that the efficiency of updating the application program is improved.
FIG. 3 is a schematic diagram illustrating an apparatus for updating an application, according to an example embodiment. Referring to fig. 3-1, the apparatus comprises:
a first obtaining module 301, configured to obtain address information of an installation package for downloading an application program when the application program is detected to be crashed;
a display module 302 for displaying address information;
a receiving module 303, configured to receive an update instruction submitted by a user;
and the updating module 304 is used for updating the application program according to the updating instruction and the address information.
Optionally, referring to fig. 3-2, the apparatus further comprises:
a second obtaining module 305, configured to obtain crash information of the application crash, where the crash information includes a crash number and a crash duration;
if the number of times of collapse reaches the preset number of times of collapse and the collapse time reaches the preset collapse time, the first obtaining module 301 is executed to obtain the address information of the installation package for downloading the application program.
Optionally, referring to fig. 3-3, the first obtaining module 301 includes:
a first obtaining unit 3011, configured to obtain a version number of an installation package of an application installed in a terminal;
a sending unit 3012, configured to send a version number to the server, where the version number is used for the server to obtain, according to the version number, address information of an installation package of the latest version of the downloaded application program;
and the receiving unit 3013 is configured to receive address information of the installation package downloaded in the latest version sent by the server.
Optionally, referring to fig. 3 to 4, the first obtaining module 301 includes:
an analysis unit 3014 configured to analyze an installation package of an application installed in the terminal;
a second obtaining unit 3015, configured to obtain, from the installation package, address information of the downloaded installation package.
Optionally, the display module 302 is configured to display a graphic code including address information; or,
a display module 302, configured to display the update interface containing the address information.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the crash of the application program is detected, acquiring address information of an installation package for downloading the application program; displaying the address information and receiving an updating instruction submitted by a user; and updating the application program according to the updating instruction and the address information. Therefore, when the application program is detected to be crashed, the address information of the installation package for downloading the application program is provided for the user, and the user can update the application program by directly clicking the address information, so that the efficiency of updating the application program is improved.
Corresponding to the apparatus for adjusting the brightness of the terminal provided in the above exemplary embodiment, another exemplary embodiment of the present disclosure provides a terminal 400, see fig. 4. For example, the terminal 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a terminal, and the like. Alternatively, the terminal 400 may also be an intelligent router, an intelligent air purifier, an intelligent water purifier, an intelligent camera, or the like.
Referring to fig. 4, the terminal 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 414.
The processing component 402 generally controls overall operation of the terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the device 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 406 provide power to the various components of the terminal 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 400.
The multimedia component 408 comprises a screen providing an output interface between the terminal 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 400 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 414. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect an open/closed state of the device 400, relative positioning of components, such as a display and keypad of the terminal 400, the sensor assembly 414 can also detect a change in position of the terminal 400 or a component of the terminal 400, the presence or absence of user contact with the terminal 400, orientation or acceleration/deceleration of the terminal 400, and a change in temperature of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 414 is configured to facilitate communications between the terminal 400 and other devices in a wired or wireless manner. The terminal 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 414 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 414 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the terminal 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the crash of the application program is detected, acquiring address information of an installation package for downloading the application program; displaying the address information and receiving an updating instruction submitted by a user; and updating the application program according to the updating instruction and the address information. Therefore, when the application program is detected to be crashed, the address information of the installation package for downloading the application program is provided for the user, and the user can update the application program by directly clicking the address information, so that the efficiency of updating the application program is improved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for updating an application, the method comprising:
when the crash of the application program is detected, acquiring address information of an installation package for downloading the application program;
displaying the address information and receiving an updating instruction submitted by a user;
and updating the application program according to the updating instruction and the address information.
2. The method of claim 1, wherein the method further comprises:
acquiring crash information of the application crash, wherein the crash information comprises crash times and crash duration;
and if the number of times of collapse reaches a preset number of times of collapse and the collapse time length reaches a preset collapse time length, executing the step of acquiring the address information of the installation package for downloading the application program.
3. The method of claim 1, wherein the obtaining address information for downloading the installation package of the application program comprises:
acquiring the version number of an installation package of the application program installed on the terminal;
sending the version number to a server, wherein the version number is used for the server to acquire address information of an installation package downloading the latest version of the application program according to the version number;
and receiving the address information which is sent by the server and used for downloading the installation package of the latest version.
4. The method of claim 1, wherein the obtaining address information for downloading the installation package of the application program comprises:
analyzing the installation package of the application program installed in the terminal, and acquiring the address information for downloading the installation package from the installation package.
5. The method of claim 1, wherein said displaying said address information comprises:
displaying a graphic code containing the address information; or,
and displaying an updating interface containing the address information.
6. An apparatus for updating an application, the apparatus comprising:
the first acquisition module is used for acquiring the address information of the installation package for downloading the application program when the application program is detected to be crashed;
the display module is used for displaying the address information;
the receiving module is used for receiving an updating instruction submitted by a user;
and the updating module is used for updating the application program according to the updating instruction and the address information.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the second obtaining module is used for obtaining crash information of the application program crash, and the crash information comprises crash times and crash duration;
and if the number of times of collapse reaches a preset number of times of collapse and the collapse time reaches a preset collapse time, executing the first obtaining module to obtain the address information of the installation package for downloading the application program.
8. The apparatus of claim 6, wherein the first obtaining module comprises:
a first obtaining unit, configured to obtain a version number of an installation package of the application installed by a terminal;
the sending unit is used for sending the version number to a server, and the version number is used for the server to obtain the address information of the installation package downloading the latest version of the application program according to the version number;
and the receiving unit is used for receiving the address information which is sent by the server and used for downloading the installation package with the latest version.
9. The apparatus of claim 6, wherein the first obtaining module comprises:
the analysis unit is used for analyzing the installation package of the application program installed in the terminal;
and the second acquisition unit is used for acquiring the address information for downloading the installation package from the installation package.
10. The apparatus of claim 6, wherein the display module is configured to display a graphic code containing the address information; or,
and the display module is used for displaying the update interface containing the address information.
CN201510881639.XA 2015-12-03 2015-12-03 The method and apparatus of more new application Pending CN106844074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510881639.XA CN106844074A (en) 2015-12-03 2015-12-03 The method and apparatus of more new application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510881639.XA CN106844074A (en) 2015-12-03 2015-12-03 The method and apparatus of more new application

Publications (1)

Publication Number Publication Date
CN106844074A true CN106844074A (en) 2017-06-13

Family

ID=59149820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510881639.XA Pending CN106844074A (en) 2015-12-03 2015-12-03 The method and apparatus of more new application

Country Status (1)

Country Link
CN (1) CN106844074A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885323A (en) * 2019-02-03 2019-06-14 维沃移动通信有限公司 A kind of application program updating method, mobile terminal and readable storage medium storing program for executing
WO2022111665A1 (en) * 2020-11-30 2022-06-02 花瓣云科技有限公司 Application management method and apparatus, and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365732A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method and system for processing application program exception and mobile terminal
CN104516761A (en) * 2015-01-12 2015-04-15 北京恒华伟业科技股份有限公司 Desktop application updating method and device
CN104836843A (en) * 2015-03-31 2015-08-12 北京奇虎科技有限公司 Client application program updating method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365732A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method and system for processing application program exception and mobile terminal
CN104516761A (en) * 2015-01-12 2015-04-15 北京恒华伟业科技股份有限公司 Desktop application updating method and device
CN104836843A (en) * 2015-03-31 2015-08-12 北京奇虎科技有限公司 Client application program updating method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885323A (en) * 2019-02-03 2019-06-14 维沃移动通信有限公司 A kind of application program updating method, mobile terminal and readable storage medium storing program for executing
CN109885323B (en) * 2019-02-03 2022-06-24 维沃移动通信有限公司 Application program upgrading method, mobile terminal and readable storage medium
WO2022111665A1 (en) * 2020-11-30 2022-06-02 花瓣云科技有限公司 Application management method and apparatus, and device and storage medium

Similar Documents

Publication Publication Date Title
US10324707B2 (en) Method, apparatus, and computer-readable storage medium for upgrading a ZigBee device
CN107329742B (en) Software development kit calling method and device
US10530836B2 (en) Methods and apparatuses for acquiring image
EP2998899A1 (en) Method and apparatus for running application program
EP2991275B1 (en) Making router management application compatible with router firmware
CN105511907B (en) Application program upgrading method, device and system
CN104951336A (en) Application program installation method and device
US20170060260A1 (en) Method and device for connecting external equipment
US20160077819A1 (en) Method and device for running application program
CN105808305B (en) Static resource loading method and device
EP3076745A1 (en) Methods and apparatuses for controlling wireless access point
EP3015965A1 (en) Method and apparatus for prompting device connection
CN103995834A (en) Sensitive information detection method and related device
CN104881304B (en) Resource downloading method and device
CN109117144B (en) Page processing method, device, terminal and storage medium
CN107463372B (en) Data-driven page updating method and device
US20170075671A1 (en) Method and apparatus for installing application and smart device using the same
CN106990984B (en) Method and device for updating system
CN107179837B (en) Input method and device
CN105786561B (en) Method and device for calling process
CN106844074A (en) The method and apparatus of more new application
CN109491655B (en) Input event processing method and device
CN106484259A (en) Input method, device and equipment
CN107241439B (en) Message pushing method and device for H5 page
CN113377322A (en) Page direct processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613